要使用WPF中,你可以定义图片:WPF资源字典XSLT
<ResourceDictionary
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<BitmapImage x:Key="ImageFunTime"
UriSource="../Resources/Images/ImageFunTime.png" />
</
然后在应用程序的地方,您可以:
var img = (ImageSource)positionsTab.TryFindResource("ImageFunTime");
我怎样才能实现与嵌入式XSLT文件是一回事吗?也就是说,什么在资源字典中的语法,因为它显然不是一个位图图像...
TIA
好问题(+1)。查看我的答案获得完整的解决方案。 :) – 2010-05-19 03:21:36