TabbedPage 类

定义

显示屏幕顶部多个选项卡的 MultiPage<T>,其中每个都将内容加载到屏幕上。

[Xamarin.Forms.RenderWith(typeof(Xamarin.Forms.Platform._TabbedPageRenderer))]
public class TabbedPage : Xamarin.Forms.MultiPage<Xamarin.Forms.Page>, Xamarin.Forms.IElementConfiguration<Xamarin.Forms.TabbedPage>
type TabbedPage = class
    inherit MultiPage<Page>
    interface IElementConfiguration<TabbedPage>
继承
属性
实现

注解

选项卡式页面的用户界面由选项卡列表和更大的详细信息区域组成。 在 iOS 上,选项卡的列表显示在屏幕的底部,而详细信息区域显示在上方。 在 Android 和 Windows 手机上,选项卡显示在屏幕顶部。 如果该集合太大而无法容纳在一个屏幕上,用户可以滚动屏幕顶部的选项卡集合。

应用开发人员可以通过两种方式之一创建选项卡式页面。 首先,应用程序开发人员可以将单个类或其子类的对象列表分配给 ItemsSource 属性,并将 分配给 DataTemplateItemTemplate 属性以返回最小派生类型的对象的页。 其次,应用开发人员可以向 属性添加一系列 Page 对象 Children 。 下面的代码示例中显示了这两种方法。

以下示例代码为简洁起见,改编自“ 示例应用程序 ”页上的 FormsGallery 示例,演示如何通过将 分配给 DataTemplateItemTemplate 属性来显示特定类型的数据。 请注意如何 NamedColorPage 通过绑定字段来获取其 ColorProperty 颜色。

using System;
using Xamarin.Forms;

namespace MinimalTabbed
{
    class TabbedPageDemoPage : TabbedPage
    {
        public TabbedPageDemoPage ()
        {
            this.Title = "TabbedPage";

            this.ItemsSource = new NamedColor[] {
                new NamedColor ("Red", Color.Red),
                new NamedColor ("Yellow", Color.Yellow),
                new NamedColor ("Green", Color.Green),
                new NamedColor ("Aqua", Color.Aqua),
                new NamedColor ("Blue", Color.Blue),
                new NamedColor ("Purple", Color.Purple)
            };

            this.ItemTemplate = new DataTemplate (() => { 
                return new NamedColorPage (); 
            });
        }
    }

    // Data type:
    class NamedColor
    {
        public NamedColor (string name, Color color)
        {
            this.Name = name;
            this.Color = color;
        }

        public string Name { private set; get; }

        public Color Color { private set; get; }

        public override string ToString ()
        {
            return Name;
        }
    }

    // Format page
    class NamedColorPage : ContentPage
    {
        public NamedColorPage ()
        {
            // This binding is necessary to label the tabs in
            // the TabbedPage.
            this.SetBinding (ContentPage.TitleProperty, "Name");
            // BoxView to show the color.
            BoxView boxView = new BoxView {
                WidthRequest = 100,
                HeightRequest = 100,
                HorizontalOptions = LayoutOptions.Center
            };
            boxView.SetBinding (BoxView.ColorProperty, "Color");

            // Build the page
            this.Content = boxView;
        }
    }
}


以下示例创建包含两 ContentPage 个实例的选项卡式视图。

class TabbedPageDemoPage2 : TabbedPage
{
    public TabbedPageDemoPage2 ()
    {
        this.Title = "TabbedPage";
        this.Children.Add (new ContentPage 
            {
                Title = "Blue",
                Content = new BoxView
                {
                    Color = Color.Blue,
                    HeightRequest = 100f,
                    VerticalOptions = LayoutOptions.Center
                },
            }
        );
        this.Children.Add (new ContentPage {
            Title = "Blue and Red",
            Content = new StackLayout {
                Children = {
                    new BoxView { Color = Color.Blue },
                    new BoxView { Color = Color.Red}
                }
            }
        });
    }
}

构造函数

TabbedPage()

新建具有默认值的 TabbedPage 元素。

字段

ActionSheetSignalName

此方法仅供内部使用。

(继承自 Page)
AlertSignalName

此方法仅供内部使用。

(继承自 Page)
BarBackgroundColorProperty

BarBackgroundColor 属性的后备存储。

