Exemple #1
0
 protected override void OnElementPropertyChanged(PropertyChangedEventArgs args)
 {
     base.OnElementPropertyChanged(args);
     if (args.PropertyName == StatusBarEffect.ColorProperty.PropertyName)
     {
         SetColor(StatusBarEffect.GetColor(Element));
     }
     else if (args.PropertyName == StatusBarEffect.StyleProperty.PropertyName)
     {
         SetStyle(StatusBarEffect.GetStyle(Element));
     }
 }
Exemple #2
0
 protected override void OnAttached()
 {
     SetColor(StatusBarEffect.GetColor(Element));
     SetStyle(StatusBarEffect.GetStyle(Element));
 }