OpenGLView 类

定义

注意

OpenGLView is obsolete as of .NET 7. To enable this view you will need to call builder.UseMauiCompatibility but it is currently untested and unsupported.

显示 OpenGL 内容的 View

public ref class OpenGLView sealed : Microsoft::Maui::Controls::View, Microsoft::Maui::Controls::IElementConfiguration<Microsoft::Maui::Controls::OpenGLView ^>, Microsoft::Maui::Controls::IOpenGlViewController
[System.Obsolete("OpenGLView is obsolete as of .NET 7. To enable this view you will need to call `builder.UseMauiCompatibility` but it is currently untested and unsupported.")]
public sealed class OpenGLView : Microsoft.Maui.Controls.View, Microsoft.Maui.Controls.IElementConfiguration<Microsoft.Maui.Controls.OpenGLView>, Microsoft.Maui.Controls.IOpenGlViewController
[<System.Obsolete("OpenGLView is obsolete as of .NET 7. To enable this view you will need to call `builder.UseMauiCompatibility` but it is currently untested and unsupported.")>]
type OpenGLView = class
    inherit View
    interface IOpenGlViewController
    interface IViewController
    interface IVisualElementController
    interface IElementController
    interface IElementConfiguration<OpenGLView>
Public NotInheritable Class OpenGLView
Inherits View
Implements IElementConfiguration(Of OpenGLView), IOpenGlViewController
继承
属性
实现

注解

OpenGLView最容易使用共享项目进行编程,在这种情况下,对 OpenTK 的引用非常简单。 以下示例演示了一个具有呈现循环的简单 OpenGL 应用:

using Microsoft.Maui.Controls;
using OpenTK.Graphics.ES30;

namespace opengl
{
    public class OpenGLPage : ContentPage
    {
        float red, green, blue;

        public OpenGLPage ()
        {
            Title = "OpenGL";
            var view = new OpenGLView { HasRenderLoop = true };
            var toggle = new Switch { IsToggled = true };
            var button = new Button { Text = "Display" };

            view.HeightRequest = 300;
            view.WidthRequest = 300;

            view.OnDisplay = r => {

                GL.ClearColor (red, green, blue, 1.0f);
                GL.Clear ((ClearBufferMask.ColorBufferBit | ClearBufferMask.DepthBufferBit));

                red += 0.01f;
                if (red >= 1.0f)
                    red -= 1.0f;
                green += 0.02f;
                if (green >= 1.0f)
                    green -= 1.0f;
                blue += 0.03f;
                if (blue >= 1.0f)
                    blue -= 1.0f;
            };

            toggle.Toggled += (s, a) => {
                view.HasRenderLoop = toggle.IsToggled;
            };
            button.Clicked += (s, a) => view.Display ();

            var stack = new StackLayout { 
                Padding = new Size (20, 20),
                Children = {view, toggle, button}
            };

            Content = stack;
        }
    }
}

构造函数

OpenGLView()
已过时.

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

字段

HasRenderLoopProperty
已过时.

标识 HasRenderLoop 可绑定属性。

propertyMapper
已过时.

表示视图的内部 PropertyMapper

(继承自 View)

属性

AnchorX
已过时.

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

(继承自 VisualElement)
AnchorY
已过时.

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

(继承自 VisualElement)
AutomationId
已过时.

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

(继承自 Element)
Background
已过时.

获取或设置 Brush 将用于填充元素背景的 。 这是一种可绑定属性。

(继承自 VisualElement)
BackgroundColor
已过时.

获取或设置将 Color 填充元素背景的 。 这是一种可绑定属性。

(继承自 VisualElement)
Batched
已过时.

获取一个值,该值指示对此元素进行了批处理更改。

(继承自 VisualElement)
Behaviors
已过时.

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

(继承自 VisualElement)
BindingContext
已过时.

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

(继承自 BindableObject)
Bounds
已过时.

获取元素的边界(以与设备无关的单位为单位)。

(继承自 VisualElement)
class
已过时.

显示 OpenGL 内容的 View

(继承自 NavigableElement)
ClassId
已过时.

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

(继承自 Element)
Clip
已过时.

指定元素的剪辑区域。 这是一种可绑定属性。

(继承自 VisualElement)
DesiredSize
已过时.

