Back to Devexpress

ON Methods

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

latest5.1 KB
Original Source

ON Methods

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

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

ON Members

DevExpress.Maui.Core Namespace