BarBackgroundProperty

显示屏幕顶部多个选项卡的 MultiPage<T>,其中每个都将内容加载到屏幕上。

BarTextColorProperty

BarTextColor 属性的后备存储。

BusySetSignalName

此方法仅供内部使用。

(继承自 Page)
PromptSignalName

显示屏幕顶部多个选项卡的 MultiPage<T>,其中每个都将内容加载到屏幕上。

(继承自 Page)
SelectedTabColorProperty

SelectedTabColor 字段的后备存储。

UnselectedTabColorProperty

UnselectedTabColor 字段的后备存储。

属性

AnchorX

获取或设置任何转换的中心点的 X 部分,相对于元素的边界。 这是一种可绑定属性。

(继承自 VisualElement)
AnchorY

获取或设置任何转换的中心点的 Y 部分,相对于元素的边界。 这是一种可绑定属性。

(继承自 VisualElement)
AutomationId

获取或设置允许自动化框架查找此元素并与其交互的值。

(继承自 Element)
Background

显示屏幕顶部多个选项卡的 MultiPage<T>,其中每个都将内容加载到屏幕上。

(继承自 VisualElement)
BackgroundColor

获取或设置将填充 VisualElement 背景的颜色。 这是一种可绑定属性。

(继承自 VisualElement)
BackgroundImage
已过时。

标识用作 Page 的背景的图像。

(继承自 Page)
BackgroundImageSource

显示屏幕顶部多个选项卡的 MultiPage<T>,其中每个都将内容加载到屏幕上。

(继承自 Page)
BarBackground

显示屏幕顶部多个选项卡的 MultiPage<T>,其中每个都将内容加载到屏幕上。

BarBackgroundColor

获取或设置栏的背景色。

BarTextColor

获取或设置栏上的文本颜色。

Batched

供 Xamarin.Forms 平台内部使用。

(继承自 VisualElement)
Behaviors

获取与此元素关联的 Behavior 列表。 这是一种可绑定属性。

(继承自 VisualElement)
BindingContext

获取或设置对象,该对象包含将被属于此 BindableObject 的绑定属性设定为目标的属性。

(继承自 BindableObject)
Bounds

获取元素的边界。

(继承自 VisualElement)
Children

获取 MultiPage 的子元素的 IList<Page>。

(继承自 MultiPage<T>)
class

显示屏幕顶部多个选项卡的 MultiPage<T>,其中每个都将内容加载到屏幕上。

(继承自 NavigableElement)
ClassId

获取或设置用于标识语义相似元素集合的值。

(继承自 Element)
Clip

显示屏幕顶部多个选项卡的 MultiPage<T>,其中每个都将内容加载到屏幕上。

(继承自 VisualElement)
ContainerArea

供 Xamarin.Forms 平台内部使用。

(继承自 Page)
CurrentPage

获取或设置当前选定的页面。

(继承自 MultiPage<T>)
DisableLayout

供 Xamarin.Forms 平台内部使用。

(继承自 VisualElement)
Dispatcher

显示屏幕顶部多个选项卡的 MultiPage<T>,其中每个都将内容加载到屏幕上。

(继承自 BindableObject)
EffectControlProvider

供 Xamarin.Forms 平台内部使用。

(继承自 Element)
Effects

应用于此项的效果列表。

(继承自 Element)
FlowDirection

获取或设置布局流方向。

(继承自 VisualElement)
Height

获取此元素的当前呈现高度。 这是一种只读可绑定属性。

(继承自 VisualElement)
HeightRequest

获取或设置此元素的所需高度替代。

(继承自 VisualElement)
Icon
已过时。

Page 的关联图标的资源标识符。

(继承自 Page)
IconImageSource

显示屏幕顶部多个选项卡的 MultiPage<T>,其中每个都将内容加载到屏幕上。

(继承自 Page)
Id

获取可用于通过运行应用程序唯一地标识元素的值。

(继承自 Element)
IgnoresContainerArea

供 Xamarin.Forms 平台内部使用。

(继承自 Page)
InputTransparent

获取或设置一个值,该值指示此元素是否应涉及用户交互周期。 这是一种可绑定属性。

(继承自 VisualElement)
InternalChildren

供 Xamarin.Forms 平台内部使用。

