Esempio n. 1
0
        private void CopyHex(object sender, RoutedEventArgs e)
        {
            MenuItem item = e.OriginalSource as MenuItem;

            if (item != null && item.DataContext != null)
            {
                FontSymbol dat = item.DataContext as FontSymbol;
                putclipboard(dat.XamlMarkup);
            }
        }
Esempio n. 2
0
        private void CopyStaticRessource(object sender, RoutedEventArgs e)
        {
            MenuItem item = e.OriginalSource as MenuItem;

            if (item != null && item.DataContext != null)
            {
                FontSymbol dat = item.DataContext as FontSymbol;
                putclipboard("{StaticResource " + fontInfos.CurrentFontInfo.ResourcePrefix + dat.Name + "}");
            }
        }