【发布时间】:2014-03-19 15:57:05
【问题描述】:
我知道这个问题已经被问过很多次了,而且我已经全部回答过了。希望我没有错过以前的答案中的某些内容,但我很难过。
我的应用程序昨天运行良好,但今天我启动它,现在找不到我的文件引用,包括我在外部文件中定义的 ViewModels 或 DependencyProperties。我在 VB 中编码(如您所见),我尝试更改/添加命名空间,但什么也没做!
如果有人对此问题有所了解,我会全力以赴!
解决方案结构
XAML
<Window
xmlns:l="clr-namespace:PrairieWestIceCreamWPF"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
x:Class="WeeklyOutlookView" Title="WeeklyOutlookView" Name="WeeklyOutlookView" Height="463.5" Width="1280" l:WindowBehavior.WindowClosing="{Binding WindowClosingCommand}">
<Window.DataContext>
<l:WeeklyOutlookViewModel />
</Window.DataContext>
错误
命名空间“clr-namespace:PrairieWestIceCreamWPF”中不存在名称“WindowBehavior”
命名空间“clr-namespace:PrairieWestIceCreamWPF”中不存在名称“WeeklyOutlookViewModel”
【问题讨论】:
标签: wpf xaml namespaces viewmodel dependency-properties