获取在布局流程的度量传递过程中此元素计算所得的大小。

(继承自 VisualElement)
DisableLayout
已过时.

获取一个值,该值指示禁用此元素的布局。

(继承自 VisualElement)
Dispatcher
已过时.

获取创建此可绑定对象时可用的调度程序,否则会尝试查找最接近的可用调度程序 (可能是窗口/应用的) 。

(继承自 BindableObject)
EffectControlProvider
已过时.

供 .NET MAUI 内部使用。

(继承自 Element)
Effects
已过时.

获取或设置将在运行时应用于 元素的样式和属性。

(继承自 Element)
FlowDirection
已过时.

获取或设置布局流方向。 这是一种可绑定属性。

(继承自 VisualElement)
Frame
已过时.

获取或设置此元素驻留在屏幕上的帧。

(继承自 VisualElement)
GestureController
已过时.

显示 OpenGL 内容的 View

(继承自 View)
GestureRecognizers
已过时.

与此视图关联的手势识别器的集合。

(继承自 View)
Handler
已过时.

获取或设置 IViewHandler 与此元素关联的 。

(继承自 VisualElement)
HasRenderLoop
已过时.

OpenGLView 是否具有自定义呈现循环。

Height
已过时.

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

(继承自 VisualElement)
HeightRequest
已过时.

获取或设置此元素的所需高度替代。 这是一种可绑定属性。

(继承自 VisualElement)
HorizontalOptions
已过时.

获取或设置定义 LayoutOptions 元素在布局周期中的布局方式的 。 这是一种可绑定属性。

(继承自 View)
Id
已过时.

获取一个值,该值可用于在应用程序的整个运行过程中唯一标识元素。

(继承自 Element)
InputTransparent
已过时.

获取或设置一个值,该值指示此元素是否在用户交互期间响应命中测试。 这是一种可绑定属性。

(继承自 VisualElement)
IsEnabled
已过时.

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

(继承自 VisualElement)
IsEnabledCore
已过时.

此值表示累积 IsEnabled 值。 如果值将更改,重写此属性的所有类型还需要调用 RefreshIsEnabledProperty () 方法。

(继承自 VisualElement)
IsFocused
已过时.

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

(继承自 VisualElement)
IsInPlatformLayout
已过时.

获取或设置一个值,该值指示此元素当前正在经历平台布局周期。

(继承自 VisualElement)
IsLoaded
已过时.

指示元素是否连接到main对象树。

(继承自 VisualElement)
IsPlatformEnabled
已过时.

获取或设置一个值,该值指示是否启用此元素的平台等效元素。

(继承自 VisualElement)
IsPlatformStateConsistent
已过时.

获取或设置一个值,该值指示此元素当前与平台等效元素状态一致。

(继承自 VisualElement)
IsVisible
已过时.

获取或设置一个值,该值确定此元素是否在屏幕上可见并占用布局中的空间。 这是一种可绑定属性。

(继承自 VisualElement)
LogicalChildren
已过时.

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

(继承自 Element)
Margin
已过时.

获取或设置视图的边距。

(继承自 View)
MaximumHeightRequest
已过时.

获取或设置元素在布局期间将请求的最大高度。 这是一种可绑定属性。

(继承自 VisualElement)
MaximumWidthRequest
已过时.

获取或设置元素在布局期间将请求的最大宽度。 这是一种可绑定属性。

(继承自 VisualElement)
MinimumHeightRequest
已过时.

获取或设置元素在布局期间将请求的最小高度。 这是一种可绑定属性。

(继承自 VisualElement)
MinimumWidthRequest
已过时.

获取或设置元素在布局期间将请求的最小宽度。 这是一种可绑定属性。

(继承自 VisualElement)
Navigation
已过时.

显示 OpenGL 内容的 View

(继承自 NavigableElement)
NavigationProxy
已过时.

显示 OpenGL 内容的 View

(继承自 NavigableElement)
OnDisplay
已过时.

替代以创建自定义呈现循环。

Opacity
已过时.

获取或设置呈现元素时应用于元素的不透明度值。 此值的范围是 0 到 1;超出此范围的值将设置为最接近的有效值。 这是一种可绑定属性。

(继承自 VisualElement)
Parent
已过时.

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

(继承自 Element)
RealParent
已过时.

供 .NET MAUI 内部使用。

(继承自 Element)
Resources
已过时.

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

(继承自 VisualElement)
Rotation
已过时.

获取或设置呈现元素时围绕 Z 轴(仿射旋转)的旋转角度(以度为单位)。 这是一种可绑定属性。

(继承自 VisualElement)
RotationX
已过时.

获取或设置呈现元素时围绕 X 轴(透视旋转)的旋转角度(以度为单位)。 这是一种可绑定属性。

(继承自 VisualElement)
RotationY
已过时.

获取或设置呈现元素时围绕 Y 轴(透视旋转)的旋转角度(以度为单位)。 这是一种可绑定属性。

(继承自 VisualElement)
Scale
已过时.

获取或设置应用于元素的比例因子。 这是一种可绑定属性。

(继承自 VisualElement)
ScaleX
已过时.

获取或设置要应用于 X 方向的缩放值。 这是一种可绑定属性。

(继承自 VisualElement)
ScaleY
已过时.

获取或设置要应用于 Y 方向的缩放值。 这是一种可绑定属性。

(继承自 VisualElement)
Shadow
已过时.

获取或设置 由 元素投射的阴影效果。 这是一种可绑定属性。

(继承自 VisualElement)
Style
已过时.

显示 OpenGL 内容的 View

(继承自 NavigableElement)
StyleClass
已过时.

显示 OpenGL 内容的 View

(继承自 NavigableElement)
StyleId
已过时.

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

(继承自 Element)
TranslationX
已过时.

获取或设置元素的 X 转换增量。 这是一种可绑定属性。

(继承自 VisualElement)
TranslationY
已过时.

获取或设置元素的 Y 转换增量。 这是一种可绑定属性。

(继承自 VisualElement)
Triggers
已过时.

获取与此元素关联的对象列表 TriggerBase 。 这是一种只读可绑定属性。

(继承自 VisualElement)
VerticalOptions
已过时.

获取或设置定义 LayoutOptions 元素在布局周期中的布局方式的 。 这是一种可绑定属性。

(继承自 View)
Visual
已过时.

获取或设置替代 IVisual 元素视觉外观的实现。 这是一种可绑定属性。

(继承自 VisualElement)
Width
已过时.

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

(继承自 VisualElement)
WidthRequest
已过时.

获取或设置此元素的所需宽度替代。 这是一种可绑定属性。

(继承自 VisualElement)
Window
已过时.

Window获取与元素关联的 。 这是一种只读可绑定属性。

(继承自 VisualElement)
X
已过时.

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

(继承自 VisualElement)
Y
已过时.

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

(继承自 VisualElement)
ZIndex
已过时.

获取或设置布局中元素的从前到后 z 索引。 这是一种可绑定属性。

(继承自 VisualElement)

方法

AddLogicalChild(Element)
已过时.

将 添加到 Element 逻辑子级。

(继承自 Element)
ApplyBindings()
已过时.

将所有当前绑定应用于 BindingContext

(继承自 BindableObject)
Arrange(Rect)
已过时.

定位子对象并确定元素的大小。

(继承自 VisualElement)
ArrangeOverride(Rect)
已过时.

允许子类重写 Arrange(Rect) ,即使必须显式实现 接口,以避免与旧 Arrange(Rect) 方法冲突。

(继承自 VisualElement)
BatchBegin()
已过时.

表示开始对元素属性进行批更改。 如果更改了更多的属性值,这可提高性能。

(继承自 VisualElement)
BatchCommit()
已过时.

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

(继承自 VisualElement)
ChangeVisualState()
已过时.

显示 OpenGL 内容的 View

(继承自 View)
ClearLogicalChildren()
已过时.

删除所有子 Element项。

(继承自 Element)
ClearValue(BindableProperty)
已过时.

清除以前为可绑定属性设置的任何值。

(继承自 BindableObject)
ClearValue(BindablePropertyKey)
已过时.

清除以前为其键标识的可绑定属性设置的任何值。

(继承自 BindableObject)
CoerceValue(BindableProperty)
已过时.

强制指定可绑定属性的值。 这是通过调用 BindableProperty.CoerceValueDelegate 指定的可绑定属性来完成的。

(继承自 BindableObject)
CoerceValue(BindablePropertyKey)
已过时.

