Class OnFormFactorExtension
- Namespace
- Avalonia.Markup.Xaml.MarkupExtensions
- Assembly
- Avalonia.Markup.Xaml.dll
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".
public sealed class OnFormFactorExtension : OnFormFactorExtensionBase<object, On>, IAddChild<On>
- Inheritance
-
OnFormFactorExtension
- Implements
- Inherited Members
Constructors
OnFormFactorExtension()
public OnFormFactorExtension()
OnFormFactorExtension(object)
public OnFormFactorExtension(object defaultValue)
Parameters
defaultValue
object
Methods
ShouldProvideOption(IServiceProvider, FormFactorType)
public static bool ShouldProvideOption(IServiceProvider serviceProvider, FormFactorType option)
Parameters
serviceProvider
IServiceProvideroption
FormFactorType