Back to Devexpress

ON Members

maui-devexpress-dot-maui-dot-core-dot-on-dot-underscore-members.md

latest6.6 KB
Original Source

ON Members

A helper class that allows you to identify device parameters: operating system type, orientation, form factor, and device type (physical device or simulator).

Properties

NameDescription
Android staticIndicates whether the app is launched on a device running Android.
DefaultScreenExtraLargeThreshold staticThe default minimum size for devices with screens of the Extra Large size class.
DefaultScreenLargeThreshold staticThe default minimum size for devices with screens of the Large size class.
DefaultScreenMediumThreshold staticThe default minimum size for devices with screens of the Medium size class.
DefaultScreenSmallThreshold staticThe default minimum size for devices with screens of the Small size class.
iOS staticIndicates whether the app is launched on a device running iOS.
Landscape staticIndicates whether the app is displayed in the Landscape orientation.
Phone staticIndicates whether the app is running on a phone.
Portrait staticIndicates whether the app is displayed in the Portrait orientation.
Simulator staticIndicates whether the app is running on a simulator/emulator.
Tablet staticIndicates whether the app is running on a tablet.

Methods

NameDescription
DeviceType<T>(T, T) staticSelects the value of a reference type to be applied depending on the device type.
DisplaySize<T>(T, T, T, T, T, Nullable<Size>, Nullable<Size>, Nullable<Size>, Nullable<Size>) staticSelects the value of a reference type to be applied depending on the device screen size.
DisplaySize<T>(Nullable<T>, Nullable<T>, Nullable<T>, Nullable<T>, Nullable<T>, Nullable<Size>, Nullable<Size>, Nullable<Size>, Nullable<Size>) staticSelects the value of a value type to be applied depending on the device screen size.
Equals(Object, Object) staticDetermines whether the specified object instances are considered equal. Inherited from System.Object.
Equals(Object)Determines whether the specified object is equal to the current object. Inherited from System.Object.
GetHashCode()Serves as the default hash function. Inherited from System.Object.
GetType()Gets the Type of the current instance. Inherited from System.Object.
Idiom<T>(T, T) staticSelects the value to be applied depending on the device type on which the app is running.
MemberwiseClone() protectedCreates a shallow copy of the current Object. Inherited from System.Object.
Orientation<T>(T, T) staticSelects the value to be applied depending on the screen orientation.
OrientationChanged<T>(T, Action<T>) staticAllows you to perform custom actions when the screen orientation changes.
Platform<T>(T, T) staticSelects the value to be applied depending on the platform on which the app is running.
ReferenceEquals(Object, Object) staticDetermines whether the specified Object instances are the same instance. Inherited from System.Object.
ScreenHeight<T>(T, T, T, T, T, Nullable<Double>, Nullable<Double>, Nullable<Double>, Nullable<Double>) staticSelects the value of a reference type to be applied depending on the device screen size.
ScreenHeight<T>(Nullable<T>, Nullable<T>, Nullable<T>, Nullable<T>, Nullable<T>, Nullable<Double>, Nullable<Double>, Nullable<Double>, Nullable<Double>) staticSelects the value of a value type to be applied depending on the screen height.
ScreenWidth<T>(T, T, T, T, T, Nullable<Double>, Nullable<Double>, Nullable<Double>, Nullable<Double>) staticSelects the value of a reference type to be applied depending on the screen width.
ScreenWidth<T>(Nullable<T>, Nullable<T>, Nullable<T>, Nullable<T>, Nullable<T>, Nullable<Double>, Nullable<Double>, Nullable<Double>, Nullable<Double>) staticSelects the value of a value type to be applied depending on the screen width.
ToString()Returns a string that represents the current object. Inherited from System.Object.

See Also

ON Class

DevExpress.Maui.Core Namespace