예제 #1
0
 protected override async Task ExecuteAsync(ClipboardObjectViewModel parameter)
 {
     if (PinnedManager.IsPinned(parameter.Model))
     {
         pinnedManager.Value.UnPin(parameter.Model);
     }
     else
     {
         await pinnedManager.Value.Pin(parameter.Model);
     }
 }
예제 #2
0
 public override bool Passes(ClipboardObjectViewModel clipboardObjectViewModel)
 {
     return(PinnedManager.IsPinned(clipboardObjectViewModel.Model));
 }
예제 #3
0
 private void UpdateToggled(object sender = null, NotifyCollectionChangedEventArgs e = null)
 {
     Toggled = PinnedManager.IsPinned(clipboardObjectViewModel.Model);
 }