feat(ui): persist retained window layouts
This commit is contained in:
parent
a8e9503d2e
commit
921c388e2c
22 changed files with 705 additions and 141 deletions
|
|
@ -19,13 +19,15 @@ public sealed class RetailWindowHandle
|
|||
string name,
|
||||
UiElement outerFrame,
|
||||
UiElement contentRoot,
|
||||
IRetainedPanelController? controller)
|
||||
IRetainedPanelController? controller,
|
||||
IRetainedWindowStateController? stateController)
|
||||
{
|
||||
_owner = owner;
|
||||
Name = name;
|
||||
OuterFrame = outerFrame;
|
||||
ContentRoot = contentRoot;
|
||||
Controller = controller;
|
||||
StateController = stateController;
|
||||
_notifiedVisible = outerFrame.Visible;
|
||||
}
|
||||
|
||||
|
|
@ -33,6 +35,7 @@ public sealed class RetailWindowHandle
|
|||
public UiElement OuterFrame { get; }
|
||||
public UiElement ContentRoot { get; }
|
||||
public IRetainedPanelController? Controller { get; }
|
||||
public IRetainedWindowStateController? StateController { get; }
|
||||
public bool IsRegistered => !_disposed;
|
||||
public bool IsVisible => OuterFrame.Visible;
|
||||
public bool IsLocked => _owner.IsLocked;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue