在mvvm光的Mahapps对话框

时间:2016-11-17 19:55:10

标签: c# wpf mvvm mvvm-light mahapps.metro

我试图在WPF - MVVM Light应用程序中实现MahApps消息。

MahApps版本:1.3.0.0

我发现tutorial显示了如何执行此操作,但是我在第一步陷入困境:

我已经添加了教程中提到的两行:

<Controls:MetroWindow x:Class="AppName.MainWindow"

   **xmlns:Dialog="clr-namespace:MahApps.Metro.Controls.Dialogs;assembly=MahApps.Metro"
   Dialog:DialogParticipation.Register="{Binding}"**  

    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:Controls="clr-namespace:MahApps.Metro.Controls;assembly=MahApps.Metro"
    Title="Inicio de sesión" Height="280" Width="500"
    xmlns:iconPacks="http://metro.mahapps.com/winfx/xaml/iconpacks"
    DataContext="{Binding Main, Source={StaticResource Locator}}" >

但在第二行中我收到以下错误消息:

The attachable property 'Register' was not found in type 'DialogParticipation'.

我错过了什么?

0 个答案:

没有答案