C# Class ICSharpCode.WpfDesign.Designer.DesignPanel

Inheritance: System.Windows.Controls.Decorator, IDesignPanel, INotifyPropertyChanged
ファイルを表示 Open project: icsharpcode/WpfDesigner Class Usage Examples

Public Methods

Method Description
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

Protected Methods

Method Description
ArrangeOverride ( Size arrangeSize ) : Size
GetVisualChild ( int index ) : Visual
MeasureOverride ( Size constraint ) : Size
OnQueryCursor ( System.Windows.Input.QueryCursorEventArgs e ) : void

Private Methods

Method Description
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

Method Details

AddContextMenu() public method

public AddContextMenu ( System.Windows.Controls.ContextMenu contextMenu ) : void
contextMenu System.Windows.Controls.ContextMenu
return void

ArrangeOverride() protected method

protected ArrangeOverride ( Size arrangeSize ) : Size
arrangeSize System.Windows.Size
return System.Windows.Size

ClearContextMenu() public method

public ClearContextMenu ( ) : void
return void

DesignPanel() public method

public DesignPanel ( ) : System
return System

GetVisualChild() protected method

protected GetVisualChild ( int index ) : Visual
index int
return Visual

HitTest() public method

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
return DesignPanelHitTestResult

HitTest() public method

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
return void

MeasureOverride() protected method

protected MeasureOverride ( Size constraint ) : Size
constraint System.Windows.Size
return System.Windows.Size

OnQueryCursor() protected method

protected OnQueryCursor ( System.Windows.Input.QueryCursorEventArgs e ) : void
e System.Windows.Input.QueryCursorEventArgs
return void

RemoveContextMenu() public method

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