diff --git a/src/InvvardDev.EZLayoutDisplay.Desktop/Skins/DisplayLayoutSkin.xaml b/src/InvvardDev.EZLayoutDisplay.Desktop/Skins/DisplayLayoutSkin.xaml index e7ee5cdd..cb570f99 100644 --- a/src/InvvardDev.EZLayoutDisplay.Desktop/Skins/DisplayLayoutSkin.xaml +++ b/src/InvvardDev.EZLayoutDisplay.Desktop/Skins/DisplayLayoutSkin.xaml @@ -2,28 +2,40 @@ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> + + + + + \ No newline at end of file diff --git a/src/InvvardDev.EZLayoutDisplay.Desktop/View/DisplayLayoutWindow.xaml b/src/InvvardDev.EZLayoutDisplay.Desktop/View/DisplayLayoutWindow.xaml index bd4d6668..fe7ca820 100644 --- a/src/InvvardDev.EZLayoutDisplay.Desktop/View/DisplayLayoutWindow.xaml +++ b/src/InvvardDev.EZLayoutDisplay.Desktop/View/DisplayLayoutWindow.xaml @@ -42,11 +42,18 @@ + + + + + + diff --git a/src/InvvardDev.EZLayoutDisplay.Desktop/ViewModel/DisplayLayoutViewModel.cs b/src/InvvardDev.EZLayoutDisplay.Desktop/ViewModel/DisplayLayoutViewModel.cs index f364b99c..669bf3c4 100644 --- a/src/InvvardDev.EZLayoutDisplay.Desktop/ViewModel/DisplayLayoutViewModel.cs +++ b/src/InvvardDev.EZLayoutDisplay.Desktop/ViewModel/DisplayLayoutViewModel.cs @@ -43,6 +43,7 @@ public class DisplayLayoutViewModel : ViewModelBase private string _noLayoutWarningSecondLine; private string _currentLayerNameTitle; private string _currentLayerName; + private string _controlHintLabel; private bool _noLayoutAvailable; #endregion @@ -94,6 +95,15 @@ public string CurrentLayerName private set => Set(ref _currentLayerName, value); } + /// + /// Gets or sets the control hint label. + /// + public string ControlHintLabel + { + get => _controlHintLabel; + private set => Set(ref _controlHintLabel, value); + } + /// /// Gets or sets the no layout available indicator. /// @@ -166,6 +176,7 @@ private void SetLabelUi() NoLayoutWarningSecondLine = "Please, go to the settings and update the layout."; CurrentLayerNameTitle = "Current layer :"; CurrentLayerName = ""; + ControlHintLabel = "Press 'Space' to display next layer"; } private async void LoadCompleteLayout() diff --git a/src/InvvardDev.EZLayoutDisplay.Tests/ViewModel/DisplayLayoutViewModelTest.cs b/src/InvvardDev.EZLayoutDisplay.Tests/ViewModel/DisplayLayoutViewModelTest.cs index 8ccd012b..96067371 100644 --- a/src/InvvardDev.EZLayoutDisplay.Tests/ViewModel/DisplayLayoutViewModelTest.cs +++ b/src/InvvardDev.EZLayoutDisplay.Tests/ViewModel/DisplayLayoutViewModelTest.cs @@ -11,7 +11,7 @@ namespace InvvardDev.EZLayoutDisplay.Tests.ViewModel public class DisplayLayoutViewModelTest { [ Fact ] - public void DisplayLayoutViewModelConstructor() + public void DisplayLayoutViewModel_Constructor() { //Arrange var mockWindowService = new Mock(); @@ -40,6 +40,7 @@ public void DisplayLayoutViewModelConstructor() Assert.Equal("Please, go to the settings and update the layout.", displayLayoutViewModel.NoLayoutWarningSecondLine); Assert.Equal("Current layer :", displayLayoutViewModel.CurrentLayerNameTitle); Assert.Equal("", displayLayoutViewModel.CurrentLayerName); + Assert.Equal("Press 'Space' to display next layer", displayLayoutViewModel.ControlHintLabel); } [ Fact ]