(继承自 Page)
IsBusy

将页标记为忙。 这会导致特定于平台的全局活动指示器显示忙碌状态。

(继承自 Page)
IsEnabled

获取或设置一个值,该值指示是否在用户界面中启用此元素。 这是一种可绑定属性。

(继承自 VisualElement)
IsFocused

获取一个值,该值指示当前是否聚焦此元素。 这是一种可绑定属性。

(继承自 VisualElement)
IsInNativeLayout

供 Xamarin.Forms 平台内部使用。

(继承自 VisualElement)
IsNativeStateConsistent

供 Xamarin.Forms 平台内部使用。

(继承自 VisualElement)
IsPlatformEnabled

供 Xamarin.Forms 平台内部使用。

(继承自 VisualElement)
IsTabStop

获取或设置指明此元素是否包含在选项卡导航中的值。 这是一种可绑定属性。

(继承自 VisualElement)
IsVisible

获取或设置一个值,该值确定此元素是否应属于可视化树的一部分。 这是一种可绑定属性。

(继承自 VisualElement)
ItemsSource

要显示的项的源。

(继承自 MultiPage<T>)
ItemTemplate

用于显示项的模板。

(继承自 MultiPage<T>)
LogicalChildren

供 Xamarin.Forms 平台内部使用。

(继承自 Element)
MinimumHeightRequest

获取或设置一个值,该值将替代元素在布局期间请求的最小高度。

(继承自 VisualElement)
MinimumWidthRequest

获取或设置一个值,该值将替代元素在布局期间请求的最小宽度。

(继承自 VisualElement)
Navigation

显示屏幕顶部多个选项卡的 MultiPage<T>,其中每个都将内容加载到屏幕上。

(继承自 NavigableElement)
NavigationProxy

显示屏幕顶部多个选项卡的 MultiPage<T>,其中每个都将内容加载到屏幕上。

(继承自 NavigableElement)
Opacity

获取或设置呈现元素时应用于元素的不透明度值。 这是一种可绑定属性。

(继承自 VisualElement)
Padding

Page 的内容与其边框之间的空间。

(继承自 Page)
Parent

获取或设置元素的父元素。

(继承自 Element)
ParentView
已过时。

获取作为 VisualElement 的此元素的最近的上级元素。

(继承自 Element)
Platform
已过时。

显示屏幕顶部多个选项卡的 MultiPage<T>,其中每个都将内容加载到屏幕上。

(继承自 Element)
RealParent

供 Xamarin.Forms 平台内部使用。

(继承自 Element)
Resources

获取或设置本地资源字典。

(继承自 VisualElement)
Rotation

获取或设置呈现元素时围绕 Z 轴(仿射旋转)的旋转角度(以度为单位)。

(继承自 VisualElement)
RotationX

获取或设置呈现元素时围绕 X 轴(透视旋转)的旋转角度(以度为单位)。

(继承自 VisualElement)
RotationY

获取或设置呈现元素时围绕 Y 轴(透视旋转)的旋转角度(以度为单位)。

(继承自 VisualElement)
Scale

获取或设置应用于元素的比例因子。

(继承自 VisualElement)
ScaleX

获取或设置要应用于 X 方向的缩放值。

(继承自 VisualElement)
ScaleY

获取或设置要应用于 Y 方向的缩放值。

(继承自 VisualElement)
SelectedItem

当前选定的项。

(继承自 MultiPage<T>)
SelectedTabColor

显示屏幕顶部多个选项卡的 MultiPage<T>,其中每个都将内容加载到屏幕上。

Style

显示屏幕顶部多个选项卡的 MultiPage<T>,其中每个都将内容加载到屏幕上。

(继承自 NavigableElement)
StyleClass

显示屏幕顶部多个选项卡的 MultiPage<T>,其中每个都将内容加载到屏幕上。

(继承自 NavigableElement)
StyleId

获取或设置用于唯一地标识元素的用户定义的值。

(继承自 Element)
TabIndex

显示屏幕顶部多个选项卡的 MultiPage<T>,其中每个都将内容加载到屏幕上。

(继承自 VisualElement)
Title

Page 的标题。

(继承自 Page)
ToolbarItems

一组 ToolbarItem,以特定于平台的方式实现。

(继承自 Page)
TranslationX

