Table of Contents

Class Part

Namespace
H.Controls.Diagram.Parts.Base
Assembly
H.Controls.Diagram.dll
public abstract class Part : ContentPresenter, IAnimatable, ISupportInitialize, IFrameworkInputElement, IInputElement, IQueryAmbient
Inheritance
Part
Implements
Derived
Inherited Members
Extension Methods

Constructors

Part()

public Part()

Fields

DeleteCommand

public static RoutedUICommand DeleteCommand

Field Value

RoutedUICommand

HasErrorProperty

public static readonly DependencyProperty HasErrorProperty

Field Value

DependencyProperty

IsCanDropProperty

设置是否放入有效区域并且验证可以放下的效果

public static readonly DependencyProperty IsCanDropProperty

Field Value

DependencyProperty

IsDragEnterProperty

是否拖入

public static readonly DependencyProperty IsDragEnterProperty

Field Value

DependencyProperty

IsSelectedProperty

public static readonly DependencyProperty IsSelectedProperty

Field Value

DependencyProperty

SelectionChangedRoutedEvent

public static readonly RoutedEvent SelectionChangedRoutedEvent

Field Value

RoutedEvent

Properties

Bound

public Rect Bound { get; }

Property Value

Rect

Data

public virtual IData Data { get; }

Property Value

IData

HasError

public bool HasError { get; set; }

Property Value

bool

IsSelected

public bool IsSelected { get; set; }

Property Value

bool

Methods

Clear()

清理逻辑关系

public virtual void Clear()

Delete()

删除图层上的元素

public virtual void Delete()

GetContent<T>()

public T GetContent<T>()

Returns

T

Type Parameters

T

GetDiagram()

public Diagram GetDiagram()

Returns

Diagram

GetIsCanDrop(DependencyObject)

public static bool GetIsCanDrop(DependencyObject d)

Parameters

d DependencyObject

Returns

bool

GetIsDragEnter(DependencyObject)

public static bool GetIsDragEnter(DependencyObject d)

Parameters

d DependencyObject

Returns

bool

GetNext()

public virtual Part GetNext()

Returns

Part

GetPrevious()

public virtual Part GetPrevious()

Returns

Part

OnSelectionChanged()

protected void OnSelectionChanged()

SetIsCanDrop(DependencyObject, bool)

public static void SetIsCanDrop(DependencyObject obj, bool value)

Parameters

obj DependencyObject
value bool

SetIsDragEnter(DependencyObject, bool)

public static void SetIsDragEnter(DependencyObject obj, bool value)

Parameters

obj DependencyObject
value bool

Events

SelectionChanged

public event RoutedEventHandler SelectionChanged

Event Type

RoutedEventHandler