I have a resource in a ResourceDictionary:
<Viewbox x:Key="Icons.Profile"> <Canvas Width="76" Height="76" Clip="F1 M 0,0L 76,0L 76,76L 0,76L 0,0"> <Path Width="40.7907" Height="33.55" Canvas.Left="16.2093" Canvas.Top="22.2" Stretch="Fill" Fill="#FFFFFFFF" Data="F1 M ... "/> </Canvas> </Viewbox>
If I add two Buttons / Content Controls that reference StaticResource, only one processed last seems to display the Icon icon
<Button Content="{StaticResource Icons.Profile}" />
Does anyone know why and how I can get around this? In Visual Studio and Blend, content is displayed for all controls.
source share