C# Class ICSharpCode.WpfDesign.Designer.Services.CreateComponentTool

A tool that creates a component.
Inheritance: ITool
Afficher le fichier Open project: icsharpcode/WpfDesigner Class Usage Examples

Méthodes publiques

Méthode Description
Activate ( IDesignPanel designPanel ) : void
AddItemWithCustomSizePosition ( DesignItem container, Type createdItem, Size size, Point position ) : bool
AddItemWithDefaultSize ( DesignItem container, Type createdItem, Size size ) : bool
CreateComponentTool ( Type componentType ) : System

Creates a new CreateComponentTool instance.

Deactivate ( IDesignPanel designPanel ) : void

Méthodes protégées

Méthode Description
CreateItem ( DesignContext context ) : DesignItem

Is called to create the item used by the CreateComponentTool.

Private Methods

Méthode Description
AddItemWithCustomSize ( DesignItem container, DesignItem createdItem, Point position, Size size ) : bool
AddItemWithDefaultSize ( DesignItem container, DesignItem createdItem, Point position ) : bool
OnMouseDown ( object sender, System.Windows.Input.MouseButtonEventArgs e ) : void
designPanel_DragLeave ( object sender, System.Windows.DragEventArgs e ) : void
designPanel_DragOver ( object sender, System.Windows.DragEventArgs e ) : void
designPanel_Drop ( object sender, System.Windows.DragEventArgs e ) : void

Method Details

Activate() public méthode

public Activate ( IDesignPanel designPanel ) : void
designPanel IDesignPanel
Résultat void

AddItemWithCustomSizePosition() public static méthode

public static AddItemWithCustomSizePosition ( DesignItem container, Type createdItem, Size size, Point position ) : bool
container DesignItem
createdItem System.Type
size System.Windows.Size
position Point
Résultat bool

AddItemWithDefaultSize() public static méthode

public static AddItemWithDefaultSize ( DesignItem container, Type createdItem, Size size ) : bool
container DesignItem
createdItem System.Type
size System.Windows.Size
Résultat bool

CreateComponentTool() public méthode

Creates a new CreateComponentTool instance.
public CreateComponentTool ( Type componentType ) : System
componentType System.Type
Résultat System

CreateItem() protected méthode

Is called to create the item used by the CreateComponentTool.
protected CreateItem ( DesignContext context ) : DesignItem
context DesignContext
Résultat DesignItem

Deactivate() public méthode

public Deactivate ( IDesignPanel designPanel ) : void
designPanel IDesignPanel
Résultat void