Share via


RowDefinition 類別

定義

定義 Grid 中資料列屬性的 IDefinition

public ref class RowDefinition sealed : Microsoft::Maui::Controls::BindableObject, Microsoft::Maui::Controls::IDefinition, Microsoft::Maui::IGridRowDefinition
public sealed class RowDefinition : Microsoft.Maui.Controls.BindableObject, Microsoft.Maui.Controls.IDefinition, Microsoft.Maui.IGridRowDefinition
type RowDefinition = class
    inherit BindableObject
    interface IDefinition
    interface IGridRowDefinition
Public NotInheritable Class RowDefinition
Inherits BindableObject
Implements IDefinition, IGridRowDefinition
繼承
RowDefinition
實作

備註

應用程式開發人員可以在 XAML 中指定 GridUnitType 屬性的值 Height 。 這通常是在集合屬性的 RowDefinitions 標記內完成。 下列範例示範將三個資料列高度設定為三個有效 GridUnitType 值的每一個:

<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="*" />
<RowDefinition Height="100" />
</Grid.RowDefinitions>

建構函式

RowDefinition()

使用預設值建立新的 RowDefinition 物件。

RowDefinition(GridLength)

定義 Grid 中資料列屬性的 IDefinition

欄位

HeightProperty

HeightBindable 屬性。

屬性

BindingContext

取得或設定 對象,這個物件包含屬於這個 BindableObject之系結屬性的目標屬性。 這是可繫結屬性。

(繼承來源 BindableObject)
Dispatcher

取得建立這個可系結物件時可用的發送器,否則會嘗試尋找最接近的可用發送器, (可能是視窗/應用程式的) 。

(繼承來源 BindableObject)
Height

取得或設定資料列的高度。

方法

ApplyBindings()

將所有目前的系結套用至 BindingContext

(繼承來源 BindableObject)
ClearValue(BindableProperty)

清除先前為可系結屬性設定的任何值。

(繼承來源 BindableObject)
ClearValue(BindablePropertyKey)

清除先前針對可系結屬性設定的任何值,其索引鍵所識別。

(繼承來源 BindableObject)
CoerceValue(BindableProperty)

強制指定可系結屬性的值。 這是藉由叫用 BindableProperty.CoerceValueDelegate 指定的可系結屬性來完成。

(繼承來源 BindableObject)
CoerceValue(BindablePropertyKey)

強制指定可系結屬性的值。 這是藉由叫用 BindableProperty.CoerceValueDelegate 指定的可系結屬性來完成。

(繼承來源 BindableObject)
GetValue(BindableProperty)

傳回包含在指定可系結屬性中的值。

(繼承來源 BindableObject)
IsSet(BindableProperty)

判斷可系結屬性是否存在,且已設定值。

(繼承來源 BindableObject)
OnBindingContextChanged()

引發 BindingContextChanged 事件。

(繼承來源 BindableObject)
OnPropertyChanged(String)

引發 PropertyChanged 事件。

(繼承來源 BindableObject)
OnPropertyChanging(String)

引發 PropertyChanging 事件。

(繼承來源 BindableObject)
RemoveBinding(BindableProperty)

從可系結屬性中移除先前設定的系結。

(繼承來源 BindableObject)
SetBinding(BindableProperty, BindingBase)

將系結指派給可系結屬性。

(繼承來源 BindableObject)
SetValue(BindableProperty, Object)

設定指定可系結屬性的值。

(繼承來源 BindableObject)
SetValue(BindablePropertyKey, Object)

設定指定可系結屬性的值。

(繼承來源 BindableObject)
SetValueCore(BindableProperty, Object, SetValueFlags)

供 Microsoft.Maui.Controls 平台內部使用。

(繼承來源 BindableObject)
UnapplyBindings()

從目前內容中移除所有目前的系結。

(繼承來源 BindableObject)

事件

BindingContextChanged

發生於 BindingContext 屬性的值變更時。

(繼承來源 BindableObject)
PropertyChanged

當屬性值變更時發生。

(繼承來源 BindableObject)
PropertyChanging

當屬性值變更中時發生。

(繼承來源 BindableObject)
SizeChanged

定義 Grid 中資料列屬性的 IDefinition

明確介面實作

IDynamicResourceHandler.SetDynamicResource(BindableProperty, String)

定義 Grid 中資料列屬性的 IDefinition

(繼承來源 BindableObject)

擴充方法

GetPropertyIfSet<T>(BindableObject, BindableProperty, T)

定義 Grid 中資料列屬性的 IDefinition

SetAppTheme<T>(BindableObject, BindableProperty, T, T)

定義 Grid 中資料列屬性的 IDefinition

SetAppThemeColor(BindableObject, BindableProperty, Color, Color)

定義 Grid 中資料列屬性的 IDefinition

SetBinding(BindableObject, BindableProperty, String, BindingMode, IValueConverter, String)

建立並將繫結套用至屬性。

適用於