C# Класс ICSharpCode.WpfDesign.Designer.DesignPanel

Наследование: System.Windows.Controls.Decorator, IDesignPanel, INotifyPropertyChanged
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
AddContextMenu ( System.Windows.Controls.ContextMenu contextMenu ) : void
ClearContextMenu ( ) : void
DesignPanel ( ) : System
HitTest ( Point mousePosition, bool testAdorners, bool testDesignSurface, HitTestType hitTestType ) : DesignPanelHitTestResult

Performs a custom hit testing lookup for the specified mouse event args.

HitTest ( Point mousePosition, bool testAdorners, bool testDesignSurface, Predicate callback, HitTestType hitTestType ) : void

Performs a hit test on the design surface, raising callback for each match. Hit testing continues while the callback returns true.

RemoveContextMenu ( System.Windows.Controls.ContextMenu contextMenu ) : void

Защищенные методы

Метод Описание
ArrangeOverride ( Size arrangeSize ) : Size
GetVisualChild ( int index ) : Visual
MeasureOverride ( Size constraint ) : Size
OnQueryCursor ( System.Windows.Input.QueryCursorEventArgs e ) : void

Приватные методы

Метод Описание
DesignPanel_KeyDown ( object sender, System.Windows.Input.KeyEventArgs e ) : void
DesignPanel_KeyUp ( object sender, System.Windows.Input.KeyEventArgs e ) : void
FilterHitTestInvisibleElements ( DependencyObject potentialHitTestTarget, HitTestType hitTestType ) : HitTestFilterBehavior
InvokeDefaultKeyDownAction ( ICSharpCode.WpfDesign.Extensions.Extension e ) : bool

If interface implementing class sets this to false defaultkeyaction will be

IsPropertySet ( UIElement element, DependencyProperty d ) : bool
OnPropertyChanged ( string propertyName ) : void
RunHitTest ( Visual reference, Point point, HitTestFilterCallback filterCallback, HitTestResultCallback resultCallback ) : void
UpdateContextMenu ( ) : void

Описание методов

AddContextMenu() публичный Метод

public AddContextMenu ( System.Windows.Controls.ContextMenu contextMenu ) : void
contextMenu System.Windows.Controls.ContextMenu
Результат void

ArrangeOverride() защищенный Метод

protected ArrangeOverride ( Size arrangeSize ) : Size
arrangeSize System.Windows.Size
Результат System.Windows.Size

ClearContextMenu() публичный Метод

public ClearContextMenu ( ) : void
Результат void

DesignPanel() публичный Метод

public DesignPanel ( ) : System
Результат System

GetVisualChild() защищенный Метод

protected GetVisualChild ( int index ) : Visual
index int
Результат Visual

HitTest() публичный Метод

Performs a custom hit testing lookup for the specified mouse event args.
public HitTest ( Point mousePosition, bool testAdorners, bool testDesignSurface, HitTestType hitTestType ) : DesignPanelHitTestResult
mousePosition Point
testAdorners bool
testDesignSurface bool
hitTestType HitTestType
Результат DesignPanelHitTestResult

HitTest() публичный Метод

Performs a hit test on the design surface, raising callback for each match. Hit testing continues while the callback returns true.
public HitTest ( Point mousePosition, bool testAdorners, bool testDesignSurface, Predicate callback, HitTestType hitTestType ) : void
mousePosition Point
testAdorners bool
testDesignSurface bool
callback Predicate
hitTestType HitTestType
Результат void

MeasureOverride() защищенный Метод

protected MeasureOverride ( Size constraint ) : Size
constraint System.Windows.Size
Результат System.Windows.Size

OnQueryCursor() защищенный Метод

protected OnQueryCursor ( System.Windows.Input.QueryCursorEventArgs e ) : void
e System.Windows.Input.QueryCursorEventArgs
Результат void

RemoveContextMenu() публичный Метод

public RemoveContextMenu ( System.Windows.Controls.ContextMenu contextMenu ) : void
contextMenu System.Windows.Controls.ContextMenu
Результат void