获取或设置元素的 X 转换增量。

(继承自 VisualElement)
TranslationY

获取或设置元素的 Y 转换增量。

(继承自 VisualElement)
Triggers

获取与此元素关联的 Trigger 列表。 这是一种可绑定属性。

(继承自 VisualElement)
UnselectedTabColor

显示屏幕顶部多个选项卡的 MultiPage<T>,其中每个都将内容加载到屏幕上。

Visual

显示屏幕顶部多个选项卡的 MultiPage<T>,其中每个都将内容加载到屏幕上。

(继承自 VisualElement)
Width

获取此元素的当前呈现宽度。 这是一种只读可绑定属性。

(继承自 VisualElement)
WidthRequest

获取或设置此元素的所需宽度替代。

(继承自 VisualElement)
X

获取此元素的当前 X 位置。 这是一种只读可绑定属性。

(继承自 VisualElement)
Y

获取此元素的当前 Y 位置。 这是一种只读可绑定属性。

(继承自 VisualElement)

方法

ApplyBindings()

将绑定应用到 BindingContext

(继承自 BindableObject)
BatchBegin()

表示开始对元素属性进行批更改。

(继承自 VisualElement)
BatchCommit()

表示元素命令批处理结束,且现在应提交命令。

(继承自 VisualElement)
ChangeVisualState()

供 Xamarin.Forms 平台内部使用。

(继承自 VisualElement)
ClearValue(BindableProperty)

清除由 SetValueproperty 设置的任何值。

(继承自 BindableObject)
ClearValue(BindablePropertyKey)

清除由 SetValuepropertyKey 标识的属性设置的任何值。

(继承自 BindableObject)
CoerceValue(BindableProperty)

显示屏幕顶部多个选项卡的 MultiPage<T>,其中每个都将内容加载到屏幕上。

(继承自 BindableObject)
CoerceValue(BindablePropertyKey)

显示屏幕顶部多个选项卡的 MultiPage<T>,其中每个都将内容加载到屏幕上。

(继承自 BindableObject)
CreateDefault(Object)

为 对象创建一个适合在 thisTabbedPage 页面中显示的默认页面。

Descendants()

供 Xamarin.Forms 平台内部使用。

(继承自 Element)
DisplayActionSheet(String, String, String, String[])

显示本机平台操作工作表,允许应用程序用户从多个按钮中进行选择。

(继承自 Page)
DisplayAlert(String, String, String)

使用单个取消按钮向应用程序用户显示警报对话框。

(继承自 Page)
DisplayAlert(String, String, String, String)

使用接受和取消按钮向应用程序用户显示警报对话框。

(继承自 Page)
DisplayPromptAsync(String, String, String, String, String, Int32, Keyboard)
已过时。

显示屏幕顶部多个选项卡的 MultiPage<T>,其中每个都将内容加载到屏幕上。

(继承自 Page)
DisplayPromptAsync(String, String, String, String, String, Int32, Keyboard, String)

显示屏幕顶部多个选项卡的 MultiPage<T>,其中每个都将内容加载到屏幕上。

(继承自 Page)
EffectIsAttached(String)

供 Xamarin.Forms 平台内部使用。

(继承自 Element)
FindByName(String)

返回具有指定名称的元素。

(继承自 Element)
Focus()

尝试将焦点设定到此元素上。

(继承自 VisualElement)
ForceLayout()

强制 Page 执行布局处理过程。

(继承自 Page)
GetPageByIndex(Int32)

供 Xamarin.Forms 平台内部使用。

(继承自 MultiPage<T>)
GetSizeRequest(Double, Double)
已过时。

返回元素的 SizeRequest。 调用此方法开始布局循环的测量过程。

(继承自 VisualElement)
GetValue(BindableProperty)

返回 BindableProperty 中包含的值。

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

供 Xamarin.Forms 平台内部使用。

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

供 Xamarin.Forms 平台内部使用。

(继承自 BindableObject)
InvalidateMeasure()

调用此方法以使此 VisualElement 的布局无效。 引发 MeasureInvalidated 事件。

(继承自 VisualElement)
InvalidateMeasureNonVirtual(InvalidationTrigger)

供 Xamarin.Forms 平台内部使用。

(继承自 VisualElement)
IsSet(BindableProperty)

