IconPixelPreviewControl

FlexControlDrawablePanelContainerControlBindableWidgetWidget
A control for previewing raytraced vector icons.

Constructors

IconPixelPreviewControl

#
Create a new icon preview control.
public IconPixelPreviewControl()

Properties

AllowPan

Gets whether this control supports mouse panning.
public bool AllowPan { get; set; }
inherited fromFlexControl
AllowPan

AllowScrollGesture

Gets or sets whether this control captures two-finger trackpad scroll and mouse-wheel events via its ScrollGesture. Set to false for FlexControls hosted in a Scrollable so the parent receives the scroll natively (native direction, momentum, rubber-band).
protected bool AllowScrollGesture { get; set; }
inherited fromFlexControl

AllowZoom

Gets whether this control supports mouse zooming.
public bool AllowZoom { get; set; }
inherited fromFlexControl
AllowZoom

AutoWindowSelect

Gets or sets whether a window selection automatically starts if a primary mousedown goes unhandled.
public bool AutoWindowSelect { get; set; }
inherited fromFlexControl

Border

Gets or sets the border drawn around this control.
public ControlBorder Border { get; set; }
inherited fromFlexControl
Border

ContentBounds

Gets or sets the bounding box of the content. Use an empty rectangle to indicate boundless content.
public RectangleF ContentBounds { get; set; }
inherited fromFlexControl
ContentBounds

ContentToControl

Gets the transformation matrix from content coordinates to control coordinates.
public IMatrix ContentToControl { get; }
inherited fromFlexControl
ContentToControl

ControlToContent

Gets the transformation matrix from control coordinates to content coordinates.
public IMatrix ControlToContent { get; }
inherited fromFlexControl
ControlToContent

CurrentWindowSelection

Gets the current window selection. This field will only be non-null during a window selection process. If you wish to respond to a completes window selection, handle the WindowSelection event.
public WindowSelection CurrentWindowSelection { get; }
inherited fromFlexControl

DrawContentBoundary

Gets or sets whether the content boundary ought to be drawn when visible.
public bool DrawContentBoundary { get; set; }
inherited fromFlexControl

DrawScrollbars

Gets whether this control should display scrollbars when needed. Scrollbars will only be displayed when the content exceeds the inner bounds. If AllowPan is set to False, then scrollbars will never be shown.
public bool DrawScrollbars { get; set; }
inherited fromFlexControl
DrawScrollbars

FloatingButtonRail

Gets the rail along which floating buttons are positioned. By default, the rail is equal to the inner bounds offset by the button size. Override this property to define a custom rail, for example if some regions near the control boundary need to remain free of buttons.
protected virtual RectangleF FloatingButtonRail { get; }
inherited fromFlexControl

FloatingButtons

Gets the floating button collection for this control.
public FloatingButtonCollection FloatingButtons { get; }
inherited fromFlexControl
FloatingButtons

FocusObject

Gets the object which currently has focus, if any. Focused objects are most likely either IInteractions or IResponsives.
public IResponsive FocusObject { get; }
inherited fromFlexControl
FocusObject

Icon

#
Gets or sets the icon size.
public IIcon Icon { get; set; }

IconSize

#
public Size IconSize { get; }

InnerBounds

Gets the area in control coordinates for the content of the control. This area does not include the control border.
public RectangleF InnerBounds { get; }
inherited fromFlexControl
InnerBounds

InnerScreenBounds

Gets the inner bounds of this control in screen coordinates.
public RectangleF InnerScreenBounds { get; }
inherited fromFlexControl
InnerScreenBounds

IntegerOrigin

Gets or sets whether this control only allows integer accuracy coordinates for the origin point.
public bool IntegerOrigin { get; set; }
inherited fromFlexControl
IntegerOrigin

IsDragSource

Gets or sets whether this control is potentially a source for drag+drop operations.
public bool IsDragSource { get; set; }
inherited fromFlexControl
IsDragSource

IsDropTarget

Gets or sets whether this control is potentially a target for drag+drop operations.
public bool IsDropTarget { get; set; }
inherited fromFlexControl
IsDropTarget

MaximumZoom

Gets or sets the maximum allowed zoom.
public float MaximumZoom { get; set; }
inherited fromFlexControl
MaximumZoom

