-
Notifications
You must be signed in to change notification settings - Fork 20
RichItemsControl
Namespace: RichCanvas
Assembly: RichCanvas
Inheritance: Object → DispatcherObject → DependencyObject → Visual → UIElement → FrameworkElement → Control → ItemsControl → Selector → MultiSelector → RichItemsControl
References: RichItemContainer, RichCanvas
ItemsControl hosting RichCanvas
public class RichItemsControl : MultiSelector
Creates a new instance of RichItemsControl
public RichItemsControl();
public static DependencyProperty AppliedTransformProperty;
Field Value
protected static DependencyPropertyKey AppliedTransformPropertyKey;
Field Value
public static DependencyProperty AutoPanSpeedProperty;
Field Value
public static DependencyProperty AutoPanTickRateProperty;
Field Value
public static DependencyProperty DisableAutoPanningProperty;
Field Value
public static DependencyProperty DisableCacheProperty;
Field Value
public static DependencyProperty DisableScrollProperty;
Field Value
public static DependencyProperty DisableZoomProperty;
Field Value
public static RoutedEvent DrawingEndedEvent;
Field Value
public static DependencyProperty EnableGridProperty;
Field Value
public static DependencyProperty EnableSnappingProperty;
Field Value
public static DependencyProperty GridSpacingProperty;
Field Value
public static DependencyProperty GridStyleProperty;
Field Value
public static DependencyProperty IsSelectingProperty;
Field Value
protected static DependencyPropertyKey IsSelectingPropertyKey;
Field Value
public static DependencyProperty MaxScaleProperty;
Field Value
public static DependencyProperty MinScaleProperty;
Field Value
public static DependencyProperty MousePositionProperty;
Field Value
public static DependencyProperty PanningKeyProperty;
Field Value
public static DependencyProperty RealTimeSelectionEnabledProperty;
Field Value
public static DependencyProperty ScaleFactorProperty;
Field Value
public static DependencyProperty ScaleProperty;
Field Value
public static DependencyProperty ScrollFactorProperty;
Field Value
public static RoutedEvent ScrollingEvent;
Field Value
public static DependencyProperty SelectedItemsProperty;
Field Value
public static DependencyProperty SelectionRectangleProperty;
Field Value
protected static DependencyPropertyKey SelectionRectanglePropertyKey;
Field Value
public static DependencyProperty SelectionRectangleStyleProperty;
Field Value
public static DependencyProperty TranslateOffsetProperty;
Field Value
public static DependencyProperty ViewportRectProperty;
Field Value
public static RoutedEvent ZoomingEvent;
Field Value
public static DependencyProperty ZoomKeyProperty;
Field Value
Gets the transform that is applied to all child controls.
public TransformGroup AppliedTransform { get; set; }
Property Value
Gets or sets the RichItemsControl.ItemsHost translate speed. Default is 1.
public float AutoPanSpeed { get; set; }
Property Value
Gets or sets System.Windows.Threading.DispatcherTimer interval value. Default is 1.
public float AutoPanTickRate { get; set; }
Property Value
Gets or sets whether Auto-Panning is disabled. Default is enabled.
public bool DisableAutoPanning { get; set; }
Property Value
Gets or sets whether caching is disabled. Default is true
public bool DisableCache { get; set; }
Property Value
Gets or sets whether scrolling operation is disabled. Default is enabled.
public bool DisableScroll { get; set; }
Property Value
Gets or sets whether zooming operation is disabled. Default is enabled.
public bool DisableZoom { get; set; }
Property Value
Gets or sets whether Grid Drawing is enabled on RichItemsControl.ItemsHost background. Default is disabled.
public bool EnableGrid { get; set; }
Property Value
Gets or sets whether grid snap correction on RichItemContainer is applied. Default is disabled.
public bool EnableSnapping { get; set; }
Property Value
Gets or sets grid drawing viewport size. Default is 10.
public float GridSpacing { get; set; }
Property Value
Gets or sets the background grid style.
public Drawing GridStyle { get; set; }
Property Value
Gets whether at least one item is selected.
public bool HasSelections { get; set; }
Property Value
Gets whether the operation in progress is selection.
public bool IsSelecting { get; set; }
Property Value
Gets or sets maximum scale for RichItemsControl.ScaleTransform. Default is 2.
public double MaxScale { get; set; }
Property Value
Gets or sets minimum scale for RichItemsControl.ScaleTransform. Default is 0.1d.
public double MinScale { get; set; }
Property Value
Gets or sets mouse position relative to RichItemsControl.ItemsHost.
public Point MousePosition { get; set; }
Property Value
Gets or sets current key used for panning. Default is Space
public Key PanningKey { get; set; }
Property Value
Gets or sets whether real-time selection is enabled. Default is false
public bool RealTimeSelectionEnabled { get; set; }
Property Value
Gets or sets the current RichItemsControl.ScaleTransform value. Default is 1.
public double Scale { get; set; }
Property Value
Gets or sets the factor used to change RichItemsControl.ScaleTransform on zoom. Default is 1.1d.
public double ScaleFactor { get; set; }
Property Value
Gets or sets the scrolling factor applied when scrolling. Default is 10.
public double ScrollFactor { get; set; }
Property Value
Gets or sets the items in the RichItemsControl that are selected.
public IList SelectedItems { get; set; }
Property Value
Gets the selection area as Rect.
public Rect SelectionRectangle { get; set; }
Property Value
Gets or sets selection System.Windows.Shapes.Rectangle style.
public Style SelectionRectangleStyle { get; set; }
Property Value
Gets or sets current RichItemsControl.TranslateTransform.
public Point TranslateOffset { get; set; }
Property Value
Gets current viewport rectangle.
public Rect ViewportRect { get; set; }
Property Value
Gets or sets current key used to zoom. Default is LeftCtrl
public Key ZoomKey { get; set; }
Property Value
protected override DependencyObject GetContainerForItemOverride();
Returns
protected override bool IsItemItsOwnContainerOverride(object item);
Parameters
item
Object
Returns
public override void OnApplyTemplate();
protected override void OnItemsChanged(NotifyCollectionChangedEventArgs e);
Parameters
e
NotifyCollectionChangedEventArgs
protected override void OnMouseLeftButtonUp(MouseButtonEventArgs e);
Parameters
protected override void OnPreviewMouseLeftButtonDown(MouseButtonEventArgs e);
Parameters
protected override void OnPreviewMouseMove(MouseEventArgs e);
Parameters
Selects all elements inside RichItemsControl.SelectionRectangle
public void SelectBySelectionRectangle();
Occurs whenever RichCanvas.RichItemsControl.OnMouseLeftButtonUp(System.Windows.Input.MouseButtonEventArgs) is triggered and the drawing operation finished.
public event RoutedEventHandler DrawingEnded;
Event Type
Occurs whenever RichItemsControl.TranslateTransform changes.
public event RoutedEventHandler Scrolling;
Event Type
Occurs whenever RichItemsControl.ScaleTransform changes.
public event RoutedEventHandler Zooming;
Event Type