如果目标属性存在并且已设置,则返回 true

(继承自 BindableObject)
Layout(Rectangle)

在布局循环中更新元素的边界。

(继承自 VisualElement)
LayoutChildren(Double, Double, Double, Double)

将子级 Element 布置到指定区域。

(继承自 Page)
Measure(Double, Double, MeasureFlags)

返回在设备上显示可视元素所需的最小大小。

(继承自 VisualElement)
NativeSizeChanged()

供 Xamarin.Forms 平台内部使用。

(继承自 VisualElement)
On<T>()

返回此 TabbedPage 的特定于平台的实例,可对其调用特定于平台的方法。

OnAppearing()

替代后,允许应用程序开发者在 Page 变为可见之前立即自定义行为。

(继承自 Page)
OnBackButtonPressed()

按下“后退”按钮时引发的事件。

(继承自 MultiPage<T>)
OnBindingContextChanged()

每当 Page 的绑定上下文发生更改时就会调用。 重写此方法可为此事件添加类处理。

(继承自 Page)
OnChildAdded(Element)

在有子级添加到 MultiPage<T> 时调用。

(继承自 MultiPage<T>)
OnChildMeasureInvalidated(Object, EventArgs)

指示子级 Element 的首选大小已更改。

(继承自 Page)
OnChildRemoved(Element)
已过时。

应用程序开发者可以重写此方法以在删除子级时进行响应。

(继承自 VisualElement)
OnChildRemoved(Element, Int32)

显示屏幕顶部多个选项卡的 MultiPage<T>,其中每个都将内容加载到屏幕上。

(继承自 VisualElement)
OnChildrenReordered()

即将发出 ChildrenReordered 事件时调用。 实现此方法可为此事件添加类处理。

(继承自 VisualElement)
OnCurrentPageChanged()

引发 CurrentPageChanged 事件。

(继承自 MultiPage<T>)
OnDisappearing()

替代后,允许应用程序开发者在 Page 消失时自定义行为。

(继承自 Page)
OnMeasure(Double, Double)

进行布局测量时调用的方法。

(继承自 VisualElement)
OnPagesChanged(NotifyCollectionChangedEventArgs)

MultiPage<T> 的页面更改时调用。

(继承自 MultiPage<T>)
OnParentSet()

PageParent 属性更改时调用。

(继承自 Page)
OnPropertyChanged(String)

在可绑定属性更改时调用。

(继承自 MultiPage<T>)
OnPropertyChanging(String)

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

(继承自 BindableObject)
OnSizeAllocated(Double, Double)

指示已为 Page 分配了大小。

(继承自 Page)
OnSizeRequest(Double, Double)
已过时。

此方法在对布局循环的测量过程中调用,以获取需要的元素大小。

(继承自 VisualElement)
OnTabIndexPropertyChanged(Int32, Int32)

显示屏幕顶部多个选项卡的 MultiPage<T>,其中每个都将内容加载到屏幕上。

(继承自 VisualElement)
OnTabStopPropertyChanged(Boolean, Boolean)

显示屏幕顶部多个选项卡的 MultiPage<T>,其中每个都将内容加载到屏幕上。

(继承自 VisualElement)
RemoveBinding(BindableProperty)

删除先前设置的绑定。

(继承自 BindableObject)
RemoveDynamicResource(BindableProperty)

移除先前设置的动态资源

(继承自 Element)
SendAppearing()

供 Xamarin.Forms 平台内部使用。

(继承自 Page)
SendBackButtonPressed()

调用 OnBackButtonPressed()

(继承自 Page)
SendDisappearing()

供 Xamarin.Forms 平台内部使用。

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

向属性分配绑定。

(继承自 BindableObject)
SetDynamicResource(BindableProperty, String)

将此元素的 BindableProperty 属性设置为通过 DynamicResource 使用提供的键来更新。

(继承自 Element)
SetupContent(T, Int32)

若在派生类中被替代,则执行 content 的初始化。

(继承自 MultiPage<T>)
SetValue(BindableProperty, Object)

设置指定属性的值。

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

设置 propertyKey 的值。

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

供 Xamarin.Forms 平台内部使用。

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

供 Xamarin.Forms 平台内部使用。

(继承自 Element)
SetValueFromRenderer(BindablePropertyKey, Object)

