Пример #1
0
        private void TogglePinned_Tap(object sender, System.Windows.Input.GestureEventArgs e)
        {
            var context = (sender as FrameworkElement).DataContext;
            var forum   = context as ForumDataSource;

            forum.IsPinned = !forum.IsPinned;
            PinnedItemsManager.NotifyObservers(forum);
        }
Пример #2
0
        private void UnpinMenu_Tap(object sender, System.Windows.Input.GestureEventArgs e)
        {
            var context = sender as FrameworkElement;
            var pin     = context as IPinnable;

            pin.IsPinned = false;

            PinnedItemsManager.NotifyObservers(pin);
        }