Skip to content

Commit 528522d

Browse files
committed
Removed dependency property
1 parent 3a99af8 commit 528522d

2 files changed

Lines changed: 1 addition & 11 deletions

File tree

src/Codebreaker.WPF/Views/Components/GameResultDisplay.xaml.cs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,4 @@ public GameResultDisplay()
99
{
1010
InitializeComponent();
1111
}
12-
13-
public GamePageViewModel ViewModel
14-
{
15-
get { return (GamePageViewModel)GetValue(ViewModelProperty); }
16-
set { SetValue(ViewModelProperty, value); }
17-
}
18-
19-
public static readonly DependencyProperty ViewModelProperty =
20-
DependencyProperty.Register(nameof(ViewModel), typeof(GamePageViewModel), typeof(GameResultDisplay));
2112
}

src/Codebreaker.WPF/Views/Pages/GameWindow.xaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,7 @@
5656
</StackPanel>-->
5757
<components:GameResultDisplay
5858
Panel.ZIndex="1"
59-
Grid.Row="0"
60-
ViewModel="{Binding ViewModel, Mode=OneWay}" />
59+
Grid.Row="0"/>
6160

6261
<Grid Grid.Row="1" Margin="8" Visibility="{Binding ViewModel.GameStatus, Mode=OneWay, Converter={StaticResource GameStatusVisibilityConverter}, ConverterParameter=Start}">
6362
<Grid.RowDefinitions>

0 commit comments

Comments
 (0)