MinimumZoom

Gets or sets the minimum allowed zoom.
public float MinimumZoom { get; set; }
inherited fromFlexControl
MinimumZoom

MouseDwellDelay

Gets or sets the duration required before a FlexControl.MouseDwell event is raised. Negative or zero length durations mean the FlexControl.MouseDwell event is never raised.
public TimeSpan MouseDwellDelay { get; set; }
inherited fromFlexControl

OuterBounds

Gets the bounds of this control in container coordinates.
public RectangleF OuterBounds { get; }
inherited fromFlexControl
OuterBounds

ParentControl

Gets or sets the parent control.
public IFlexControl ParentControl { get; set; }
inherited fromFlexControl
ParentControl

Projection

Gets or sets the projection for this control.
public Projection Projection { get; set; }
inherited fromFlexControl
Projection

ResizeBehaviour

Gets or sets the projection behaviour of the content during control resizing events.
public ContentResizeBehaviour ResizeBehaviour { get; set; }
inherited fromFlexControl
ResizeBehaviour

ResponsivesBackwards

Enumerate over all registered responsive objects in reverse order.
public IEnumerable<IResponsive> ResponsivesBackwards { get; }
inherited fromFlexControl

ResponsivesForwards

Enumerate over all registered responsive objects.
public IEnumerable<IResponsive> ResponsivesForwards { get; }
inherited fromFlexControl

ScreenBounds

Gets the bounds of this control in screen coordinates.
public RectangleF ScreenBounds { get; }
inherited fromFlexControl
ScreenBounds

VisibleFrame

Gets the rectangle in content coordinates which represents the visible portion. This basically means the InnerBounds mapped into content coordinates.
public RectangleF VisibleFrame { get; }
inherited fromFlexControl
VisibleFrame

ZoomFeedbackLocation

Gets or sets the location for zoom change feedback.
public FeedbackLocation ZoomFeedbackLocation { get; set; }
inherited fromFlexControl

Methods

AddSparkle

Add a sparkle to this control.
public void AddSparkle(
sparkle
Sparkle to add.
)
inherited fromFlexControl

Animate<T>

Evaluate an animator. This method automatically schedules redraw events if those are needed for smooth animations.
public T Animate<T>(
animated
Animator to evaluate.
)
inherited fromFlexControl
Animated value.
Animate

AnimatedZoomFactor

Gets the normalised factor (0.0, 1.0) which indicates to what extend the display is in the given state.
public float AnimatedZoomFactor(
threshold
Threshold.
)
inherited fromFlexControl
Normalised value.
AnimatedZoomFactor

BeginWindowSelect

Start a window selection process.
public void BeginWindowSelect()
inherited fromFlexControl
BeginWindowSelect

ComputeWrappingBounds

Determine the implied wrapping bounds given the control and the screen containing the location. The wrapping bounds are either the bounds of the screen containing the location, or the intersection of the screen containing the location and the bounds of the control if this intersection is not empty.
public RectangleF ComputeWrappingBounds(
PointF
location
Hint location in control coordinates.
)
inherited fromFlexControl
Wrapping bounds in control coordinates.

CreateFloatingButtons

Override this method to add a set of floating buttons to your control. It will automatically be called at the end of the constructor. You can always choose to add buttons later, but why not Zoidberg?
protected virtual void CreateFloatingButtons()
inherited fromFlexControl

DispatchRotation

Route a rotation gesture through the responsives stack. The default implementation tries the focused object, then the coincident responsives in reverse order. Subclasses (e.g. Canvas) may override to extend the dispatch — typically by adding a document-pick step when the base path returns Ignored.
protected virtual Response DispatchRotation()
inherited fromFlexControl

DrawWindowSelectionEdge

If a window selection is currently in progress, draw the fill of that window selection fence. By calling this method you override the default window selection drawing pipeline, which allows you to have finer control over the layering of the window rectangle background and foreground.
public void DrawWindowSelectionEdge()
inherited fromFlexControl

DrawWindowSelectionEdge

If a window selection is currently in progress, draw the fill of that window selection fence. By calling this method you override the default window selection drawing pipeline, which allows you to have finer control over the layering of the window rectangle background and foreground.
public void DrawWindowSelectionEdge(
Pen
edge
Edge edge to use.
)
inherited fromFlexControl

