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
字段值
HideOnRuleProperty
public static readonly DependencyProperty HideOnRuleProperty
字段值
HidingRulesProperty
public static readonly DependencyProperty HidingRulesProperty
字段值
IsOnMainWindowProperty
public static readonly DependencyProperty IsOnMainWindowProperty
字段值
IsPresentingSettingsProperty
public static readonly DependencyProperty IsPresentingSettingsProperty
字段值
IsRootComponentProperty
public static readonly DependencyProperty IsRootComponentProperty
字段值
SettingsProperty
public static readonly DependencyProperty SettingsProperty
字段值
属性
HideOnRule
public bool HideOnRule { get; set; }
属性值
HidingRules
public Ruleset? HidingRules { get; set; }
属性值
IsOnMainWindow
public bool IsOnMainWindow { get; set; }
属性值
IsPresentingSettings
public bool IsPresentingSettings { get; set; }
属性值
IsRootComponent
public bool IsRootComponent { get; set; }
属性值
PresentingContent
public object? PresentingContent { get; set; }
属性值
Settings
public ComponentSettings? Settings { get; set; }
属性值
方法
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
Tvalue
TpropertyName
string
返回
类型参数
T
事件
ComponentVisibilityChanged
public event RoutedEventHandler ComponentVisibilityChanged
事件类型
PropertyChanged
Occurs when a property value changes.
public event PropertyChangedEventHandler? PropertyChanged