Can you more abbretviate following code...
<Button.Tag>
<BitmapImage UriSource="/WpfApplication1;component/Images/ButtonIcons/Butt开发者_StackOverflow社区onIcon_Sound.png"/>
</Button.Tag>
in one line?
You can define
"/WpfApplication1;component/Images/ButtonIcons/ButtonIcon_Sound.png"
as a StaticResource, then you would have something like,
<BitmapImage UriSource="{StaticResource SoundIcon}"/>
Also put this resource in a shared ResourceDictionary then you don't need to define it twice.
精彩评论