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)); } }
protected override void OnAttached() { SetColor(StatusBarEffect.GetColor(Element)); SetStyle(StatusBarEffect.GetStyle(Element)); }