File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 709709 </StackPanel >
710710 </StackPanel >
711711 </Border >
712-
713- <!-- No Clip Selected -->
714- <TextBlock Grid.RowSpan=" 2"
715- Text =" Select a clip to play"
716- HorizontalAlignment =" Center"
717- VerticalAlignment =" Center"
718- FontSize =" 24"
719- Foreground =" {DynamicResource TextControlPlaceholderForeground}"
720- Visibility =" {Binding HasNoClipSelected, Converter={local:BoolToVisibilityConverter}}" />
721712 </Grid >
722713
723714 <!-- Player Controls -->
Original file line number Diff line number Diff line change @@ -117,7 +117,7 @@ public string PositionText
117117
118118 public string PlayPauseIcon => IsPlaying ? "\u23F8 " : "\u25B6 " ;
119119
120- public bool ShowStatusOverlay => IsLoading || ShowErrorOverlay ;
120+ public bool ShowStatusOverlay => IsLoading || ShowErrorOverlay || HasNoClipSelected ;
121121
122122 public bool ShowVideoHosts => ! ShowStatusOverlay ;
123123
@@ -160,6 +160,8 @@ public string PositionText
160160
161161 [ ObservableProperty ]
162162 [ NotifyPropertyChangedFor ( nameof ( HasNoClipSelected ) ) ]
163+ [ NotifyPropertyChangedFor ( nameof ( ShowStatusOverlay ) ) ]
164+ [ NotifyPropertyChangedFor ( nameof ( ShowVideoHosts ) ) ]
163165 [ NotifyPropertyChangedFor ( nameof ( CanPlayPause ) ) ]
164166 private CamClip _selectedClip ;
165167
@@ -423,6 +425,8 @@ private void RefreshClipState()
423425 {
424426 OnPropertyChanged ( nameof ( FilteredClips ) ) ;
425427 OnPropertyChanged ( nameof ( HasNoClipSelected ) ) ;
428+ OnPropertyChanged ( nameof ( ShowStatusOverlay ) ) ;
429+ OnPropertyChanged ( nameof ( ShowVideoHosts ) ) ;
426430 OnPropertyChanged ( nameof ( CanPlayPause ) ) ;
427431 OnPropertyChanged ( nameof ( CanGoNext ) ) ;
428432 OnPropertyChanged ( nameof ( CanGoPrevious ) ) ;
You can’t perform that action at this time.
0 commit comments