0519
ViewModelBase
Message 机制
便于测试 (Moq框架)
资料引用:http://www.cnblogs.com/chenxizhang/archive/2011/10/01/2197786.html
Application. RequestedTheme="Light"
1. MVVMLight
ViewModelLocatorViewModelBase
Command 任何事件可通过EventToCommand(MvvmLight.Extras)绑定到command
xmlns:cmd="clr-namespace:GalaSoft.MvvmLight.Command;assembly=GalaSoft.MvvmLight.Extras.WP8"
xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"
<Button Content="Button" HorizontalAlignment="Left" Margin="97,238,0,0" VerticalAlignment="Top" RenderTransformOrigin="0.373,0.357">
<i:Interaction.Triggers>
<i:EventTrigger EventName="MouseMove">
<cmd:EventToCommand Command="{Binding MouseMoveCommand}"></cmd:EventToCommand>
</i:EventTrigger>
</i:Interaction.Triggers>
</Button>
Message 机制
便于测试 (Moq框架)
资料引用:http://www.cnblogs.com/chenxizhang/archive/2011/10/01/2197786.html
http://mvvmlight.codeplex.com/releases
资料引用:http://coding4fun.codeplex.com/SourceControl/latest
Application. RequestedTheme="Light"