コード例 #1
0
 /// <summary>
 /// Invoked when FontWeight value has been changed
 /// </summary>
 /// <param name="bindable">BindableObject</param>
 /// <param name="oldValue">old FontWeight value</param>
 /// <param name="newValue">new FontWeight value</param>
 static void OnFontWeightChanged(BindableObject bindable, object oldValue, object newValue)
 {
     InternalExtension.InternalPropertyChanged(bindable, FontWeightProperty, () => (FontWeight)newValue == FontWeight.Default, SupportedTypes);
 }
コード例 #2
0
 static void OnThemeStylePropertyChanged(BindableObject bindable, object oldValue, object newValue)
 {
     InternalExtension.InternalPropertyChanged(bindable, ThemeStyleProperty, () => (string)newValue == string.Empty);
 }
コード例 #3
0
 static void OnPulsingStatusPropertyChanged(BindableObject bindable, object oldValue, object newValue)
 {
     InternalExtension.InternalPropertyChanged(bindable, PulsingStatusProperty, () => (bool)newValue == false, new List <Type> {
         typeof(ProgressBar)
     });
 }
コード例 #4
0
 static void OnBlendColorPropertyChanged(BindableObject bindable, object oldValue, object newValue)
 {
     InternalExtension.InternalPropertyChanged(bindable, BlendColorProperty, () => (Color)newValue == Color.Default, new List <Type> {
         typeof(Image)
     });
 }