ISemanticZoomInformation 介面
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
傳達視圖作為語義縮放(SemanticZoom)兩種可能視圖之一(ZoomedOutView 或 ZoomedInView)所需的資訊。
public interface class ISemanticZoomInformation
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.UI.Xaml.WinUIContract, 65536)]
/// [Windows.Foundation.Metadata.Guid(316025604, 47891, 20722, 157, 139, 229, 124, 2, 180, 189, 228)]
struct ISemanticZoomInformation
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.UI.Xaml.WinUIContract), 65536)]
[Windows.Foundation.Metadata.Guid(316025604, 47891, 20722, 157, 139, 229, 124, 2, 180, 189, 228)]
public interface ISemanticZoomInformation
Public Interface ISemanticZoomInformation
- 衍生
- 屬性
備註
ISemanticZoomInformation 介面提供 SemanticZoom 控制項的單一視圖資訊。 不過,它並沒有提供同步 SemanticZoom 兩個視圖的資訊。 ZoomedInView 與 ZoomedOutView 應該同步,因此如果使用者在 ZoomedOutView 中選擇群組,該群組的詳細資訊會顯示在 ZoomedInView 中。 您可以使用 CollectionViewSource 或新增程式碼來同步檢視。 任何綁定到同一個 CollectionViewSource 的控制項,目前的項目都會是相同的。 如果兩個視圖都使用相同的 CollectionViewSource 作為資料來源, CollectionViewSource 會自動同步這些視圖。 否則,你可以處理 SemanticZoom.ViewChangeStarted 事件,並在事件處理器中同步這些項目。 更多資訊請參閱 SemanticZoom 。
屬性
| 名稱 | Description |
|---|---|
| IsActiveView |
取得或設定一個值,指示實作視圖是否為主動視圖。 |
| IsZoomedInView |
取得或設定一個值,指示實作視圖是否是語意上更完整的放大視圖。 |
| SemanticZoomOwner |
取得或設定 SemanticZoom 擁有者,該擁有者會承載實作視圖。 |
方法
| 名稱 | Description |
|---|---|
| CompleteViewChange() |
當 SemanticZoom 的整體視圖改變時,會改變與呈現相關的面向(例如捲動的 UI 或狀態)。 |
| CompleteViewChangeFrom(SemanticZoomLocation, SemanticZoomLocation) |
當實作視圖為原始視圖,新視圖為可能不同的實作視圖時,完成與視圖變更相關的項目操作。 |
| CompleteViewChangeTo(SemanticZoomLocation, SemanticZoomLocation) |
當實作視圖為目的視圖,而來源視圖可能為不同的實作視圖時,完成與視圖變更相關的項目操作。 |
| InitializeViewChange() |
當 SemanticZoom 的整體檢視即將變更時,初始化呈現相關層面的變更(例如卷動 UI 或狀態)。 |
| MakeVisible(SemanticZoomLocation) |
強制檢視中的內容捲動,直到 SemanticZoomLocation 指定的項目可見為止。 如果找到該物品,也要專注該物品。 |
| StartViewChangeFrom(SemanticZoomLocation, SemanticZoomLocation) |
當實作視圖為原始視圖,待處理的目的視圖為可能不同的實作視圖時,初始化與視圖變更相關的項目操作。 |
| StartViewChangeTo(SemanticZoomLocation, SemanticZoomLocation) |
當來源視圖為不同視圖且待處理的目的視圖為實作視圖時,初始化與視圖變更相關的項目操作。 |