强制指定可绑定属性的值。 这是通过调用 BindableProperty.CoerceValueDelegate 指定的可绑定属性来完成的。

(继承自 BindableObject)
Display()
已过时.

在呈现之前调用。

EffectIsAttached(String)
已过时.

供 .NET MAUI 内部使用。

(继承自 Element)
FindByName(String)
已过时.

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

(继承自 Element)
Focus()
已过时.

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

(继承自 VisualElement)
GetChildElements(Point)
已过时.

获取在视觉上位于指定 point下的子元素。

(继承自 View)
GetRendererOverrides<T>()
已过时.

显示 OpenGL 内容的 View

(继承自 View)
GetValue(BindableProperty)
已过时.

返回给定的可绑定属性中包含的值。

(继承自 BindableObject)
InsertLogicalChild(Int32, Element)
已过时.

将 插入 Element 到指定索引处的逻辑子级。

(继承自 Element)
InvalidateMeasure()
已过时.

将元素的当前度量值标记为无效。

(继承自 VisualElement)
InvalidateMeasureNonVirtual(InvalidationTrigger)
已过时.

使元素的度量值失效。

(继承自 VisualElement)
InvalidateMeasureOverride()
已过时.

提供一种允许子类 (例如 Layout) 重写 InvalidateMeasure() 的方法,即使必须显式实现 接口以避免与 InvalidateMeasure() 方法冲突。

(继承自 VisualElement)
IsSet(BindableProperty)
已过时.

确定是否存在可绑定属性以及是否设置了值。

(继承自 BindableObject)
Layout(Rect)
已过时.

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

(继承自 VisualElement)
Measure(Double, Double, MeasureFlags)
已过时.

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

(继承自 VisualElement)
MeasureOverride(Double, Double)
已过时.

提供一种允许子类重写 Measure(Double, Double, MeasureFlags) 的方法,即使必须显式实现 接口,以避免与旧的 Measure 方法冲突。

(继承自 VisualElement)
On<T>()
已过时.

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

OnBindingContextChanged()
已过时.

每当 View 的绑定上下文发生更改时就会调用。

(继承自 View)
OnChildAdded(Element)
已过时.

显示 OpenGL 内容的 View

(继承自 VisualElement)
OnChildRemoved(Element, Int32)
已过时.

显示 OpenGL 内容的 View

(继承自 VisualElement)
OnChildrenReordered()
已过时.

引发 ChildrenReordered 事件。

(继承自 VisualElement)
OnHandlerChanged()
已过时.

在派生类中重写时,应引发 HandlerChanged 事件。

(继承自 Element)
OnHandlerChanging(HandlerChangingEventArgs)
已过时.

在派生类中重写时,应引发 HandlerChanging 事件。

(继承自 Element)
OnMeasure(Double, Double)
已过时.

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

(继承自 VisualElement)
OnParentChanged()
已过时.

在派生类中重写时,应引发 ParentChanged 事件。

(继承自 Element)
OnParentChanging(ParentChangingEventArgs)
已过时.

在派生类中重写时,应引发 ParentChanging 事件。

(继承自 Element)
OnParentSet()
已过时.

显示 OpenGL 内容的 View

(继承自 NavigableElement)
OnPropertyChanged(String)
已过时.

更改绑定属性时调用的方法。

(继承自 Element)
OnPropertyChanging(String)
已过时.

引发 PropertyChanging 事件。

(继承自 BindableObject)
OnSizeAllocated(Double, Double)
已过时.

在布局周期中设置元素大小时调用的方法。 实现此方法可为此事件添加类处理。

(继承自 VisualElement)
PlatformSizeChanged()
已过时.

表示此元素大小的平台等效元素已更改,可能需要新的布局周期。

(继承自 VisualElement)
RefreshIsEnabledProperty()
已过时.

如果发生某些事件并且属性的值将发生更改, IsEnabledCore 则必须始终调用此方法。

(继承自 VisualElement)
RemoveBinding(BindableProperty)
已过时.

从可绑定属性中删除以前设置的绑定。

(继承自 BindableObject)
RemoveDynamicResource(BindableProperty)
已过时.

删除以前设置的动态资源。

(继承自 Element)
RemoveLogicalChild(Element)
已过时.

从逻辑子级中删除特定 Element 项的第一个匹配项。

