File tree Expand file tree Collapse file tree 2 files changed +29
-1
lines changed Expand file tree Collapse file tree 2 files changed +29
-1
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,11 @@ public class MainWindowViewModel : ViewModelBase {
30
30
/// </summary>
31
31
private bool _isMenuOpen ;
32
32
33
+ /// <summary>
34
+ /// True if the application is updating, false otherwise.
35
+ /// </summary>
36
+ private bool _isUpdating ;
37
+
33
38
/// <summary>
34
39
/// The open page.
35
40
/// </summary>
@@ -102,6 +107,14 @@ public MenuItem SelectedMenuItem {
102
107
set => this . RaiseAndSetIfChanged ( ref _selectedMenuItem , value ) ;
103
108
}
104
109
110
+ /// <summary>
111
+ /// True if the application is updating, false otherwise.
112
+ /// </summary>
113
+ public bool IsUpdating {
114
+ get => _isUpdating ;
115
+ set => this . RaiseAndSetIfChanged ( ref _isUpdating , value ) ;
116
+ }
117
+
105
118
/// <summary>
106
119
/// Links the <see cref="Page" /> showing on the screen with changes to the <see cref="SelectedMenuItem" />.
107
120
/// </summary>
Original file line number Diff line number Diff line change 47
47
VerticalAlignment =" Stretch"
48
48
Name =" ContentWrapper" >
49
49
<views : WindowsTitleBar IsSeamless =" True" />
50
- <DockPanel Background =" Transparent" >
50
+ <!-- The Application is Currently Updating and Not Usable!: This must come first because the final item always fills. -->
51
+ <DockPanel Background =" Transparent" DockPanel.Dock=" Top" IsVisible =" {Binding IsUpdating}" >
52
+ <StackPanel >
53
+ <Label HorizontalAlignment =" Center"
54
+ VerticalAlignment =" Center"
55
+ FontSize =" 32"
56
+ FontWeight =" Bold"
57
+ Foreground =" rgb(204, 200, 175)"
58
+ Padding =" 0 50 0 0" >
59
+ Updating
60
+ </Label >
61
+ <views : Loading Width =" 100" Height =" 100" />
62
+ </StackPanel >
63
+ </DockPanel >
64
+ <!-- The normal application: This must come last because the last item always fills. -->
65
+ <DockPanel Background =" Transparent" DockPanel.Dock=" Top" IsVisible =" {Binding !IsUpdating}" >
51
66
<SplitView IsPaneOpen =" {Binding IsMenuOpen}"
52
67
CompactPaneLength =" 55"
53
68
OpenPaneLength =" 150"
You can’t perform that action at this time.
0 commit comments