diff MetroWpf/Stocks.UI/Views/StocksView.xaml @ 39:4b8b38d17d24 MetroWPF CTP v0.1

Quick tidy up for ctp 0.1 release
author adminsh@apollo
date Tue, 03 Apr 2012 15:33:18 +0100
parents 399398841fd0
children
line wrap: on
line diff
--- a/MetroWpf/Stocks.UI/Views/StocksView.xaml	Mon Apr 02 14:05:18 2012 +0100
+++ b/MetroWpf/Stocks.UI/Views/StocksView.xaml	Tue Apr 03 15:33:18 2012 +0100
@@ -4,9 +4,10 @@
              xmlns:Converters="clr-namespace:Stocks.UI.Converters"
              xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
              xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
+             xmlns:ViewModels="clr-namespace:Stocks.UI.ViewModels" 
              d:DesignHeight="100"
              d:DesignWidth="600"
-             DataContext="d:DesignInstance vm:StocksViewModel"
+             d:DataContext="{d:DesignInstance ViewModels:StocksViewModel}"
              mc:Ignorable="d">
 
     <Grid x:Name="LayoutRoot">
@@ -30,7 +31,7 @@
                     Height="30"
                     Margin="5,0,0,0"
                     HorizontalAlignment="Left"
-                    Command="{Binding ServiceCommand,
+                    Command="{Binding Path=ServiceCommand,
                                       Mode=TwoWay}"
                     Content="{Binding ServiceRunning,
                                       Converter={StaticResource BoolToServiceRunningTextConverter}}" />
@@ -39,7 +40,7 @@
                     Height="30"
                     Margin="10,0,0,0"
                     HorizontalAlignment="Left"
-                    Command="{Binding SubscriptionCommand,
+                    Command="{Binding Path=SubscriptionCommand,
                                       Mode=TwoWay}"
                     Content="{Binding Subscribed,
                                       Converter={StaticResource BoolToSubscribedTextConverter}}" />