供 Xamarin.Forms 平台内部使用。

(继承自 Element)
SizeAllocated(Double, Double)

在布局循环过程中调用 SizeAllocated 以指示子树布局的开始。

(继承自 VisualElement)
TabIndexDefaultValueCreator()

显示屏幕顶部多个选项卡的 MultiPage<T>,其中每个都将内容加载到屏幕上。

(继承自 VisualElement)
TabStopDefaultValueCreator()

显示屏幕顶部多个选项卡的 MultiPage<T>,其中每个都将内容加载到屏幕上。

(继承自 VisualElement)
UnapplyBindings()

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

(继承自 BindableObject)
Unfocus()

取消设置此元素的焦点。

(继承自 VisualElement)
UnhookContent(T)

应用程序开发人员替代此方法,以便为在 SetupContent(T, Int32) 中注册的项取消注册事件处理程序。

(继承自 MultiPage<T>)
UpdateChildrenLayout()

请求 Page 的子级 Element 更新其布局。

(继承自 Page)

事件

Appearing

指示将显示 Page

(继承自 Page)
BatchCommitted

供 Xamarin.Forms 平台内部使用。

(继承自 VisualElement)
BindingContextChanged

只要 BindingContext 属性更改就会引发。

(继承自 BindableObject)
ChildAdded

每当将子元素添加到元素时就会发生。

(继承自 Element)
ChildRemoved

每当从元素中删除子元素时就会发生。

(继承自 Element)
ChildrenReordered

重新排序 VisualElement 的子级时发生。

(继承自 VisualElement)
CurrentPageChanged

CurrentPage 属性更改时引发。

(继承自 MultiPage<T>)
DescendantAdded

每当将子元素添加到元素子树时就会发生。

(继承自 Element)
DescendantRemoved

每当从元素子树中删除子元素时就会发生。

(继承自 Element)
Disappearing

指示 Page 即将停止显示。

(继承自 Page)
FocusChangeRequested

供 Xamarin.Forms 平台内部使用。

(继承自 VisualElement)
Focused

元素接收焦点时发生。

(继承自 VisualElement)
LayoutChanged

已更改 Page 的布局时引发。

(继承自 Page)
MeasureInvalidated

可视元素的布局无效时引发的事件。

(继承自 VisualElement)
PagesChanged

MultiPage<T> 的子页面更改时引发。

(继承自 MultiPage<T>)
PlatformSet
已过时。

显示屏幕顶部多个选项卡的 MultiPage<T>,其中每个都将内容加载到屏幕上。

(继承自 Element)
PropertyChanged

在属性已更改时引发。

(继承自 BindableObject)
PropertyChanging

在属性将要更改时引发。

(继承自 BindableObject)
SizeChanged

当此元素上的 Width 或 Height 属性的值发生更改时发生。

(继承自 VisualElement)
Unfocused

当元素丢失焦点时发生。

(继承自 VisualElement)

显式接口实现

IDynamicResourceHandler.SetDynamicResource(BindableProperty, String)

供 Xamarin.Forms 平台内部使用。

(继承自 BindableObject)
IElementController.SetValueFromRenderer(BindableProperty, Object)

供 Xamarin.Forms 平台内部使用。

(继承自 Element)
IItemsView<T>.CreateDefault(Object)

供 Xamarin.Forms 平台内部使用。

(继承自 MultiPage<T>)
IItemsView<T>.SetupContent(T, Int32)

供 Xamarin.Forms 平台内部使用。

(继承自 MultiPage<T>)
IItemsView<T>.UnhookContent(T)

供 Xamarin.Forms 平台内部使用。

(继承自 MultiPage<T>)
INameScope.RegisterName(String, Object)

仅限内部使用。

(继承自 Element)
IVisualElementController.EffectiveFlowDirection

获取平台上元素的有效可视流方向,考虑区域设置和逻辑流设置。

(继承自 VisualElement)
IVisualElementController.InvalidateMeasure(InvalidationTrigger)

此方法仅供内部使用。

(继承自 VisualElement)

扩展方法

AbortAnimation(IAnimatable, String)

停止动画。

Animate(IAnimatable, String, Action<Double>, Double, Double, UInt32, UInt32, Easing, Action<Double,Boolean>, Func<Boolean>)

