无法加载WPF设计器 [英] Unable to load WPF Designer
问题描述
大家好,
我有一个包含6个项目的解决方案。其中一个是使用WPF创建的我的UI项目。
我有VS 2008 SP1,Expression Blend 3
我的UI项目包含许多用户控件。
当我尝试打开其中一个时; WPF设计器无法加载设计,显示和错误。
字符串未被识别为有效的日期时间。
在System.DateTimeParse.Parse(String s,DateTimeFormatInfo dtfi,DateTimeStyles样式)
在System.Windows.Forms.AxHost.TypeLibraryTimeStampAttribute..ctor(String timestamp)
...
..
错误列表显示错误,
错误 1   字符串未被识别为有效的DateTime。 d:\MyProject\MyUC.xaml    1    1   模块
但在XAML文件中没有此代码。
< UserControl x:Class =" Modules.MyUC" x:名称=" MyUC">
...
..
< / UserControl>
你能帮我解决这个问题吗?
Bahadir ARSLAN http:// www .bahadirarslan.com
您好,
我发现了问题。
我的UI项目是作为CLass库创建的。
所以设计师没有工作。
这种情况有解决方案吗?
&NBSP;
Hi All,
I have a got a solution that contains 6 projects. One of them is mine UI project which had been created with WPF.
I have VS 2008 SP1, Expression Blend 3
My UI project contains lots of user controls.
When i am trying to open one of them; WPF designer unable to load the design and shows and error.
String was not recognized as a valid DateTime.
at System.DateTimeParse.Parse(String s, DateTimeFormatInfo dtfi, DateTimeStyles styles)
at System.Windows.Forms.AxHost.TypeLibraryTimeStampAttribute..ctor(String timestamp)
...
..
And error list shows an error,
Error 1 String was not recognized as a valid DateTime. D:\MyProject\MyUC.xaml 1 1 Modules
But there is no code for this at XAML file.
<UserControl x:Class="Modules.MyUC" x:Name="MyUC">
...
..
</UserControl>
Can you help me to solve this issue?
Bahadir ARSLAN http://www.bahadirarslan.com
Hi,
I found the problem.
My UI project was created as a CLass Library.
So the designer is not working.
Is there a solution for this situtation?
这篇关于无法加载WPF设计器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!