Class DoNotShowAgainPopupBase
Interaction logic for DoNotShowAgainPopupBase.xaml
Inheritance
Implements
Inherited Members
Namespace: Phoenix.Aruba.Views
Assembly: Phoenix.Plugin.Aruba.dll
Syntax
public class DoNotShowAgainPopupBase : Window, IAnimatable, ISupportInitialize, IFrameworkInputElement, IInputElement, IQueryAmbient, IAddChild, IComponentConnector
Remarks
This class is designed to serve as a base for pop-up windows that display some sort of message to the user, but allows the user to decide to hide this pop-up in the future. There is a "Do Not Show Again" checkbox whose value is meant to be tied to an arbitrary togglable Aruba setting. The default window has a "Yes" and "No" button that by default corresponds to canceling some action.
Constructors
View SourceDoNotShowAgainPopupBase(string, string, Action, FrameworkElement, int, int)
Initializes a new instance of DoNotShowAgainPopupBase.
Declaration
public DoNotShowAgainPopupBase(string windowMessage, string windowTitle, Action arubaSettingFunc, FrameworkElement dynamicContent = null, int height = 200, int width = 400)
Parameters
Type | Name | Description |
---|---|---|
string | windowMessage | The main message of the pop-up. |
string | windowTitle | The title of the windowed pop-up. |
Action | arubaSettingFunc | A function pointer to the function that will toggle the appropriate Aruba setting. |
FrameworkElement | dynamicContent | Additional WPF content to display in the window. |
int | height | The height of the window. |
int | width | The width of the window. |
Properties
View SourceCancel
Gets a value indicating whether the user wants to cancel an action.
Declaration
public bool Cancel { get; }
Property Value
Type | Description |
---|---|
bool |
Methods
View SourceInitializeComponent()
InitializeComponent
Declaration
public void InitializeComponent()