(继承自 Element)
SetBinding(BindableProperty, BindingBase)
已过时.

将绑定分配给可绑定属性。

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

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

(继承自 Element)
SetValue(BindableProperty, Object)
已过时.

设置指定的可绑定属性的值。

(继承自 BindableObject)
SetValue(BindablePropertyKey, Object)
已过时.

设置指定的可绑定属性的值。

(继承自 BindableObject)
SetValueCore(BindableProperty, Object, SetValueFlags)
已过时.

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

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

供 .NET MAUI 内部使用。

(继承自 Element)
SetValueFromRenderer(BindablePropertyKey, Object)
已过时.

供 .NET MAUI 内部使用。

(继承自 Element)
SizeAllocated(Double, Double)
已过时.

在布局周期期间调用的方法,以指示子树布局的开始。

(继承自 VisualElement)
UnapplyBindings()
已过时.

从当前上下文中删除所有当前绑定。

(继承自 BindableObject)
Unfocus()
已过时.

在此元素上取消设置键盘焦点。

(继承自 VisualElement)

事件

BatchCommitted
已过时.

通过调用 BatchCommit()提交一批属性更改时发生。

(继承自 VisualElement)
BindingContextChanged
已过时.

BindingContext 属性的值更改时发生。

(继承自 BindableObject)
ChildAdded
已过时.

每当将子元素添加到 元素时引发。

(继承自 Element)
ChildRemoved
已过时.

每当从元素中删除子元素时引发。

(继承自 Element)
ChildrenReordered
已过时.

当此元素的子元素的顺序更改时发生。

(继承自 VisualElement)
DescendantAdded
已过时.

每当将子元素添加到元素的子树时引发。

(继承自 Element)
DescendantRemoved
已过时.

每当从元素子树中删除子元素时引发。

(继承自 Element)
DisplayRequested
已过时.

显示 OpenGL 内容的 View

FocusChangeRequested
已过时.

显示 OpenGL 内容的 View

(继承自 VisualElement)
Focused
已过时.

在此元素聚焦时发生。

(继承自 VisualElement)
HandlerChanged
已过时.

每当元素的处理程序发生更改时引发。

(继承自 Element)
HandlerChanging
已过时.

每当元素的处理程序开始更改时引发。

(继承自 Element)
Loaded
已过时.

在构造元素并将其添加到对象树时发生。

(继承自 VisualElement)
MeasureInvalidated
已过时.

当元素的当前度量值失效时发生。

(继承自 VisualElement)
ParentChanged
已过时.

每当元素的父级发生更改时引发。

(继承自 Element)
ParentChanging
已过时.

每当元素的 开始更改时引发。

(继承自 Element)
PropertyChanged
已过时.

在属性值更改时发生。

(继承自 BindableObject)
PropertyChanging
已过时.

在属性值更改时发生。

(继承自 BindableObject)
SizeChanged
已过时.

在元素的大小更改时发生。

(继承自 VisualElement)
Unfocused
已过时.

此元素未聚焦时发生。

(继承自 VisualElement)
Unloaded
已过时.

当元素不再连接到main对象树时发生。

(继承自 VisualElement)

显式接口实现

IContextFlyoutElement.ContextFlyout
已过时.

ContextFlyout获取视图的 。 菜单浮出控件、菜单浮出控件子项和菜单浮出控件分隔符可以添加到上下文浮出控件。

(继承自 Element)
IDynamicResourceHandler.SetDynamicResource(BindableProperty, String)
已过时.

显示 OpenGL 内容的 View

(继承自 BindableObject)
IEffectControlProvider.RegisterEffect(Effect)
已过时.

显示 OpenGL 内容的 View

(继承自 Element)
IElement.Handler
已过时.

获取或设置 Element 的视图处理程序。

(继承自 VisualElement)
IElement.Parent
已过时.

获取 元素的父级。

(继承自 Element)
IElementController.Descendants()
已过时.

供 .NET MAUI 内部使用。

(继承自 Element)
IElementController.LogicalChildren
已过时.

供 .NET MAUI 内部使用。

(继承自 Element)
IElementController.SetValueFromRenderer(BindableProperty, Object)
已过时.

供 .NET MAUI 内部使用。

(继承自 Element)
IGestureController.CompositeGestureRecognizers
已过时.

