Note
Access to this page requires authorization. You can try signing in or .
Access to this page requires authorization. You can try .
RelativeSourceExtension Class
Definition
- Namespace:
- Microsoft.Maui.Controls.Xaml
- Assembly:
- Microsoft.Maui.Controls.Xaml.dll
- Source:
- RelativeSourceExtension.cs
- Source:
- RelativeSourceExtension.cs
- Source:
- RelativeSourceExtension.cs
- Source:
- RelativeSourceExtension.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 a RelativeBindingSource for relative bindings.
public ref class RelativeSourceExtension sealed : Microsoft::Maui::Controls::Xaml::IMarkupExtension<Microsoft::Maui::Controls::RelativeBindingSource ^>
[Microsoft.Maui.Controls.ContentProperty("Mode")]
[Microsoft.Maui.Controls.Xaml.AcceptEmptyServiceProvider]
public sealed class RelativeSourceExtension : Microsoft.Maui.Controls.Xaml.IMarkupExtension<Microsoft.Maui.Controls.RelativeBindingSource>
[<Microsoft.Maui.Controls.ContentProperty("Mode")>]
[<Microsoft.Maui.Controls.Xaml.AcceptEmptyServiceProvider>]
type RelativeSourceExtension = class
interface IMarkupExtension<RelativeBindingSource>
interface IMarkupExtension
Public NotInheritable Class RelativeSourceExtension
Implements IMarkupExtension(Of RelativeBindingSource)
- Inheritance
-
RelativeSourceExtension
- Attributes
- Implements
Constructors
| Name | Description |
|---|---|
| RelativeSourceExtension() | |
Properties
| Name | Description |
|---|---|
| AncestorLevel |
Gets or sets the level of ancestor to look for when Mode is FindAncestor or FindAncestorBindingContext. |
| AncestorType |
Gets or sets the type of ancestor to look for when Mode is FindAncestor or FindAncestorBindingContext. |
| Mode |
Gets or sets the mode of the relative binding source. |
Methods
| Name | Description |
|---|---|
| ProvideValue(IServiceProvider) | |
Explicit Interface Implementations
| Name | Description |
|---|---|
| IMarkupExtension<RelativeBindingSource>.ProvideValue(IServiceProvider) | |
Applies to
Feedback
Was this page helpful?
