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