From 6278bcfbe4efd444d7585963b439d836f62366c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roland=20K=C3=B6nig?= Date: Tue, 29 Jun 2021 10:52:14 +0200 Subject: [PATCH] Updated profile contextmenu --- MessageCommunicator.TestGui/MainWindow.axaml | 16 ++++++++++++++-- .../MainWindowViewModel.cs | 4 ++-- 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/MessageCommunicator.TestGui/MainWindow.axaml b/MessageCommunicator.TestGui/MainWindow.axaml index d849a2a..955b20c 100644 --- a/MessageCommunicator.TestGui/MainWindow.axaml +++ b/MessageCommunicator.TestGui/MainWindow.axaml @@ -9,7 +9,7 @@ MinWidth="200" MinHeight="200" Width="800" Height="550" Icon="Assets/MessageCommunicator.ico" - ExtendClientAreaToDecorationsHint="True" + ExtendClientAreaToDecorationsHint="False" Title="MessageCommunicator"> @@ -65,7 +65,6 @@ Header="Profiles" Classes="GroupBox"> - + + + + + diff --git a/MessageCommunicator.TestGui/MainWindowViewModel.cs b/MessageCommunicator.TestGui/MainWindowViewModel.cs index 5644971..6e10c6d 100644 --- a/MessageCommunicator.TestGui/MainWindowViewModel.cs +++ b/MessageCommunicator.TestGui/MainWindowViewModel.cs @@ -33,7 +33,7 @@ public ConnectionProfileViewModel? SelectedProfile _selectedProfile = value; this.SendMessageVM.CurrentConnectionProfile = _selectedProfile?.Model; this.RaisePropertyChanged(nameof(this.SelectedProfile)); - this.RaisePropertyChanged(nameof(this.IsProfileScreenEnabled)); + this.RaisePropertyChanged(nameof(this.IsProfileSelected)); } } } @@ -53,7 +53,7 @@ public MainWindowFrameStatus StatusBarState public SendMessageViewModel SendMessageVM { get; } - public bool IsProfileScreenEnabled => _selectedProfile != null; + public bool IsProfileSelected => _selectedProfile != null; public ReactiveCommand Command_ImportProfiles { get; }