Table of Contents

ComponentPresenter 类

命名空间
ClassIsland.Core.Controls
程序集
ClassIsland.Core.dll

ComponentPresenter.xaml 的交互逻辑

public class ComponentPresenter : UserControl, IAnimatable, ISupportInitialize, IFrameworkInputElement, IInputElement, IQueryAmbient, IAddChild, INotifyPropertyChanged, IComponentConnector
继承
ComponentPresenter
实现
继承成员

构造函数

ComponentPresenter()

public ComponentPresenter()

字段

ComponentVisibilityChangedEvent

public static readonly RoutedEvent ComponentVisibilityChangedEvent

字段值

RoutedEvent

HideOnRuleProperty

public static readonly DependencyProperty HideOnRuleProperty

字段值

DependencyProperty

HidingRulesProperty

public static readonly DependencyProperty HidingRulesProperty

字段值

DependencyProperty

IsOnMainWindowProperty

public static readonly DependencyProperty IsOnMainWindowProperty

字段值

DependencyProperty

IsPresentingSettingsProperty

public static readonly DependencyProperty IsPresentingSettingsProperty

字段值

DependencyProperty

IsRootComponentProperty

public static readonly DependencyProperty IsRootComponentProperty

字段值

DependencyProperty

SettingsProperty

public static readonly DependencyProperty SettingsProperty

字段值

DependencyProperty

属性

HideOnRule

public bool HideOnRule { get; set; }

属性值

bool

HidingRules

public Ruleset? HidingRules { get; set; }

属性值

Ruleset

IsOnMainWindow

public bool IsOnMainWindow { get; set; }

属性值

bool

IsPresentingSettings

public bool IsPresentingSettings { get; set; }

属性值

bool

IsRootComponent

public bool IsRootComponent { get; set; }

属性值

bool

PresentingContent

public object? PresentingContent { get; set; }

属性值

object

Settings

public ComponentSettings? Settings { get; set; }

属性值

ComponentSettings

方法

InitializeComponent()

InitializeComponent

public void InitializeComponent()

OnPropertyChanged(string?)

protected virtual void OnPropertyChanged(string? propertyName = null)

参数

propertyName string

SetField<T>(ref T, T, string?)

protected bool SetField<T>(ref T field, T value, string? propertyName = null)

参数

field T
value T
propertyName string

返回

bool

类型参数

T

事件

ComponentVisibilityChanged

public event RoutedEventHandler ComponentVisibilityChanged

事件类型

RoutedEventHandler

PropertyChanged

Occurs when a property value changes.

public event PropertyChangedEventHandler? PropertyChanged

事件类型

PropertyChangedEventHandler