metrotwit/MetroAppBarSample — pull request #1 by tolgabalci (2012-10-02 00:15:28+00:00)
Title: Clicking on a icon now copies the Style name to clipboard for immediate use

Thanks for the project. Very useful for going an picking AppBar icons to use in projects!

I Just added a few lines to MainPage.xaml.cs

button.Click += (sender, args) =>
{
string styleName = ToolTipService.GetToolTip(sender as Button) as string;
DataPackage clipboardData = new DataPackage();
clipboardData.SetText(styleName);
Clipboard.SetContent(clipboardData);
};