Skip to main content

OnFormFactorExtensionBase<TReturn, TOn> 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)

public abstract class OnFormFactorExtensionBase<TReturn, TOn> : IAddChild<TOn>
where TOn : On<TReturn>

InheritanceObject → OnFormFactorExtensionBase(TReturn, TOn)
DerivedAvalonia.Markup.Xaml.MarkupExtensions.OnFormFactorExtension
Avalonia.Markup.Xaml.MarkupExtensions.OnFormFactorExtension(TReturn)
ImplementsIAddChild(TOn)

Type Parameters

Constructors

OnFormFactorExtensionBase(TReturn, TOn)()Initializes a new instance of the OnFormFactorExtensionBase(TReturn, TOn) class

Properties

DefaultGets or sets the value applied by default. If not set, default(TReturn) is assigned to the value.
DesktopGets or sets the value applied on desktop systems.
MobileGets or sets the value applied on mobile systems.
TVGets or sets the value applied on TV systems.

Methods

Equals(Object)Determines whether the specified object is equal to the current object.
(Inherited from Object)
Finalize()Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(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()Creates a shallow copy of the current Object.
(Inherited from Object)
ProvideValue() 
ToString()Returns a string that represents the current object.
(Inherited from Object)

See Also

Reference

Avalonia.Markup.Xaml.MarkupExtensions Namespace