void SearchHandlerPropertyChanged(object sender, System.ComponentModel.PropertyChangedEventArgs e) { if (e.Is(SearchHandler.BackgroundColorProperty)) { UpdateSearchBarBackgroundColor(_uiSearchBar.FindDescendantView <UITextField>()); } else if (e.Is(SearchHandler.TextColorProperty)) { UpdateTextColor(_uiSearchBar.FindDescendantView <UITextField>()); } else if (e.IsOneOf(SearchHandler.PlaceholderColorProperty, SearchHandler.PlaceholderProperty)) { UpdateSearchBarPlaceholder(_uiSearchBar.FindDescendantView <UITextField>()); } else if (e.IsOneOf(SearchHandler.FontFamilyProperty, SearchHandler.FontAttributesProperty, SearchHandler.FontSizeProperty)) { UpdateFont(_uiSearchBar.FindDescendantView <UITextField>()); } else if (e.Is(SearchHandler.CancelButtonColorProperty)) { UpdateCancelButtonColor(_uiSearchBar.FindDescendantView <UIButton>()); } else if (e.Is(SearchHandler.KeyboardProperty)) { UpdateKeyboard(); } else if (e.Is(SearchHandler.HorizontalTextAlignmentProperty)) { UpdateSearchBarHorizontalTextAlignment(_uiSearchBar.FindDescendantView <UITextField>()); } else if (e.Is(SearchHandler.VerticalTextAlignmentProperty)) { UpdateSearchBarVerticalTextAlignment(_uiSearchBar.FindDescendantView <UITextField>()); } }
protected virtual void SearchHandlerPropertyChanged(object sender, System.ComponentModel.PropertyChangedEventArgs e) { if (e.Is(SearchHandler.BackgroundColorProperty)) { UpdateBackgroundColor(); } else if (e.Is(SearchHandler.TextColorProperty)) { UpdateTextColor(); } else if (e.IsOneOf(SearchHandler.PlaceholderColorProperty)) { UpdatePlaceholderColor(); } else if (e.IsOneOf(SearchHandler.FontFamilyProperty, SearchHandler.FontAttributesProperty, SearchHandler.FontSizeProperty)) { UpdateFont(); } else if (e.Is(SearchHandler.CancelButtonColorProperty)) { UpdateCancelButtonColor(); } else if (e.Is(SearchHandler.KeyboardProperty)) { UpdateInputType(); } else if (e.Is(SearchHandler.HorizontalTextAlignmentProperty)) { UpdateTextAlignment(); } }
void OnShellPropertyChanged(object sender, System.ComponentModel.PropertyChangedEventArgs e) { if (e.IsOneOf(Shell.FlyoutFooterProperty, Shell.FlyoutFooterTemplateProperty)) { UpdateFooter(); } }
void OnCurrentPagePropertyChanged(object sender, System.ComponentModel.PropertyChangedEventArgs e) { if (e.Is(Page.TitleProperty)) { UpdateTitle(); } else if (e.IsOneOf( Shell.BackButtonBehaviorProperty, Shell.NavBarIsVisibleProperty, Shell.TitleViewProperty)) { ApplyChanges(); } }