示例#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;
            }
        }