SharpVectors.Runtime.Wpf
Stores DPI information from which a
or is rendered.
Initializes a new instance of the DpiScale class.
Initializes a new instance of the DpiScale class.
Initializes a new instance of the DpiScale class.
DPI scale on X-axis
DPI scale on Y-axis
Gets the DPI scale on the X axis.When DPI is 96, is 1.
On Windows Desktop, this value is the same as
Gets the DPI scale on the Y axis. When DPI is 96, is 1.
On Windows Desktop, this value is the same as
Get or sets the PixelsPerDip at which the text should be rendered.
Gets the PPI along X axis.
On Windows Desktop, this value is the same as
Gets the PPI along Y axis.
On Windows Desktop, this value is the same as
Equality test
The object being compared against
True if the objects are equal, False otherwise
Returns the hash code of the current object
The hash code of the object
Equality test against a object.
The object being compared against
True if the objects are equal, False otherwise
Two DPI scale values are equal if they are equal after rounding up
to hundredths place.
Common PPI values in use are:
PPIDPI(%)DPI(Ratio)
- 96100%1.00
- 120125%1.25
- 144150%1.50
- 192200%2.00
Checks to inequality between two instances.
The first object being compared
The second object being compared
True if the objects are not equal, otherwise False
Checks for equality between two instances.
The first object being compared
The second object being compared
True if the two objects are equal, otherwise False
This is the default PPI value used in WPF and Windows.
Gets the window (monitor) scale versus System DPI.
The window.
When developing a DPI-aware application, this is useful for applying a ScaleTransform
to your window so all fonts and graphics are scaled and rendered beautifully based on the
physical capabilities of the display and the accessibility settings of the user.
Gets the window (monitor) scale versus System DPI.
The window.
When developing a DPI-aware application, this is useful for applying a ScaleTransform
to your window so all fonts and graphics are scaled and rendered beautifully based on the
physical capabilities of the display and the accessibility settings of the user.
Gets the window (monitor) scale versus System DPI.
The window.
When developing a DPI-aware application, this is useful for applying a ScaleTransform
to your window so all fonts and graphics are scaled and rendered beautifully based on the
physical capabilities of the display and the accessibility settings of the user.
Gets the virtual pixel scale for a window. This is essentially
the Effective DPI of the monitor versus a standard 96 DPI.
The window.
Gets the virtual pixel scale for a window. This is essentially
the Effective DPI of the monitor versus a standard 96 DPI.
The HWND.
Gets the virtual pixel scale for a monitor. This is essentially
the Effective DPI of the monitor versus a standard 96 DPI.
The h monitor.
Get the Effective DPI of a monitor after a user's accessibility
preferences have been applied.
The monitor.
The dpi x.
The dpi y.
Get the System Effective DPI.
The System Effective DPI is derived by the operating system
by looking across all monitors and determining an "Effective DPI" that works
well across all the screens for applications that do not support
per-monitor DPI.
The dpi x.
The dpi y.
Get the Effective DPI of a windows (monitor) after a user's accessibility
preferences have been applied.
The window.
The dpi x.
The dpi y.
Get the Effective DPI of a windows (monitor) after a user's accessibility
preferences have been applied.
The window.
The dpi x.
The dpi y.
Gets scaling factor for a monitor
This is defined as current pixel size relative to effective DPI
Monitor device name or null for the primary monitor
Call BeginInit every time the WICSourceHandle is going to be change.
again this methods is not exposed and reflection is needed.
Call EndInit after the WICSourceHandle was changed and after using BeginInit.
again this methods is not exposed and reflection is needed.
Set the WicSourceHandle property with the source associated with this class.
again this methods is not exposed and reflection is needed.
In the designer Data is not set. To prevent exceptions when displaying in the Designer, add a dummy bitmap.
Construct a point of coordinates (x,y).
Win32
Win32
Win32
Win32
Return a user friendly representation of this struct
Determine if 2 RECT are equal (deep compare)
Return the HashCode for this struct (not garanteed to be unique)
Determine if 2 RECT are equal (deep compare)
Determine if 2 RECT are different(deep compare)
Retrieves the parent window. This does not include the owner, as it does with the GetParent function.
Retrieves the root window by walking the chain of parent windows.
Retrieves the owned root window by walking the chain of parent and owner windows returned by GetParent.
Gets/sets the window styles.
Gets/sets the extended window styles.
Handles 32/64 bit differences
Passed to to specify what information about the token to return.
Device driver version
Device classification
Horizontal size in millimeters
Vertical size in millimeters
Horizontal width in pixels
Vertical height in pixels
Number of bits per pixel
Number of planes
Number of brushes the device has
Number of pens the device has
Number of markers the device has
Number of fonts the device has
Number of colors the device supports
Size required for device descriptor
Curve capabilities
Line capabilities
Polygonal capabilities
Text capabilities
Clipping capabilities
Bitblt capabilities
Length of the X leg
Length of the Y leg
Length of the hypotenuse
Shading and Blending caps
Logical pixels inch in X
Logical pixels inch in Y
Number of entries in physical palette
Number of reserved entries in palette
Actual color resolution
Physical Width in device units
Physical Height in device units
Physical Printable Area x margin
Physical Printable Area y margin
Scaling factor x
Scaling factor y
Current vertical refresh rate of the display device (for displays only) in Hz
Vertical height of entire desktop in pixels
Horizontal width of entire desktop in pixels
Preferred blt alignment
A strongly-typed resource class, for looking up localized strings, etc.
Returns the cached ResourceManager instance used by this class.
Overrides the current thread's CurrentUICulture property for all
resource lookups using this strongly typed resource class.
This creates a host for visuals derived from the class.
This class provides layout, event handling, and container support for the
child visual objects.
This provides a wrapper for the Scoreboard, which is used for opacity animation.
This is the main drawing canvas for the rendered SVG diagrams.
Gets or sets the application title, which is used to display the alert and error messages not handled
by the user.
A string containg the application title. This cannot be or empty.
The default is SharpVectors.
Gets a value specifying whether the viewer control is in design-mode.
This is if the viewer control is in design-mode, otherwise; it is .
Gets or sets a value specifying the interactive mode, which controls the level of information attached
to the generated drawing.
An enumeration of the type specifying the interactive mode.
The default is ; no interactivity and may change in the future.
This class, if placed at the root of a XAML file which is loaded by XamlReader.Load()
will end up having all named elements contained in its nameTable automatically.
If you want to get that list, it is now in your power.
This class is based on the discussion, which can be found here
A value specifying the type of interactivity to be supported by the conversion process
and controls.
In the conversion process, more information are added to make the interactivity
defined possible, and might be unnecessary overhead where no interactivity is needed.
In the rendering process at the control level, keyboard and mouse operations are monitored
to support interactivities.
A value specifying no interactivity.
A value specifying the default or standard interactivity per the SVG specifications.
A value specifying extra or custom interactivity features.
A helper class to simplify animation.
Starts an animation to a particular value on the specified dependency property.
Starts an animation to a particular value on the specified dependency property.
You can pass in an event handler to call when the animation has completed.
Starts an animation to a particular value on the specified dependency property.
Starts an animation to a particular value on the specified dependency property.
You can pass in an event handler to call when the animation has completed.
Cancel any animations that are running on the specified dependency property.
A class that wraps up zooming and panning of it's content.
This is an extension to the ZoomPanControl class that implements
the IScrollInfo interface properties and functions.
IScrollInfo is implemented to allow ZoomPanControl to be wrapped (in XAML)
in a ScrollViewer. IScrollInfo allows the ScrollViewer and ZoomPanControl to
communicate important information such as the horizontal and vertical scrollbar offsets.
There is a good series of articles showing how to implement IScrollInfo starting here:
http://blogs.msdn.com/bencon/archive/2006/01/05/509991.aspx
Reference to the underlying content, which is named PART_Content in the template.
The transform that is applied to the content to scale it by 'ContentScale'.
The transform that is applied to the content to offset it by 'ContentOffsetX' and 'ContentOffsetY'.
Enable the update of the content offset as the content scale changes.
This enabled for zooming about a point (Google-maps style zooming) and zooming to a rect.
Used to disable synchronization between IScrollInfo interface and ContentOffsetX/ContentOffsetY.
Normally when content offsets changes the content focus is automatically updated.
This synchronization is disabled when 'disableContentFocusSync' is set to 'true'.
When we are zooming in or out we 'disableContentFocusSync' is set to 'true' because
we are zooming in or out relative to the content focus we don't want to update the focus.
The width of the viewport in content coordinates, clamped to the width of the content.
The height of the viewport in content coordinates, clamped to the height of the content.
Set to 'true' when the vertical scrollbar is enabled.
Set to 'true' when the vertical scrollbar is enabled.
Records the unscaled extent of the content.
This is calculated during the measure and arrange.
Records the size of the viewport (in viewport coordinates) onto the content.
This is calculated during the measure and arrange.
Reference to the ScrollViewer that is wrapped (in XAML) around the ZoomPanControl.
Or set to null if there is no ScrollViewer.
Static constructor to define metadata for the control (and link it to the style in Generic.xaml).
Event raised when the ContentOffsetX property has changed.
Event raised when the ContentOffsetY property has changed.
Event raised when the ContentScale property has changed.
Get/set the X offset (in content coordinates) of the view on the content.
Get/set the Y offset (in content coordinates) of the view on the content.
Get/set the current scale (or zoom factor) of the content.
Get/set the minimum value for 'ContentScale'.
Get/set the maximum value for 'ContentScale'.
The X coordinate of the content focus, this is the point that we are focusing on when zooming.
The Y coordinate of the content focus, this is the point that we are focusing on when zooming.
The X coordinate of the viewport focus, this is the point in the viewport (in viewport coordinates)
that the content focus point is locked to while zooming in.
The Y coordinate of the viewport focus, this is the point in the viewport (in viewport coordinates)
that the content focus point is locked to while zooming in.
The duration of the animations (in seconds) started by calling AnimatedZoomTo and the other animation methods.
Get the viewport width, in content coordinates.
Get the viewport height, in content coordinates.
Set to 'true' to enable the mouse wheel to scroll the zoom and pan control.
This is set to 'false' by default.
Do an animated zoom to view a specific scale and rectangle (in content coordinates).
Do an animated zoom to the specified rectangle (in content coordinates).
Instantly zoom to the specified rectangle (in content coordinates).
Instantly center the view on the specified point (in content coordinates).
Instantly center the view on the specified point (in content coordinates).
Use animation to center the view on the specified point (in content coordinates).
Zoom in/out centered on the specified point (in content coordinates).
The focus point is kept locked to it's on screen position (ala google maps).
Zoom in/out centered on the specified point (in content coordinates).
The focus point is kept locked to it's on screen position (ala google maps).
Zoom in/out centered on the viewport center.
Zoom in/out centered on the viewport center.
Do animation that scales the content so that it fits completely in the control.
Instantly scale the content so that it fits completely in the control.
Called when a template has been applied to the control.
Measure the control and it's children.
Arrange the control and it's children.
Zoom to the specified scale and move the specified focus point to the center of the viewport.
Zoom to the specified scale and move the specified focus point to the center of the viewport.
Event raised when the 'ContentScale' property has changed value.
Method called to clamp the 'ContentScale' value to its valid range.
Event raised 'MinContentScale' or 'MaxContentScale' has changed.
Event raised when the 'ContentOffsetX' property has changed value.
Method called to clamp the 'ContentOffsetX' value to its valid range.
Event raised when the 'ContentOffsetY' property has changed value.
Method called to clamp the 'ContentOffsetY' value to its valid range.
Reset the viewport zoom focus to the center of the viewport.
Update the viewport size from the specified size.
Update the size of the viewport in content coordinates after the viewport size or 'ContentScale' has changed.
Update the X coordinate of the translation transformation.
Update the Y coordinate of the translation transformation.
Update the X coordinate of the zoom focus point in content coordinates.
Update the Y coordinate of the zoom focus point in content coordinates.
Set to 'true' when the vertical scrollbar is enabled.
Set to 'true' when the vertical scrollbar is enabled.
The width of the content (with 'ContentScale' applied).
The height of the content (with 'ContentScale' applied).
Get the width of the viewport onto the content.
Get the height of the viewport onto the content.
Reference to the ScrollViewer that is wrapped (in XAML) around the ZoomPanControl.
Or set to null if there is no ScrollViewer.
The offset of the horizontal scrollbar.
The offset of the vertical scrollbar.
Called when the offset of the horizontal scrollbar has been set.
Called when the offset of the vertical scrollbar has been set.
Shift the content offset one line up.
Shift the content offset one line down.
Shift the content offset one line left.
Shift the content offset one line right.
Shift the content offset one page up.
Shift the content offset one page down.
Shift the content offset one page left.
Shift the content offset one page right.
Don't handle mouse wheel input from the ScrollViewer, the mouse wheel is
used for zooming in and out, not for manipulating the scrollbars.
Don't handle mouse wheel input from the ScrollViewer, the mouse wheel is
used for zooming in and out, not for manipulating the scrollbars.
Don't handle mouse wheel input from the ScrollViewer, the mouse wheel is
used for zooming in and out, not for manipulating the scrollbars.
Don't handle mouse wheel input from the ScrollViewer, the mouse wheel is
used for zooming in and out, not for manipulating the scrollbars.
Bring the specified rectangle to view.