Assign Mahapps.Metro:IconPacks to button in code behind
<p>I am trying to assign an icon from any Mahapps.Metro.IconPacks to an rectangle respectively to a button with text.</p>

<p>How do I do this if I want to use the new IconPacks?</p>

<p>Effectively I need to convert an Mahapps.Metro.IconPacks.PackIconModernKind to VisualBrush or canvas or actually anything I can use to place it in a button.</p>

<p>Any help is appreciated!</p>

<p>Thanks</p>