次の方法で共有


ColumnDefinition クラス

定義

Grid 内の列のプロパティを定義する IDefinition

public ref class ColumnDefinition sealed : Microsoft::Maui::Controls::BindableObject, Microsoft::Maui::Controls::IDefinition, Microsoft::Maui::IGridColumnDefinition
public sealed class ColumnDefinition : Microsoft.Maui.Controls.BindableObject, Microsoft.Maui.Controls.IDefinition, Microsoft.Maui.IGridColumnDefinition
type ColumnDefinition = class
    inherit BindableObject
    interface IDefinition
    interface IGridColumnDefinition
Public NotInheritable Class ColumnDefinition
Inherits BindableObject
Implements IDefinition, IGridColumnDefinition
継承
ColumnDefinition
実装

注釈

次の例では、3 つの有効な GridUnitType 値のそれぞれに 3 つの列幅を設定する方法を示します。

<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="*" />
<ColumnDefinition Width="100" />
</Grid.ColumnDefinitions>

コンストラクター

ColumnDefinition()

既定値を使用して新しい ColumnDefinition オブジェクトを作成します。

ColumnDefinition(GridLength)

Grid 内の列のプロパティを定義する IDefinition

フィールド

WidthProperty

Widthバインド可能なプロパティ。

プロパティ

BindingContext

この BindableObjectに属するバインドされたプロパティの対象となるプロパティを含むオブジェクトを取得または設定します。 これはバインド可能なプロパティです。

(継承元 BindableObject)
Dispatcher

このバインド可能なオブジェクトが作成されたときに使用可能だったディスパッチャーを取得します。それ以外の場合は、使用可能な最も近いディスパッチャー (おそらくウィンドウ/アプリ) を検索しようとします。

(継承元 BindableObject)
Width

列の幅を取得または設定します。

メソッド

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)
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)

プロパティにバインドを作成し、適用します。

適用対象