コード例 #1
0
        protected override void Invoke(VisualElement sender)
        {
            var backDrop = sender.GetParentOfType <BackDrop>();

            if (backDrop != null)
            {
                BackDrop.SetShowBackDrop(backDrop, !BackDrop.GetShowBackDrop(backDrop));
            }
        }
コード例 #2
0
 private void FloatingButtonClicked(object sender, EventArgs e)
 {
     if (!(sender is Button button))
     {
         return;
     }
     BackDrop.SetShowBackDrop(SubredditBackDrop, !BackDrop.GetShowBackDrop(SubredditBackDrop));
     RunAnimation(button, !BackDrop.GetShowBackDrop(SubredditBackDrop));
 }
コード例 #3
0
        private void ListItemTapped(object sender, EventArgs e)
        {
            var backDrop = (sender as VisualElement)?.GetParentOfType <BackDrop>();

            if (backDrop == null)
            {
                return;
            }
            BackDrop.SetShowBackDrop(backDrop, !BackDrop.GetShowBackDrop(backDrop));
        }
コード例 #4
0
        private void MenuButtonTapped(object sender, EventArgs e)
        {
            if (!(sender is Label label))
            {
                return;
            }

            var backDrop = label.GetParentOfType <BackDrop>();

            if (backDrop != null)
            {
                BackDrop.SetShowBackDrop(backDrop, !BackDrop.GetShowBackDrop(backDrop));
                RunAnimation(label, !BackDrop.GetShowBackDrop(backDrop));
            }
        }