Class LayoutManager
A WPF layout manager for .NET.
Inherited Members
Namespace: FM.LiveSwitch.Uwp
Assembly: FM.LiveSwitch.Uwp.dll
Syntax
public class LayoutManager : LayoutManager<FrameworkElement>
Constructors
LayoutManager(Canvas)
Initializes a new instance of the LayoutManager class.
Declaration
public LayoutManager(Canvas container)
Parameters
Type | Name | Description |
---|---|---|
Windows.UI.Xaml.Controls.Canvas | container | The layout container. |
LayoutManager(Canvas, LayoutPreset)
Initializes a new instance of the LayoutManager class.
Declaration
public LayoutManager(Canvas container, LayoutPreset preset)
Parameters
Type | Name | Description |
---|---|---|
Windows.UI.Xaml.Controls.Canvas | container | The layout container. |
LayoutPreset | preset | The layout preset. |
Properties
Container
Gets the layout container.
Declaration
public Canvas Container { get; }
Property Value
Type | Description |
---|---|
Windows.UI.Xaml.Controls.Canvas |
Mode
Gets or sets the mode used by the layout engine. Defaults to FloatLocal.
Declaration
public override LayoutMode Mode { get; set; }
Property Value
Type | Description |
---|---|
LayoutMode |
Overrides
Methods
AddView(FrameworkElement)
Adds a view to the container.
Declaration
protected override void AddView(FrameworkElement view)
Parameters
Type | Name | Description |
---|---|---|
Windows.UI.Xaml.FrameworkElement | view | The view to add. |
Overrides
FM.LiveSwitch.LayoutManager<Windows.UI.Xaml.FrameworkElement>.AddView(Windows.UI.Xaml.FrameworkElement)
DispatchToMainThread(Action2<Object, Object>, Object, Object)
Dispatches an action to the main thread.
Declaration
protected override void DispatchToMainThread(Action2<object, object> action, object arg1, object arg2)
Parameters
Type | Name | Description |
---|---|---|
Action2<System.Object, System.Object> | action | The action to invoke. |
System.Object | arg1 | The first argument. |
System.Object | arg2 | The second argument. |
Overrides
FM.LiveSwitch.LayoutManager<Windows.UI.Xaml.FrameworkElement>.DispatchToMainThread(FM.LiveSwitch.Action2<System.Object, System.Object>, System.Object, System.Object)
Layout()
Positions the local and remote views within the layout.
Declaration
public override void Layout()
Overrides
FM.LiveSwitch.LayoutManager<Windows.UI.Xaml.FrameworkElement>.Layout()
RemoveView(FrameworkElement)
Removes a view from the container.
Declaration
protected override void RemoveView(FrameworkElement view)
Parameters
Type | Name | Description |
---|---|---|
Windows.UI.Xaml.FrameworkElement | view | The view to remove. |
Overrides
FM.LiveSwitch.LayoutManager<Windows.UI.Xaml.FrameworkElement>.RemoveView(Windows.UI.Xaml.FrameworkElement)