# HG changeset patch # User adminsh@apollo # Date 1333463598 -3600 # Node ID 4b8b38d17d242cf8a0d612d99009670fcadf069a # Parent b008faa1baa714cf3553e581d8408bcb84560937 Quick tidy up for ctp 0.1 release diff -r b008faa1baa7 -r 4b8b38d17d24 MetroWpf/MetroWpf/MetroWpf.csproj --- a/MetroWpf/MetroWpf/MetroWpf.csproj Mon Apr 02 14:05:18 2012 +0100 +++ b/MetroWpf/MetroWpf/MetroWpf.csproj Tue Apr 03 15:33:18 2012 +0100 @@ -47,8 +47,8 @@ ..\packages\CommonServiceLocator.1.0\lib\NET35\Microsoft.Practices.ServiceLocation.dll - - ..\packages\Ninject.2.2.1.4\lib\net40-Client\Ninject.dll + + ..\Libs\Ninject.2.2.1.4\lib\net40-Client\Ninject.dll ..\Libs\CommonServiceLocator.NinjectAdapter.1.0.0.0\lib\NinjectAdapter.dll diff -r b008faa1baa7 -r 4b8b38d17d24 MetroWpf/Stocks.UI/ViewModels/StocksViewModel.cs --- a/MetroWpf/Stocks.UI/ViewModels/StocksViewModel.cs Mon Apr 02 14:05:18 2012 +0100 +++ b/MetroWpf/Stocks.UI/ViewModels/StocksViewModel.cs Tue Apr 03 15:33:18 2012 +0100 @@ -59,7 +59,7 @@ } private const string SubscribedPropertyName = "Subscribed"; - private bool _subscribed = false; + private bool _subscribed; public bool Subscribed { diff -r b008faa1baa7 -r 4b8b38d17d24 MetroWpf/Stocks.UI/Views/StocksView.xaml --- 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"> @@ -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}}" /> diff -r b008faa1baa7 -r 4b8b38d17d24 MetroWpf/Stocks.UI/Views/StocksView.xaml.cs --- a/MetroWpf/Stocks.UI/Views/StocksView.xaml.cs Mon Apr 02 14:05:18 2012 +0100 +++ b/MetroWpf/Stocks.UI/Views/StocksView.xaml.cs Tue Apr 03 15:33:18 2012 +0100 @@ -1,11 +1,6 @@ -using System.Windows.Controls; - -namespace Stocks.UI.Views +namespace Stocks.UI.Views { - /// - /// Interaction logic for StocksView.xaml - /// - public partial class StocksView : UserControl + public partial class StocksView { public StocksView() {