DrawWindowSelectionFill

If a window selection is currently in progress, draw the fill of that window selection fence. By calling this method you override the default window selection drawing pipeline, which allows you to have finer control over the layering of the window rectangle background and foreground.
public void DrawWindowSelectionFill()
inherited fromFlexControl

DrawWindowSelectionFill

If a window selection is currently in progress, draw the fill of that window selection fence. By calling this method you override the default window selection drawing pipeline, which allows you to have finer control over the layering of the window rectangle background and foreground.
public void DrawWindowSelectionFill(
Brush
fill
Fill brush to use.
)
inherited fromFlexControl

EndWindowSelect

If, for any reason, you wish to terminate a window selection process prematurely, call this method.
public void EndWindowSelect()
inherited fromFlexControl
EndWindowSelect

FloatingButtonTooltipOverride

Override this method to provide a custom tooltip for floating buttons.
protected virtual bool FloatingButtonTooltipOverride(
button
Button for tooltip.
)
inherited fromFlexControl
True if the standard tooltip ought to be suppressed.

LooksLikeSingleClick

Test whether the given mouse event is compatible with a single-click-event given the most recent MouseDown event cache.
protected bool LooksLikeSingleClick(
MouseEventArgs
e
)
inherited fromFlexControl

Map

Map a point from one coordinate system to another.
public PointF Map(
PointF
point,
Point to map.
CoordinateSystem
from,
Coordinate system in which the point is currently defined.
CoordinateSystem
to
Target coordinate system.
)
inherited fromFlexControl
Mapped point.
Map

Map

Map a rectangle from one coordinate system to another.
public RectangleF Map(
RectangleF
rectangle,
Rectangle to map.
CoordinateSystem
from,
Coordinate system in which the rectangle is currently defined.
CoordinateSystem
to
Target coordinate system.
)
inherited fromFlexControl
Mapped rectangle.
Map

OnKeyDown

Key down handler.
protected override void OnKeyDown(
KeyEventArgs
e
)
inherited fromFlexControl
Control.OnKeyDown

OnKeyUp

Key up handler.
protected override void OnKeyUp(
KeyEventArgs
e
)
inherited fromFlexControl
Control.OnKeyUp

OnLoad

Raises the Load event, and recurses to this container's children
protected override void OnLoad(
e
Event arguments
)
inherited fromFlexControl
Container.OnLoad

OnLoadComplete

Raises the LoadComplete event, and recurses to this container's children
protected override void OnLoadComplete(
e
Event arguments
)
inherited fromFlexControl
Container.OnLoadComplete

OnMouseDoubleClick

Default mousedoubleclick handler for IControl. The default handling includes event delegation to the entire IInteraction stack.
protected sealed override void OnMouseDoubleClick(
MouseEventArgs
e
)
inherited fromFlexControl
Control.OnMouseDoubleClick

OnMouseDown

Default mousedown handler for IControl. The default handling includes event delegation to the entire IInteraction stack, as well as the creation of Pan and Zoom interactions if needed.
protected sealed override void OnMouseDown(
MouseEventArgs
e
)
inherited fromFlexControl
Control.OnMouseDown

OnMouseLeave

Default mouseleave handler for IControl. The default handling deals with the hover tracking mechanism.
protected sealed override void OnMouseLeave(
MouseEventArgs
e
)
inherited fromFlexControl
Control.OnMouseLeave

OnMouseMove

Default mousemove handler for IControl. The default handling includes event delegation to the entire IInteraction stack, as well as the updating of any active window selection and hover delay tracking.
protected sealed override void OnMouseMove(
MouseEventArgs
e
)
inherited fromFlexControl
Control.OnMouseMove

OnMouseUp

Default mouseup handler for IControl. The default handling includes event delegation to the entire IInteraction stack, as well as the terminating of any window selections and the popping of context menus. Furthermore, this method decides whether to provide a Click event for interaction objects.
protected sealed override void OnMouseUp(
MouseEventArgs
e
)
inherited fromFlexControl
Control.OnMouseUp

OnMouseWheel