设置指定参数并启动动画。

Animate(IAnimatable, String, Action<Double>, UInt32, UInt32, Easing, Action<Double,Boolean>, Func<Boolean>)

设置指定参数并启动动画。

Animate(IAnimatable, String, Animation, UInt32, UInt32, Easing, Action<Double,Boolean>, Func<Boolean>)

设置指定参数并启动动画。

Animate<T>(IAnimatable, String, Func<Double,T>, Action<T>, UInt32, UInt32, Easing, Action<T,Boolean>, Func<Boolean>)

设置指定参数并启动动画。

AnimateKinetic(IAnimatable, String, Func<Double,Double,Boolean>, Double, Double, Action)

设置指定参数并启动动态动画。

AnimationIsRunning(IAnimatable, String)

返回一个布尔值,该值指示 handle 指定的动画是否正在运行。

Batch(IAnimatable)

显示屏幕顶部多个选项卡的 MultiPage<T>,其中每个都将内容加载到屏幕上。

GetPropertyIfSet<T>(BindableObject, BindableProperty, T)

显示屏幕顶部多个选项卡的 MultiPage<T>,其中每个都将内容加载到屏幕上。

SetAppThemeColor(BindableObject, BindableProperty, Color, Color)

显示屏幕顶部多个选项卡的 MultiPage<T>,其中每个都将内容加载到屏幕上。

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

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

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

通过表达式创建并应用绑定。

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

显示屏幕顶部多个选项卡的 MultiPage<T>,其中每个都将内容加载到屏幕上。

AncestorToRoot(Page)

供 Xamarin.Forms 平台内部使用。

FindByName<T>(Element, String)

返回包含 element 的作用域中名称为 name 的类型 T 的实例。

FindNextElement(ITabStopElement, Boolean, IDictionary<Int32,List<ITabStopElement>>, Int32)

显示屏幕顶部多个选项卡的 MultiPage<T>,其中每个都将内容加载到屏幕上。

GetSortedTabIndexesOnParentPage(VisualElement)

显示屏幕顶部多个选项卡的 MultiPage<T>,其中每个都将内容加载到屏幕上。

GetTabIndexesOnParentPage(ITabStopElement, Int32)

显示屏幕顶部多个选项卡的 MultiPage<T>,其中每个都将内容加载到屏幕上。

FadeTo(VisualElement, Double, UInt32, Easing)

返回一个任务,它执行 opacitylengtheasing 参数描述的淡化。

LayoutTo(VisualElement, Rectangle, UInt32, Easing)

返回一个任务,它将 view 指定的 VisualElement 的边界简化为 bounds 参数指定的矩形。

RelRotateTo(VisualElement, Double, UInt32, Easing)

从当前旋转将 view 指定的 VisualElement 旋转为 drotation

RelScaleTo(VisualElement, Double, UInt32, Easing)

返回一个任务,它将 view 指定的 VisualElement 从其当前比例缩放到 dscale

RotateTo(VisualElement, Double, UInt32, Easing)

返回一个任务,它执行 rotationlengtheasing 参数描述的旋转。

RotateXTo(VisualElement, Double, UInt32, Easing)

返回将 Y 轴倾斜 opacity 的任务,花费时间 length 并使用 easing

RotateYTo(VisualElement, Double, UInt32, Easing)

返回将 X 轴倾斜 opacity 的任务,花费时间 length 并使用 easing

ScaleTo(VisualElement, Double, UInt32, Easing)

返回一个任务,它将 view 指定的 VisualElement 缩放到绝对比例因子 scale

ScaleXTo(VisualElement, Double, UInt32, Easing)

显示屏幕顶部多个选项卡的 MultiPage<T>,其中每个都将内容加载到屏幕上。

ScaleYTo(VisualElement, Double, UInt32, Easing)

显示屏幕顶部多个选项卡的 MultiPage<T>,其中每个都将内容加载到屏幕上。

TranslateTo(VisualElement, Double, Double, UInt32, Easing)

将元素 TranslationX 和 TranslationY 属性从其当前值动画处理为新的值。 这可确保输入布局与视觉对象布局处于同一位置。

HasVisualStateGroups(VisualElement)

如果 element 具有与之关联的一个或多个可视状态组,则返回 true。 否则返回 false

适用于