diff --git a/src/BuildVision.UI/Components/ControlView.xaml b/src/BuildVision.UI/Components/ControlView.xaml index 52f95327..b559b81e 100644 --- a/src/BuildVision.UI/Components/ControlView.xaml +++ b/src/BuildVision.UI/Components/ControlView.xaml @@ -74,7 +74,7 @@ VerticalAlignment="Center" /> - + diff --git a/src/BuildVision.UI/Components/ControlView.xaml.cs b/src/BuildVision.UI/Components/ControlView.xaml.cs index 2c44051f..a86bfc17 100644 --- a/src/BuildVision.UI/Components/ControlView.xaml.cs +++ b/src/BuildVision.UI/Components/ControlView.xaml.cs @@ -54,6 +54,5 @@ private void ViewModelOnPropertyChanged(object sender, PropertyChangedEventArgs // Grid.ScrollIntoView(_viewModel.CurrentProject); //} } - } } diff --git a/src/BuildVision.UI/Components/ProjectGrid.xaml.cs b/src/BuildVision.UI/Components/ProjectGrid.xaml.cs index 581253c7..74b3a8de 100644 --- a/src/BuildVision.UI/Components/ProjectGrid.xaml.cs +++ b/src/BuildVision.UI/Components/ProjectGrid.xaml.cs @@ -55,8 +55,6 @@ private void GridOnSorting(object sender, DataGridSortingEventArgs e) private void OnDataContextChanged(object sender, DependencyPropertyChangedEventArgs e) { - Debug.Assert(DataContext != null); - _viewModel = (BuildVisionPaneViewModel) DataContext; _viewModel.SetGridColumnsRef(Grid.Columns); _viewModel.PropertyChanged += ViewModelOnPropertyChanged; diff --git a/src/BuildVision.UI/Controls/BuildVisionProgressBar.xaml b/src/BuildVision.UI/Controls/BuildVisionProgressBar.xaml index f0736e2c..7fb6e891 100644 --- a/src/BuildVision.UI/Controls/BuildVisionProgressBar.xaml +++ b/src/BuildVision.UI/Controls/BuildVisionProgressBar.xaml @@ -5,7 +5,16 @@ xmlns:d="http://schemas.microsoft.com/expression/blend/2008" mc:Ignorable="d" xmlns:contracts="clr-namespace:BuildVision.Contracts;assembly=BuildVision.Contracts" - d:DesignWidth="697"> + xmlns:models="clr-namespace:BuildVision.UI.Models" + d:DesignWidth="697" + d:DataContext="{Binding Source={StaticResource DesignViewModel}}"> + + + + + + +