private void OnResourcesLoaded(IntPtr view)
{
- if(!CheckResourceReady())
+ if (!CheckResourceReady())
{
return;
}
{
get
{
- return (Offset)GetValue(TouchAreaOffsetProperty);
+ if (NUIApplication.IsUsingXaml)
+ {
+ return (Offset)GetValue(TouchAreaOffsetProperty);
+ }
+ else
+ {
+ return (Offset)GetInternalTouchAreaOffsetProperty(this);
+ }
}
set
{
- SetValue(TouchAreaOffsetProperty, value);
+ if (NUIApplication.IsUsingXaml)
+ {
+ SetValue(TouchAreaOffsetProperty, value);
+ }
+ else
+ {
+ SetInternalTouchAreaOffsetProperty(this, null, value);
+ }
NotifyPropertyChanged();
}
}
{
get
{
- return (bool)GetValue(DispatchKeyEventsProperty);
+ if (NUIApplication.IsUsingXaml)
+ {
+ return (bool)GetValue(DispatchKeyEventsProperty);
+ }
+ else
+ {
+ return (bool)GetInternalDispatchKeyEventsProperty(this);
+ }
}
set
{
- SetValue(DispatchKeyEventsProperty, value);
+ if (NUIApplication.IsUsingXaml)
+ {
+ SetValue(DispatchKeyEventsProperty, value);
+ }
+ else
+ {
+ SetInternalDispatchKeyEventsProperty(this, null, value);
+ }
NotifyPropertyChanged();
}
}
{
get
{
- return (bool)GetValue(DispatchTouchMotionProperty);
+ if (NUIApplication.IsUsingXaml)
+ {
+ return (bool)GetValue(DispatchTouchMotionProperty);
+ }
+ else
+ {
+ return (bool)GetInternalDispatchTouchMotionProperty(this);
+ }
}
set
{
- SetValue(DispatchTouchMotionProperty, value);
+ if (NUIApplication.IsUsingXaml)
+ {
+ SetValue(DispatchTouchMotionProperty, value);
+ }
+ else
+ {
+ SetInternalDispatchTouchMotionProperty(this, null, value);
+ }
}
}
{
get
{
- return (bool)GetValue(DispatchHoverMotionProperty);
+ if (NUIApplication.IsUsingXaml)
+ {
+ return (bool)GetValue(DispatchHoverMotionProperty);
+ }
+ else
+ {
+ return (bool)GetInternalDispatchHoverMotionProperty(this);
+ }
}
set
{
- SetValue(DispatchHoverMotionProperty, value);
+ if (NUIApplication.IsUsingXaml)
+ {
+ SetValue(DispatchHoverMotionProperty, value);
+ }
+ else
+ {
+ SetInternalDispatchHoverMotionProperty(this, null, value);
+ }
}
}