private static void SelectedChanged(BindableObject bindable, object oldValue, object newValue) { BottomTabItem ThisControl = (BottomTabItem)bindable; bool NewValue = (bool)newValue; ThisControl.BackgroundColor = NewValue ? SelectedItemBackgroundColor : UnselecteItemBackgroundcolor; }
private static void CaptionChanged(BindableObject bindable, object oldValue, object newValue) { BottomTabItem ThisControl = (BottomTabItem)bindable; string NewValue = (string)newValue; ThisControl.CaptionLabel.Text = NewValue; }
private static void IconSourceChanged(BindableObject bindable, object oldValue, object newValue) { BottomTabItem ThisControl = (BottomTabItem)bindable; string NewValue = (string)newValue; ThisControl.IconImage.Source = NewValue; }
private static void TapCommandChanged(BindableObject bindable, object oldValue, object newValue) { BottomTabItem ThisControl = (BottomTabItem)bindable; ThisControl.TapCommand = (Command)newValue; }