Default mousewheel handler for IControl. The default handling includes event delegation to the entire IInteraction stack, as well as scroll zooming.
protected sealed override void OnMouseWheel(
MouseEventArgs
e
)
inherited fromFlexControl
Control.OnMouseWheel

OnPaint

Runs the drawing pipeline. Do not override this method unless you know *exactly* what you are doing. Handle the Draw(object, ControlDrawEventArgs) event instead.
protected override void OnPaint(
PaintEventArgs
e
)
inherited fromFlexControl
Drawable.OnPaint

OnPinchGesture

Handle a pinch gesture tick. The default implementation applies a zoom to the FlexControl FlexControl.Projection (gated on FlexControl.AllowZoom). Subclasses with their own projection — for example the function editor's FrameF — override this to drive that projection instead.
protected virtual void OnPinchGesture(
PointF
cursor,
Cursor position in control coordinates.
magnification
Per-tick magnification; positive zooms in.
)
inherited fromFlexControl

OnPopulateContextMenu

Override this method to populate the context menu, or handle the PopulateContextMenu event. This method will automatically show the menu if it contains any items.
protected virtual bool OnPopulateContextMenu(
MouseEventArgs
e
Mouse event arguments associated with this menu popup.
)
inherited fromFlexControl
True if menu was shown.

OnScrollGesture

Handle a scroll gesture tick (two-finger trackpad drag or mouse wheel). The default implementation pans the FlexControl FlexControl.Projection (gated on FlexControl.AllowPan). Subclasses with their own projection override this to drive that projection instead.
protected virtual void OnScrollGesture(
SizeF
motion
Pan motion in control coordinates.
)
inherited fromFlexControl

OnSizeChanged

Raises the SizeChanged event.
protected override void OnSizeChanged(
e
Event arguments
)
inherited fromFlexControl
Control.OnSizeChanged

OnTextInput

Text input handler.
protected override void OnTextInput(
TextInputEventArgs
e
)
inherited fromFlexControl
Control.OnTextInput

PopFocus

Pop a responsive object off the focus stack. It doesn't matter if it's at the head of the stack, but if it is, the new head will receive focus.
public void PopFocus(
responsive
)
inherited fromFlexControl

PushFocus

Push a new responsive object into the top of the focus stack. This does not register the object with this control.
public void PushFocus(
responsive
)
inherited fromFlexControl

RegisterIResponsive

Add a responsive object to this control's awareness. Responsive objects which have been properly registered will automatically have their response methods invoked in case of mouse/keyboard events on the control. The object will not be drawn though, that is the responsibility of the owner.
public void RegisterIResponsive(
responsive
Responsive to add.
)
inherited fromFlexControl

ScheduleRedraw

Schedule a redraw in the near future. Redraw will happen as quickly as possible, though the message queue will be emptied first.
public void ScheduleRedraw()
inherited fromFlexControl
ScheduleRedraw

ScheduleRedraw

Schedule a redraw at a roughly defined delay.
public void ScheduleRedraw(
delay
Time until redraw after the current drawing operation completes.
)
inherited fromFlexControl
ScheduleRedraw

UnregisterIResponsive

Remove a responsive object from this control's awareness.
public void UnregisterIResponsive(
responsive
)
inherited fromFlexControl

UpdateMapping

Update the mapping matrices. You *must* call this method whenever you change something that might affect the positioning of the content. For example origin, zoom, bounds...
protected void UpdateMapping()
inherited fromFlexControl

Events

Draw

This event is raised whenever the control paints itself.
inherited fromFlexControl
Draw

MouseDwell

Raised when the mouse dwells over some pixel without moving for a while.
public event EventHandler<MouseDwellEventArgs> MouseDwell
inherited fromFlexControl

PopulateContextMenu

Raised whenever the context menu ought to be populated.
public event EventHandler<PopulateContextMenuEventArgs> PopulateContextMenu
inherited fromFlexControl

ProjectionChanged

Raised whenever the projection of a control changes.
public event EventHandler<ProjectionChangedEventArgs> ProjectionChanged
inherited fromFlexControl
ProjectionChanged

WindowSelection

Raised whenever a window selection completes.
public event EventHandler<WindowSelectionEventArgs> WindowSelection
inherited fromFlexControl
WindowSelection