From fdfa740288568dba27877a5ef5c817be323cfbb0 Mon Sep 17 00:00:00 2001 From: Roy Ben-Shabat Date: Mon, 16 Jul 2018 13:47:20 +0300 Subject: Working on PPC. --- .../Tango.PPC.Common/Navigation/INavigationManager.cs | 18 ++++++++++++++++++ .../Tango.PPC.Common/Notifications/NotificationItem.cs | 13 +++++++++++++ .../NotificationItems/MessageNotificationItemView.xaml | 13 ++++++++++++- 3 files changed, 43 insertions(+), 1 deletion(-) (limited to 'Software/Visual_Studio/PPC/Tango.PPC.Common') diff --git a/Software/Visual_Studio/PPC/Tango.PPC.Common/Navigation/INavigationManager.cs b/Software/Visual_Studio/PPC/Tango.PPC.Common/Navigation/INavigationManager.cs index 249a917de..94a2e8d35 100644 --- a/Software/Visual_Studio/PPC/Tango.PPC.Common/Navigation/INavigationManager.cs +++ b/Software/Visual_Studio/PPC/Tango.PPC.Common/Navigation/INavigationManager.cs @@ -12,8 +12,16 @@ namespace Tango.PPC.Common.Navigation /// public interface INavigationManager { + /// + /// Gets the current module. + /// IPPCModule CurrentModule { get; } + /// + /// Gets the current view model. + /// + PPCViewModel CurrentVM { get; } + /// /// Gets a value indicating whether the navigation system is able to navigate to the previous view. /// @@ -86,5 +94,15 @@ namespace Tango.PPC.Common.Navigation /// Task NavigateWithObject(TPass obj, bool pushToHistory = true) where TModule : IPPCModule; + + /// + /// Clears the navigation back history. + /// + void ClearHistory(); + + /// + /// Clears the navigation back history except the specified view type. + /// + void ClearHistoryExcept(); } } diff --git a/Software/Visual_Studio/PPC/Tango.PPC.Common/Notifications/NotificationItem.cs b/Software/Visual_Studio/PPC/Tango.PPC.Common/Notifications/NotificationItem.cs index 2f74024f3..1fdf0c729 100644 --- a/Software/Visual_Studio/PPC/Tango.PPC.Common/Notifications/NotificationItem.cs +++ b/Software/Visual_Studio/PPC/Tango.PPC.Common/Notifications/NotificationItem.cs @@ -14,6 +14,19 @@ namespace Tango.PPC.Common.Notifications /// public abstract class NotificationItem : ItemBase { + private bool _isExpanded; + /// + /// Gets or sets a value indicating whether the notification panel is expanded. + /// + public bool IsExpanded + { + get { return _isExpanded; } + set { _isExpanded = value; RaisePropertyChangedAuto(); } + } + + /// + /// Called when the item has been pressed. + /// protected override void OnPreesed() { base.OnPreesed(); diff --git a/Software/Visual_Studio/PPC/Tango.PPC.Common/Notifications/NotificationItems/MessageNotificationItemView.xaml b/Software/Visual_Studio/PPC/Tango.PPC.Common/Notifications/NotificationItems/MessageNotificationItemView.xaml index b049dc108..fa26bce83 100644 --- a/Software/Visual_Studio/PPC/Tango.PPC.Common/Notifications/NotificationItems/MessageNotificationItemView.xaml +++ b/Software/Visual_Studio/PPC/Tango.PPC.Common/Notifications/NotificationItems/MessageNotificationItemView.xaml @@ -49,7 +49,18 @@ - + + + + + -- cgit v1.3.1