private static void OnItemsSourceModified(object sender, object oldValue, object newValue) { CustomToolbar bv = (CustomToolbar)sender; if (newValue != null) { bv._bubbleView.ItemSource = (Session)newValue; } }
private static void OnIsMenuOpenPropertyChanged(object sender, object oldValue, object newValue) { CustomToolbar cntView = (CustomToolbar)sender; if ((bool)newValue == false) { cntView.CloseMenu(); } }
private static void OnVisibilityChanged(object sender, object oldValue, object newValue) { CustomToolbar cntView = (CustomToolbar)sender; if ((bool)newValue) { cntView.IsVisible = true; cntView.InitializeToolbar(); Task.Run(() => cntView.AnimateWaterHorizontal()); } else { cntView.CloseMenu(); cntView.TranslationY = 150; cntView.IsVisible = false; } }