语言

RowDefinition 类

定义

一个 IDefinition ,用于定义行的属性 Grid。

public sealed class RowDefinition : Xamarin.Forms.BindableObject, Xamarin.Forms.IDefinition
type RowDefinition = class
    inherit BindableObject
    interface IDefinition
继承
System.Object
RowDefinition
实现

注解

应用开发人员可以在 XAML 中指定GridUnitTypeHeight属性的值。 这通常在集合属性的 RowDefinitions 标记内完成。 以下示例演示如何将三行高度设置为三个有效 GridUnitType 值中的每一个:

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

构造函数

名称 说明
RowDefinition()

新建具有默认值的 RowDefinition 对象。

字段

名称 说明
HeightProperty

Height 属性的后备存储。

属性

名称 说明
BindingContext

获取或设置一个对象,该对象包含由属于此 BindableObject属性的绑定属性所面向的属性。

(继承自 BindableObject)
Dispatcher

一个 IDefinition ,用于定义行的属性 Grid。

(继承自 BindableObject)
Height

获取或设置行的高度。

方法

名称 说明
ApplyBindings()

将绑定应用到 BindingContext.

(继承自 BindableObject)
ClearValue(BindableProperty)

清除为 SetValueproperty.. 设置的任何值。

(继承自 BindableObject)
ClearValue(BindablePropertyKey)

清除为 SetValue 由 propertyKey标识的属性设置的任何值。

(继承自 BindableObject)
CoerceValue(BindableProperty)

一个 IDefinition ,用于定义行的属性 Grid。

(继承自 BindableObject)
CoerceValue(BindablePropertyKey)

一个 IDefinition ,用于定义行的属性 Grid。

(继承自 BindableObject)
GetValue(BindableProperty)

返回 BindableProperty 中包含的值。

(继承自 BindableObject)
GetValues(BindableProperty, BindableProperty, BindableProperty)
已过时.

供Xamarin内部使用。窗体平台。

(继承自 BindableObject)
GetValues(BindableProperty, BindableProperty)
已过时.

供Xamarin内部使用。窗体平台。

(继承自 BindableObject)
IsSet(BindableProperty)

返回 true 目标属性是否存在且已设置。

(继承自 BindableObject)
OnBindingContextChanged()

重写此方法以在 BindingContext 更改时执行操作。

(继承自 BindableObject)
OnPropertyChanged(String)

从子类调用此方法,以通知属性发生了更改。

(继承自 BindableObject)
OnPropertyChanging(String)

从子类调用此方法,以通知属性上将发生更改。

(继承自 BindableObject)
RemoveBinding(BindableProperty)

删除以前设置的绑定。

(继承自 BindableObject)
SetBinding(BindableProperty, BindingBase)

向属性分配绑定。

(继承自 BindableObject)
SetValue(BindableProperty, Object)

设置指定属性的值。

(继承自 BindableObject)
SetValue(BindablePropertyKey, Object)

设置 propertyKey 的值。

(继承自 BindableObject)
SetValueCore(BindableProperty, Object, SetValueFlags)

供Xamarin内部使用。窗体平台。

(继承自 BindableObject)
UnapplyBindings()

取消应用以前设置的所有绑定。

(继承自 BindableObject)

活动

名称 说明
BindingContextChanged

每当 BindingContext 属性更改时引发。

(继承自 BindableObject)
PropertyChanged

属性发生更改时引发。

(继承自 BindableObject)
PropertyChanging

当属性即将更改时引发。

(继承自 BindableObject)
SizeChanged

更改行大小时引发的事件。

显式接口实现

名称 说明
IDynamicResourceHandler.SetDynamicResource(BindableProperty, String)

供Xamarin内部使用。窗体平台。

(继承自 BindableObject)

扩展方法

名称 说明
GetPropertyIfSet<T>(BindableObject, BindableProperty, T)

一个 IDefinition ,用于定义行的属性 Grid。

SetAppThemeColor(BindableObject, BindableProperty, Color, Color)

一个 IDefinition ,用于定义行的属性 Grid。

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

创建绑定并将其应用到属性。

SetBinding<TSource>(BindableObject, BindableProperty, Expression<Func<TSource,Object>>, BindingMode, IValueConverter, String)
已过时.

从表达式创建并应用绑定。

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

一个 IDefinition ,用于定义行的属性 Grid。

适用于