显示 OpenGL 内容的 View

(继承自 View)
IHotReloadableView.Reload()
已过时.

显示 OpenGL 内容的 View

(继承自 View)
IHotReloadableView.ReloadHandler
已过时.

显示 OpenGL 内容的 View

(继承自 View)
IHotReloadableView.TransferState(IView)
已过时.

显示 OpenGL 内容的 View

(继承自 View)
INameScope.RegisterName(String, Object)
已过时.

供 .NET MAUI 内部使用。

(继承自 Element)
INameScope.UnregisterName(String)
已过时.

供 .NET MAUI 内部使用。

(继承自 Element)
IPropertyMapperView.GetPropertyMapperOverrides()
已过时.

显示 OpenGL 内容的 View

(继承自 View)
IReplaceableView.ReplacedView
已过时.

显示 OpenGL 内容的 View

(继承自 View)
IToolTipElement.ToolTip
已过时.

表示一个小矩形弹出窗口,当用户将指针放在视图上时,该窗口显示视图用途的简短说明。

(继承自 Element)
IView.Arrange(Rect)
已过时.

定位子元素并确定元素的大小。

(继承自 VisualElement)
IView.Background
已过时.

获取将填充视图背景的画图。

(继承自 VisualElement)
IView.Clip
已过时.

获取用于定义视图内容的大纲的路径。

(继承自 VisualElement)
IView.FlowDirection
已过时.

眼睛扫描 UI 元素的方向

(继承自 VisualElement)
IView.Height
已过时.

获取 IView 的指定高度。

(继承自 VisualElement)
IView.HorizontalLayoutAlignment
已过时.

确定此元素在容器中排列的水平方面

(继承自 View)
IView.InvalidateArrange()
已过时.

调用的方法,使此视图的布局失效。

(继承自 VisualElement)
IView.InvalidateMeasure()
已过时.

指示此视图的当前度量值不再有效,必须在下一次度量传递期间重新计算。

(继承自 VisualElement)
IView.IsFocused
已过时.

获取一个值,该值指示此视图当前是否聚焦。

(继承自 VisualElement)
IView.Margin
已过时.

边距表示视图与其相邻视图之间的距离。

(继承自 View)
IView.MaximumHeight
已过时.

获取 IView 的指定最大高度约束,介于零和双精度之间。正无穷大。

(继承自 VisualElement)
IView.MaximumWidth
已过时.

获取 IView 的指定最大宽度约束(介于零和双精度之间)。正无穷大。

(继承自 VisualElement)
IView.Measure(Double, Double)
已过时.

汇报视图的大小。

(继承自 VisualElement)
IView.MinimumHeight
已过时.

获取 IView 的指定最小高度约束,介于零和双精度之间。正无穷大。

(继承自 VisualElement)
IView.MinimumWidth
已过时.

获取 IView 的指定最小宽度约束(介于零和双精度之间)。正无穷大。

(继承自 VisualElement)
IView.Semantics
已过时.

向每个视图添加语义,以便进行辅助功能

(继承自 VisualElement)
IView.Shadow
已过时.

在目标视图周围绘制阴影。

(继承自 VisualElement)
IView.VerticalLayoutAlignment
已过时.

确定此元素在容器中排列的垂直方面

(继承自 View)
IView.Visibility
已过时.

获取一个值,该值确定此视图是否应是可视化树的一部分。

(继承自 VisualElement)
IView.Width
已过时.

获取 IView 的指定宽度。

(继承自 VisualElement)
IVisualElementController.EffectiveFlowDirection
已过时.

供 .NET MAUI 内部使用。

(继承自 VisualElement)
IVisualElementController.InvalidateMeasure(InvalidationTrigger)
已过时.

供 .NET MAUI 内部使用。

(继承自 VisualElement)
IVisualTreeElement.GetVisualChildren()
已过时.

获取元素的可视子级的只读列表。

(继承自 Element)
IVisualTreeElement.GetVisualParent()
已过时.

获取元素的视觉对象父级。

(继承自 Element)

扩展方法

AbortAnimation(IAnimatable, String)
已过时.

停止动画。

