private void Button_Click(object sender, RoutedEventArgs e) { DataPackage dataPackage = new DataPackage { // copy RequestedOperation = DataPackageOperation.Copy }; dataPackage.SetText(DominantColorValue); Clipboard.SetContent(dataPackage); ToastPop.Begin(); }
private void GridView_ItemClick(object sender, ItemClickEventArgs e) { DataPackage dataPackage = new DataPackage { // copy RequestedOperation = DataPackageOperation.Copy }; dataPackage.SetText((e.ClickedItem as ColorBrush).Value); Clipboard.SetContent(dataPackage); ToastPop.Begin(); }