Skip to main content
ON

OnDisplaySizeExtension Members

Implements a XAML extension that allows you to specify control settings (for example, the font size) depending on the physical screen size, regardless of the screen orientation.

Constructors

Name Description
OnDisplaySizeExtension() Initializes a new instance of the OnDisplaySizeExtension class.

Properties

Name Description
Converter Gets or sets the converter used to convert the value returned by the ProvideValue method. This is a bindable property.
ConverterParameter Gets or sets the parameter to pass to the OnDisplaySizeExtension.Converter.
ExtraLarge Gets or sets the size value for devices with screens of the Extra Large size class.
ExtraLargeThreshold Gets or sets the minimum size for devices with screens of the Extra Large size class.
ExtraSmall Gets or sets the size value for devices with screens of the Extra Small size class.
Large Gets or sets the size value for devices with screens of the Large size class.
LargeThreshold Gets or sets the minimum size for devices with screens of the Large size class.
Medium Gets or sets the size value for devices with screens of the Medium size class.
MediumThreshold Gets or sets the minimum size for devices with screens of the Medium size class.
Small Gets or sets the size value for devices with screens of the Small size class.
SmallThreshold Gets or sets the minimum size for devices with screens of the Small size class.

Methods

Name Description
Equals(Object, Object) static Determines whether the specified object instances are considered equal. Inherited from Object.
Equals(Object) Determines whether the specified object is equal to the current object. Inherited from Object.
GetHashCode() Serves as the default hash function. Inherited from Object.
GetType() Gets the Type of the current instance. Inherited from Object.
MemberwiseClone() protected Creates a shallow copy of the current Object. Inherited from Object.
ProvideValue(IServiceProvider) Returns an object that should be set as the value on the target object’s property for this markup extension. This is the DisplaySize return value for OnDisplaySizeExtension.
ReferenceEquals(Object, Object) static Determines whether the specified Object instances are the same instance. Inherited from Object.
ToString() Returns a string that represents the current object. Inherited from Object.
See Also