예제 #1
0
        private static void OnItemsSourceModified(object sender, object oldValue, object newValue)
        {
            CustomToolbar bv = (CustomToolbar)sender;

            if (newValue != null)
            {
                bv._bubbleView.ItemSource = (Session)newValue;
            }
        }
예제 #2
0
        private static void OnIsMenuOpenPropertyChanged(object sender, object oldValue, object newValue)
        {
            CustomToolbar cntView = (CustomToolbar)sender;

            if ((bool)newValue == false)
            {
                cntView.CloseMenu();
            }
        }
예제 #3
0
        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;
            }
        }