Note
Access to this page requires authorization. You can try signing in or .
Access to this page requires authorization. You can try .
OnIdiomExtension Class
Definition
- Namespace:
- Microsoft.Maui.Controls.Xaml
- Assembly:
- Microsoft.Maui.Controls.Xaml.dll
- Source:
- OnIdiomExtension.cs
- Source:
- OnIdiomExtension.cs
- Source:
- OnIdiomExtension.cs
- Source:
- OnIdiomExtension.cs
Important
Some information relates to prerelease product that may be substantially modified before itβs released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Provides a XAML markup extension that returns different values depending on the device idiom.
public ref class OnIdiomExtension : Microsoft::Maui::Controls::Xaml::IMarkupExtension
[Microsoft.Maui.Controls.ContentProperty("Default")]
[Microsoft.Maui.Controls.Xaml.RequireService(new System.Type[] { typeof(Microsoft.Maui.Controls.Xaml.IProvideValueTarget), typeof(Microsoft.Maui.Controls.Xaml.IValueConverterProvider), typeof(Microsoft.Maui.Controls.Xaml.IXmlLineInfoProvider), typeof(Microsoft.Maui.Controls.Xaml.IConverterOptions) })]
public class OnIdiomExtension : Microsoft.Maui.Controls.Xaml.IMarkupExtension
[Microsoft.Maui.Controls.ContentProperty("Default")]
public class OnIdiomExtension : Microsoft.Maui.Controls.Xaml.IMarkupExtension
[<Microsoft.Maui.Controls.ContentProperty("Default")>]
[<Microsoft.Maui.Controls.Xaml.RequireService(new System.Type[] { typeof(Microsoft.Maui.Controls.Xaml.IProvideValueTarget), typeof(Microsoft.Maui.Controls.Xaml.IValueConverterProvider), typeof(Microsoft.Maui.Controls.Xaml.IXmlLineInfoProvider), typeof(Microsoft.Maui.Controls.Xaml.IConverterOptions) })>]
type OnIdiomExtension = class
interface IMarkupExtension
[<Microsoft.Maui.Controls.ContentProperty("Default")>]
type OnIdiomExtension = class
interface IMarkupExtension
Public Class OnIdiomExtension
Implements IMarkupExtension
- Inheritance
-
OnIdiomExtension
- Attributes
- Implements
Constructors
| Name | Description |
|---|---|
| OnIdiomExtension() | |
Properties
| Name | Description |
|---|---|
| Converter |
Gets or sets a converter to apply to the idiom-specific value. |
| ConverterParameter |
Gets or sets a parameter to pass to the converter. |
| Default |
Gets or sets the default value to use if no idiom-specific value is set. |
| Desktop |
Gets or sets the value to use on desktop devices. |
| Phone |
Gets or sets the value to use on phone devices. |
| Tablet |
Gets or sets the value to use on tablet devices. |
| TV |
Gets or sets the value to use on TV devices. |
| Watch |
Gets or sets the value to use on watch devices. |
Methods
| Name | Description |
|---|---|
| ProvideValue(IServiceProvider) | |
Applies to
Feedback
Was this page helpful?
