}
set
{
- SetValue(BackgroundColorProperty, value);
+ if (viewStyle != null)
+ {
+ viewStyle.BackgroundImage = null;
+ viewStyle.BackgroundColor = value;
+ }
+ else
+ {
+ SetValue(BackgroundColorProperty, value);
+ }
+
NotifyPropertyChanged();
}
}
}
set
{
- SetValue(BackgroundImageProperty, value);
+ if (viewStyle != null)
+ {
+ viewStyle.BackgroundColor = null;
+ viewStyle.BackgroundImage = value;
+ }
+ else
+ {
+ SetValue(BackgroundImageProperty, value);
+ }
+
NotifyPropertyChanged();
}
}
}
set
{
- SetValue(BackgroundImageBorderProperty, value);
+ if (viewStyle != null)
+ {
+ viewStyle.BackgroundImageBorder = value;
+ }
+ else
+ {
+ SetValue(BackgroundImageBorderProperty, value);
+ }
+
NotifyPropertyChanged();
}
}
}
set
{
- SetValue(OpacityProperty, value);
+ if (viewStyle != null)
+ {
+ viewStyle.Opacity = value;
+ }
+ else
+ {
+ SetValue(OpacityProperty, value);
+ }
+
NotifyPropertyChanged();
}
}
}
set
{
- SetValue(ColorProperty, value);
+ if (viewStyle != null)
+ {
+ viewStyle.Color = value;
+ }
+ else
+ {
+ SetValue(ColorProperty, value);
+ }
+
NotifyPropertyChanged();
}
}