OnFormFactorExtension Class
Provides form factor-specific value for T for the current target device. This extension defines "form-factor" as a "device type" rather than "screen type".
Definition
Namespace: Avalonia.Markup.Xaml.MarkupExtensions
Assembly: Avalonia.Markup.Xaml (in Avalonia.Markup.Xaml.dll)
- C#
- VB
- F#
public sealed class OnFormFactorExtension : OnFormFactorExtensionBase<Object, On>
Public NotInheritable Class OnFormFactorExtension
Inherits OnFormFactorExtensionBase(Of Object, On)
[<SealedAttribute>]
type OnFormFactorExtension =
class
inherit OnFormFactorExtensionBase<Object, On>
end
Inheritance | Object → OnFormFactorExtensionBase(Object, On) → OnFormFactorExtension |
Constructors
OnFormFactorExtension() | Initializes a new instance of the OnFormFactorExtension class |
OnFormFactorExtension(Object) | Initializes a new instance of the OnFormFactorExtension class |
Properties
Default | Gets or sets the value applied by default. If not set, default(TReturn) is assigned to the value. (Inherited from OnFormFactorExtensionBase(TReturn, TOn)) |
Desktop | Gets or sets the value applied on desktop systems. (Inherited from OnFormFactorExtensionBase(TReturn, TOn)) |
Mobile | Gets or sets the value applied on mobile systems. (Inherited from OnFormFactorExtensionBase(TReturn, TOn)) |
TV | Gets or sets the value applied on TV systems. (Inherited from OnFormFactorExtensionBase(TReturn, TOn)) |
Methods
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) |
ProvideValue() | (Inherited from OnFormFactorExtensionBase(TReturn, TOn)) |
ShouldProvideOption(IServiceProvider, FormFactorType) | |
ToString() | Returns a string that represents the current object. (Inherited from Object) |