Class Selector
Represents a visual representation of selected elements. It behaves like a container for single or multiple selected elements.
Inheritance
System.Object
Selector
Implements
System.IDisposable
System.ComponentModel.INotifyPropertyChanged
Assembly: Syncfusion.SfDiagram.WPF.dll
Syntax
public class Selector : Group, ISharedData, IDisposable, ISelectorView, IGroupView, INodeView, IView, ISelector, IGroup, INode, IGroupable, IDiagramElement, IID, INotifyPropertyChanged
Constructors
Selector()
Initializes a new instance of the Selector class.
Declaration
Fields
AnnotationProperty
Using a DependencyProperty as the backing store for Annotation. This enables animation, styling, binding, etc...
Declaration
public static DependencyProperty AnnotationProperty
Field Value
Type |
System.Windows.DependencyProperty |
CommandsProperty
Using a DependencyProperty as the backing store for Commands. This enables animation, styling, binding, etc...
Declaration
public static DependencyProperty CommandsProperty
Field Value
Type |
System.Windows.DependencyProperty |
DiagramCommandsProperty
Using a DependencyProperty as the backing store for DiagramCommands property. This enables animation, styling, binding, etc...
Declaration
public static DependencyProperty DiagramCommandsProperty
Field Value
Type |
System.Windows.DependencyProperty |
LanesProperty
Using a DependencyProperty as the backing store for Port. This enables animation, styling, binding, etc...
Declaration
public static DependencyProperty LanesProperty
Field Value
Type |
System.Windows.DependencyProperty |
PhasesProperty
Using a DependencyProperty as the backing store for Port. This enables animation, styling, binding, etc...
Declaration
public static DependencyProperty PhasesProperty
Field Value
Type |
System.Windows.DependencyProperty |
PortProperty
Using a DependencyProperty as the backing store for Port. This enables animation, styling, binding, etc...
Declaration
public static DependencyProperty PortProperty
Field Value
Type |
System.Windows.DependencyProperty |
SelectedItemProperty
Using a DependencyProperty as the backing store for FirstSelectedItem. This enables animation, styling, binding, etc...
Declaration
public static DependencyProperty SelectedItemProperty
Field Value
Type |
System.Windows.DependencyProperty |
SelectorConstraintsProperty
Using a DependencyProperty as the backing store for SelectorConstraints. This enables animation, styling, binding, etc...
Declaration
public static DependencyProperty SelectorConstraintsProperty
Field Value
Type |
System.Windows.DependencyProperty |
Using a DependencyProperty as the backing store for Port. This enables animation, styling, binding, etc...
Declaration
public static DependencyProperty SwimlaneHeaderProperty
Field Value
Type |
System.Windows.DependencyProperty |
SwimlanesProperty
Using a DependencyProperty as the backing store for Port. This enables animation, styling, binding, etc...
Declaration
public static DependencyProperty SwimlanesProperty
Field Value
Type |
System.Windows.DependencyProperty |
TooltipContentProperty
Using a DependencyProperty as the backing store for TooltipContent. This enables animation, styling, binding, etc...
Declaration
public static DependencyProperty TooltipContentProperty
Field Value
Type |
System.Windows.DependencyProperty |
Declaration
public static readonly DependencyProperty ToolTipProperty
Field Value
Type |
System.Windows.DependencyProperty |
Using a DependencyProperty as the backing store for TooltipTemplate. This enables animation, styling, binding, etc...
Declaration
public static DependencyProperty TooltipTemplateProperty
Field Value
Type |
System.Windows.DependencyProperty |
Using a DependencyProperty as the backing store for TooltipVisibility property. This enables animation, styling, binding, etc...
Declaration
public static DependencyProperty TooltipVisibilityProperty
Field Value
Type |
System.Windows.DependencyProperty |
Properties
Annotation
Gets or sets the annotation for the selected element.
Declaration
public IAnnotation Annotation { get; set; }
Property Value
Commands
Gets or sets a collection of object where each object represents a IQuickCommand.
Declaration
public object Commands { get; set; }
Property Value
DiagramCommands
Gets the diagram commands value.
Declaration
public IDiagramCommands DiagramCommands { get; }
Property Value
Lanes
Gets or sets a collection of objects where each object represents a ILane.
Declaration
public object Lanes { get; set; }
Property Value
Phases
Gets or sets a collection of objects where each object represents a IPhase.
Declaration
public object Phases { get; set; }
Property Value
Port
Gets or sets the port to the selected element.
Declaration
public IPort Port { get; set; }
Property Value
SelectedItem
Gets or sets the firstselected item of the diagram.
Declaration
public object SelectedItem { get; set; }
Property Value
SelectorConstraints
Gets or sets the default behaviors for selector.
Declaration
public SelectorConstraints SelectorConstraints { get; set; }
Property Value
Gets or sets the Header to the selected element.
Declaration
public ISwimlaneHeader SwimlaneHeader { get; set; }
Property Value
Swimlanes
Gets or sets a collection of objects where each object represents a ISwimlane.
Declaration
public object Swimlanes { get; set; }
Property Value
Get or sets tool tip value for selector.
Declaration
public ToolTip ToolTip { get; set; }
Property Value
Gets or sets the ToolTip as Delete for Delete Quickcommand.
Declaration
public string ToolTip_Delete { get; set; }
Property Value
Gets or sets the ToolTip as Draw for Draw Quickcommand.
Declaration
public string ToolTip_Draw { get; set; }
Property Value
Gets or sets the ToolTip as Duplicate for Duplicate Quickcommand.
Declaration
public string ToolTip_Duplicate { get; set; }
Property Value
Gets or sets the ToolTip as Pivot for Pivot Quickcommand.
Declaration
public string ToolTip_Pivot { get; set; }
Property Value
TooltipContent
Gets or sets the tooltip content to the selector.
Declaration
public object TooltipContent { get; set; }
Property Value
Gets or sets the tooltip template to the selector.
Declaration
public DataTemplate TooltipTemplate { get; set; }
Property Value
Type |
System.Windows.DataTemplate |
Gets or sets port visibility value.
Declaration
public Visibility TooltipVisibility { get; }
Property Value
Type |
System.Windows.Visibility |
Methods
ClearSelection(Object)
Clear the selected items in the Diagram.
Declaration
protected void ClearSelection(object Element = null)
Parameters
Type |
Name |
Description |
System.Object |
Element |
|
CornerBTAngle(Object)
Set the Cursor rotation angle.
Declaration
public void CornerBTAngle(object sender)
Parameters
Type |
Name |
Description |
System.Object |
sender |
|
CornerBTRightAngle(Object)
Set the Cursor rotation angle.
Declaration
public void CornerBTRightAngle(object sender)
Parameters
Type |
Name |
Description |
System.Object |
sender |
|
CornerRLAngle(Object)
Set the Cursor rotation angle.
Declaration
public void CornerRLAngle(object sender)
Parameters
Type |
Name |
Description |
System.Object |
sender |
|
CornerTBLeftAngle(Object)
Set the Cursor rotation angle.
Declaration
public void CornerTBLeftAngle(object sender)
Parameters
Type |
Name |
Description |
System.Object |
sender |
|
GroupSelectionHierarchy(Object)
Method to decide Selection Hierarchy Order
Declaration
protected virtual void GroupSelectionHierarchy(object Source = null)
Parameters
Type |
Name |
Description |
System.Object |
Source |
|
MeasureOverride(Size)
Method to measure size of Selector class elements.
Declaration
protected override Size MeasureOverride(Size availableSize)
Parameters
Type |
Name |
Description |
System.Windows.Size |
availableSize |
Size to be measure.
|
Returns
Type |
Description |
System.Windows.Size |
Return measured size.
|
Overrides
OnApplyTemplate()
Method to apply template values to Selector class elements.
Declaration
public override void OnApplyTemplate()
Overrides
PointerSelection(PointerSelectionArgs)
Method to decide whether Selection should be done in PointerDown.
Declaration
protected virtual void PointerSelection(PointerSelectionArgs args)
Parameters
Selection(Object)
Declaration
protected void Selection(object element = null)
Parameters
Type |
Name |
Description |
System.Object |
element |
Diagrammig objects
|
SelectPredecessor(Object)
Method to Select the Parent to Child
Declaration
protected void SelectPredecessor(object element = null)
Parameters
Type |
Name |
Description |
System.Object |
element |
Diagrammig objects
|
SelectSuccessor(Object)
Method to Select the Child to Parent
Declaration
protected void SelectSuccessor(object element = null)
Parameters
Type |
Name |
Description |
System.Object |
element |
Diagrammig objects
|
Declaration
public void UpdateToolTip(NodeConstraints nodeConstraints)
Parameters
Explicit Interface Implementations
IGroup.get_Padding()
Declaration
Thickness IGroup.get_Padding()
Returns
Type |
System.Windows.Thickness |
IGroup.set_Padding(Thickness)
Declaration
void IGroup.set_Padding(Thickness value)
Parameters
Type |
Name |
Description |
System.Windows.Thickness |
value |
|
INode.get_Content()
Declaration
object INode.get_Content()
Returns
INode.get_ContentTemplate()
Declaration
DataTemplate INode.get_ContentTemplate()
Returns
Type |
System.Windows.DataTemplate |
INode.get_MaxHeight()
Declaration
double INode.get_MaxHeight()
Returns
INode.get_MaxWidth()
Declaration
double INode.get_MaxWidth()
Returns
INode.get_MinHeight()
Declaration
double INode.get_MinHeight()
Returns
INode.get_MinWidth()
Declaration
double INode.get_MinWidth()
Returns
INode.set_Content(Object)
Declaration
void INode.set_Content(object value)
Parameters
Type |
Name |
Description |
System.Object |
value |
|
INode.set_ContentTemplate(DataTemplate)
Declaration
void INode.set_ContentTemplate(DataTemplate value)
Parameters
Type |
Name |
Description |
System.Windows.DataTemplate |
value |
|
INode.set_MaxHeight(Double)
Declaration
void INode.set_MaxHeight(double value)
Parameters
Type |
Name |
Description |
System.Double |
value |
|
INode.set_MaxWidth(Double)
Declaration
void INode.set_MaxWidth(double value)
Parameters
Type |
Name |
Description |
System.Double |
value |
|
INode.set_MinHeight(Double)
Declaration
void INode.set_MinHeight(double value)
Parameters
Type |
Name |
Description |
System.Double |
value |
|
INode.set_MinWidth(Double)
Declaration
void INode.set_MinWidth(double value)
Parameters
Type |
Name |
Description |
System.Double |
value |
|
Implements
System.IDisposable
System.ComponentModel.INotifyPropertyChanged