我试图在我的资源字典中获取特定模板.这是我的资源字典
<ResourceDictionary
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:view="clr-namespace:Test.Layout.View"
xmlns:toolkit="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Toolkit"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"><DataTemplate x:Key="LeftRightLayout">
<toolkit:DockPanel>
<view:SharedContainerView toolkit:DockPanel.Dock="Left"/>
<view:SingleContainerView toolkit:DockPanel.Dock="Right"/>
</toolkit:DockPanel>
</DataTemplate>
Run Code Online (Sandbox Code Playgroud)
但是当它到达XamlReader.Load时
private static ResourceDictionary GetResource(string resourceName)
{
ResourceDictionary resource = null;
XDocument xDoc = XDocument.Load(resourceName);
resource = (ResourceDictionary)XamlReader.Load(xDoc.ToString(SaveOptions.None));
return resource;
}
Run Code Online (Sandbox Code Playgroud)
找不到"SharedContainerView"类型,因为"clr-namespace:Test.Layout.View"是一个未知的命名空间.[线:4位置:56]
xaml datatemplate resourcedictionary xamlreader silverlight-4.0
如何将带有URI /ReferencedAssembly ;component/default.png的图像源转换为Stream?
谢谢
我目前正在开发一个连接到旧的Web服务的Silverlight应用程序.我们的旧网络服务使用silverlight不支持的加密工具.最后,我们决定使用AesManaged进行加密,但是,我们的Web服务不支持AesManaged.他们是一种解密AesManaged到RijndaelManaged的方法吗?
如果是,请您发布样本片段吗?您的反馈非常需要.
谢谢.
cryptography web-services aes rijndaelmanaged silverlight-4.0
除工具包外,是否有Silverlight 4 的免费图表控件?
我将我的Chart代码从visifire迁移到Toolkit.我想知道Visifire to Toolkit的ColorSet属性[样本值Caravan,Picasso ..]的对应部分.
有没有?
TIA
我正在各种操作系统中部署我的Silverlight 4.0应用程序.在Windows 7中它运行良好,但在Windows XP SP3中,错误弹出.它表示Silverlight应用程序中的未处理错误[Async_ExceptionOccurred]参数:调试资源字符串不可用.通常,密钥和参数提供了足够的信息来诊断问题.请参阅http://go.microsoft.com/fwlink/?linkid=106663&Version=4.0.50524.0&File=System.dll&Key=Async_ExceptionOccurred ....
看起来可能是什么问题?
谢谢
silverlight ×4
c#-4.0 ×2
charts ×2
.net ×1
aes ×1
cryptography ×1
datatemplate ×1
deepzoom ×1
deployment ×1
image ×1
stream ×1
twitter ×1
uml ×1
web-services ×1
wpf ×1
xaml ×1
xamlreader ×1
xml ×1