예제 #1
0
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            DataPackage dataPackage = new DataPackage
            {
                // copy
                RequestedOperation = DataPackageOperation.Copy
            };

            dataPackage.SetText(DominantColorValue);
            Clipboard.SetContent(dataPackage);
            ToastPop.Begin();
        }
예제 #2
0
        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();
        }