Animate(IAnimatable, String, Animation, UInt32, UInt32, Easing, Action<Double,Boolean>, Func<Boolean>)
已过时.

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

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<T>(IAnimatable, String, Func<Double,T>, Action<T>, UInt32, UInt32, Easing, Action<T,Boolean>, Func<Boolean>, IAnimationManager)
已过时.

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

AnimateKinetic(IAnimatable, String, Func<Double,Double,Boolean>, Double, Double, Action, IAnimationManager)
已过时.

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

AnimationIsRunning(IAnimatable, String)
已过时.

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

Batch(IAnimatable)
已过时.

显示 OpenGL 内容的 View

GetPropertyIfSet<T>(BindableObject, BindableProperty, T)
已过时.

显示 OpenGL 内容的 View

SetAppTheme<T>(BindableObject, BindableProperty, T, T)
已过时.

显示 OpenGL 内容的 View

SetAppThemeColor(BindableObject, BindableProperty, Color, Color)
已过时.

显示 OpenGL 内容的 View

SetBinding(BindableObject, BindableProperty, String, BindingMode, IValueConverter, String)
已过时.

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

FindByName<T>(Element, String)
已过时.

显示 OpenGL 内容的 View

CancelAnimations(VisualElement)
已过时.

中止元素上的所有动画 (例如 LayoutToTranslateToScaleTo等 ) view

FadeTo(VisualElement, Double, UInt32, Easing)
已过时.

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

LayoutTo(VisualElement, Rect, 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)
已过时.

返回一个任务,该任务轮换VisualElementviewlengtheasing 参数描述的 rotation所指定的 。

RotateXTo(VisualElement, Double, UInt32, Easing)
已过时.

返回一个任务,该任务倾斜 由 rotationview 指定的 的 X 轴VisualElement,需要一段时间length并使用 easing

RotateYTo(VisualElement, Double, UInt32, Easing)
已过时.

返回一个任务,该任务倾斜 由 rotationview 指定的 的 Y 轴VisualElement,需要一段时间length并使用 easing

ScaleTo(VisualElement, Double, UInt32, Easing)
已过时.

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

ScaleXTo(VisualElement, Double, UInt32, Easing)
已过时.

返回一个任务,该任务将 指定的 viewVisualElement X 轴缩放到绝对比例系数 scale

ScaleYTo(VisualElement, Double, UInt32, Easing)
已过时.

返回一个任务,该任务将 指定的 viewVisualElement Y 轴缩放到绝对比例系数 scale

TranslateTo(VisualElement, Double, Double, UInt32, Easing)
已过时.

对元素 TranslationXTranslationY 属性从其当前值到新值进行动画处理。 这可确保输入布局与视觉对象布局处于同一位置。

HasVisualStateGroups(VisualElement)
已过时.

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

CheckHandlers(IView)
已过时.

显示 OpenGL 内容的 View

ComputeDesiredSize(IView, Double, Double)
已过时.

显示 OpenGL 内容的 View

ComputeFrame(IView, Rect)
已过时.

显示 OpenGL 内容的 View

ToHandler(IElement, IMauiContext)
已过时.

显示 OpenGL 内容的 View

ToPlatform(IElement, IMauiContext)
已过时.

显示 OpenGL 内容的 View

ToHandler(IView, IMauiContext)
已过时.

显示 OpenGL 内容的 View

SetSemanticFocus(IView)
已过时.

显示 OpenGL 内容的 View

CaptureAsync(IView)
已过时.

显示 OpenGL 内容的 View

GetVisualElementWindow(IVisualTreeElement)
已过时.

如果元素包含在一个元素中,则获取包含可视化树元素的窗口。

GetVisualTreeDescendants(IVisualTreeElement)
已过时.

获取子代的整个层次结构,作为给定可视树元素的子级列表。

GetVisualTreeElements(IVisualTreeElement, Point)
已过时.

获取基于给定点的可视化树元素的子元素的列表。

GetVisualTreeElements(IVisualTreeElement, Rect)
已过时.

获取基于矩形的可视化树元素子项的列表。

GetVisualTreeElements(IVisualTreeElement, Double, Double)
已过时.

获取基于给定 x、y 点的可视化树元素子级的列表。

GetVisualTreeElements(IVisualTreeElement, Double, Double, Double, Double)
已过时.

获取基于由坐标定义的矩形(以平台单位而不是像素指定的)的可视树元素子级的列表。

适用于