Fixed DeleteWindow and allowed it to close.
This commit is contained in:
1 parent
41667d9e0b
commit
663fb256e5
13 files changed
+361
-22
No files matched your search
@@ -18,7 +18,7 @@
|
||||
<Button Grid.Row="1" Grid.Column="1" Margin="5"
|
||||
Width="100"
|
||||
HorizontalAlignment="Stretch" VerticalAlignment="Center"
|
||||
HorizontalContentAlignment="Center" IsEnabled="False"
|
||||
Content="Use X button" Command="{Binding CancelCommand}" />
|
||||
HorizontalContentAlignment="Center" IsEnabled="True"
|
||||
Content="No" Command="{Binding CancelCommand}" />
|
||||
</Grid>
|
||||
</Window>
|
||||
</Window>
|
||||
@@ -9,5 +9,6 @@ public partial class DeleteWindow : ReactiveWindow<DeleteWindowViewModel> {
|
||||
public DeleteWindow() {
|
||||
InitializeComponent();
|
||||
this.WhenActivated(d => d(ViewModel!.OkCommand.Subscribe(Close)));
|
||||
this.WhenActivated(d => d(ViewModel!.CancelCommand.Subscribe(Close)));
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -5,8 +5,7 @@
|
||||
xmlns:viewModels="clr-namespace:PcgsInvUi.ViewModels"
|
||||
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
|
||||
x:Class="PcgsInvUi.Views.MainWindow" x:DataType="viewModels:MainWindowViewModel"
|
||||
Title="Main Window"
|
||||
WindowStartupLocation="CenterOwner">
|
||||
Title="Main Window" WindowStartupLocation="CenterScreen" WindowState="Maximized" >
|
||||
<SplitView IsPaneOpen="True"
|
||||
DisplayMode="Inline"
|
||||
PanePlacement="Right">
|
||||
|
||||
Reference in new issue
Block a user