Share via


IContentView 介面

定義

包含另一個檢視的檢視。

public interface class IContentView : Microsoft::Maui::IPadding, Microsoft::Maui::IView
public interface class IContentView : Microsoft::Maui::ICrossPlatformLayout, Microsoft::Maui::IPadding, Microsoft::Maui::IView
public interface IContentView : Microsoft.Maui.IPadding, Microsoft.Maui.IView
public interface IContentView : Microsoft.Maui.ICrossPlatformLayout, Microsoft.Maui.IPadding, Microsoft.Maui.IView
type IContentView = interface
    interface IView
    interface IElement
    interface ITransform
    interface IPadding
type IContentView = interface
    interface IView
    interface IElement
    interface ITransform
    interface IPadding
    interface ICrossPlatformLayout
Public Interface IContentView
Implements IPadding, IView
Public Interface IContentView
Implements ICrossPlatformLayout, IPadding, IView
衍生
實作

屬性

AnchorX

取得相對於專案界限之任何轉換之中心點的 X 元件。

(繼承來源 ITransform)
AnchorY

取得相對於專案界限的任何轉換中心點的 Y 元件。

(繼承來源 ITransform)
AutomationId

自動化工具用來與此檢視互動的標識碼

(繼承來源 IView)
Background

取得繪製,此繪圖會填滿檢視的背景。

(繼承來源 IView)
Clip

取得用來定義檢視內容大綱的路徑。

(繼承來源 IView)
Content

取得這個檢視的原始內容。

DesiredSize

取得這個檢視目前的所需大小。

(繼承來源 IView)
FlowDirection

眼睛掃描UI元素的方向

(繼承來源 IView)
Frame

取得檢視在其容器內的界限。

(繼承來源 IView)
Handler

取得或設定檢視的檢視處理程式。

(繼承來源 IView)
Height

取得 IView 的指定高度。

(繼承來源 IView)
HorizontalLayoutAlignment

決定此元素在容器中的排列水平層面

(繼承來源 IView)
InputTransparent

取得值,指出這個元素是否應該涉及用戶互動週期。

(繼承來源 IView)
IsEnabled

取得值,指出是否在使用者介面中啟用此檢視。

(繼承來源 IView)
IsFocused

取得值,指出此檢視目前是否為焦點。

(繼承來源 IView)
Margin

Margin 代表檢視與其相鄰檢視之間的距離。

(繼承來源 IView)
MaximumHeight

取得 IView 的指定最大高度條件約束,介於零到雙精度浮點數之間。PositiveInfinity。

(繼承來源 IView)
MaximumWidth

取得 IView 的指定最大寬度條件約束,介於零到雙精度浮點數之間。PositiveInfinity。

(繼承來源 IView)
MinimumHeight

取得 IView 的指定最小高度條件約束,介於零到雙精度浮點數之間。PositiveInfinity。

(繼承來源 IView)
MinimumWidth

取得 IView 的指定最小寬度條件約束,介於零到雙精度浮點之間。PositiveInfinity。

(繼承來源 IView)
Opacity

取得轉譯時套用至檢視的不透明度值。

(繼承來源 IView)
Padding

控制件外部邊緣與其內容之間的空間。

(繼承來源 IPadding)
Parent

取得專案的父代。

(繼承來源 IElement)
PresentedContent

取得此檢視的內容,因為它將在使用者介面中呈現,包括任何轉換或套用的範本。

Rotation

取得轉譯專案時,Z 軸 (旋轉) ) 度 (旋轉。

(繼承來源 ITransform)
RotationX

取得轉譯專案時,X 軸 (旋轉角度) ) 度 (。

(繼承來源 ITransform)
RotationY

取得轉譯專案時,Y 軸 (旋轉角度) ) 度 (。

(繼承來源 ITransform)
Scale

取得套用至元素的縮放比例。

(繼承來源 ITransform)
ScaleX

取得套用至 元素之 X 軸因數的相關刻度。

(繼承來源 ITransform)
ScaleY

取得套用至元素之 Y 軸因數的相關刻度。

(繼承來源 ITransform)
Semantics

將語意新增至每個檢視以進行輔助功能

(繼承來源 IView)
Shadow

在目標檢視周圍繪製陰影。

(繼承來源 IView)
TranslationX

取得專案的 X 轉譯差異。

(繼承來源 ITransform)
TranslationY

取得專案的 Y 轉譯差異。

(繼承來源 ITransform)
VerticalLayoutAlignment

決定此元素排列在容器中的垂直層面

(繼承來源 IView)
Visibility

取得值,判斷這個檢視是否應該是可視化樹狀結構的一部分。

(繼承來源 IView)
Width

取得 IView 的指定寬度。

(繼承來源 IView)
ZIndex

決定 ILayout 中這個 IView 的繪製順序;較高的 z 索引會繪製在較低的 z 索引上。

(繼承來源 IView)

方法

Arrange(Rect)

放置子專案,並決定元素的大小。

(繼承來源 IView)
CrossPlatformArrange(Rect)

提供這個介面方法,以便與舊版回溯相容性。 實作類別應該實作 ICrossPlatformLayout 介面,而不是直接實作此方法。

CrossPlatformMeasure(Double, Double)

提供這個介面方法,以便與舊版回溯相容性。 實作類別應該實作 ICrossPlatformLayout 介面,而不是直接實作此方法。

Focus()

嘗試將焦點設定為此檢視。

(繼承來源 IView)
InvalidateArrange()

呼叫以使這個檢視版面配置失效的方法。

(繼承來源 IView)
InvalidateMeasure()

表示此檢視的目前量值不再有效,且必須在下一個量值階段期間重新計算。

(繼承來源 IView)
Measure(Double, Double)

匯報 檢視的大小。

(繼承來源 IView)
Unfocus()

取消設定此檢視的焦點。

(繼承來源 IView)

明確介面實作

ICrossPlatformLayout.CrossPlatformArrange(Rect)

包含另一個檢視的檢視。

ICrossPlatformLayout.CrossPlatformMeasure(Double, Double)

包含另一個檢視的檢視。

擴充方法

CheckHandlers(IView)

包含另一個檢視的檢視。

ArrangeContent(IContentView, Rect)

包含另一個檢視的檢視。

ArrangeContentUnbounded(IContentView, Rect)

排列可能超過 IContentView 界限的內容。

ComputeDesiredSize(IView, Double, Double)

包含另一個檢視的檢視。

ComputeFrame(IView, Rect)

包含另一個檢視的檢視。

MeasureContent(IContentView, Thickness, Double, Double)

包含另一個檢視的檢視。

MeasureContent(IContentView, Double, Double)

包含另一個檢視的檢視。

ToHandler(IElement, IMauiContext)

包含另一個檢視的檢視。

ToPlatform(IElement, IMauiContext)

包含另一個檢視的檢視。

ToHandler(IView, IMauiContext)

包含另一個檢視的檢視。

SetSemanticFocus(IView)

包含另一個檢視的檢視。

CaptureAsync(IView)

包含另一個檢視的檢視。

適用於