FrameworkContentElement 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
FrameworkContentElement 是 WPF 架構層級實作和 ContentElement 基底類別的擴充。 FrameworkContentElement 新增對其他輸入 API (包括工具提示和操作功能表)、腳本、資料繫結程序的資料內容、樣式,以及邏輯樹狀結構協助程式 API 的支援。
public ref class FrameworkContentElement : System::Windows::ContentElement, System::ComponentModel::ISupportInitialize, System::Windows::IFrameworkInputElement
public ref class FrameworkContentElement : System::Windows::ContentElement, System::ComponentModel::ISupportInitialize, System::Windows::IFrameworkInputElement, System::Windows::Markup::IQueryAmbient
[System.Windows.Markup.RuntimeNameProperty("Name")]
[System.Windows.Markup.XmlLangProperty("Language")]
[System.Windows.StyleTypedProperty(Property="FocusVisualStyle", StyleTargetType=typeof(System.Windows.Controls.Control))]
public class FrameworkContentElement : System.Windows.ContentElement, System.ComponentModel.ISupportInitialize, System.Windows.IFrameworkInputElement
[System.Windows.Markup.RuntimeNameProperty("Name")]
[System.Windows.Markup.XmlLangProperty("Language")]
[System.Windows.StyleTypedProperty(Property="FocusVisualStyle", StyleTargetType=typeof(System.Windows.Controls.Control))]
[System.Windows.Markup.UsableDuringInitialization(true)]
public class FrameworkContentElement : System.Windows.ContentElement, System.ComponentModel.ISupportInitialize, System.Windows.IFrameworkInputElement, System.Windows.Markup.IQueryAmbient
[<System.Windows.Markup.RuntimeNameProperty("Name")>]
[<System.Windows.Markup.XmlLangProperty("Language")>]
[<System.Windows.StyleTypedProperty(Property="FocusVisualStyle", StyleTargetType=typeof(System.Windows.Controls.Control))>]
type FrameworkContentElement = class
inherit ContentElement
interface IFrameworkInputElement
interface IInputElement
interface ISupportInitialize
[<System.Windows.Markup.RuntimeNameProperty("Name")>]
[<System.Windows.Markup.XmlLangProperty("Language")>]
[<System.Windows.StyleTypedProperty(Property="FocusVisualStyle", StyleTargetType=typeof(System.Windows.Controls.Control))>]
[<System.Windows.Markup.UsableDuringInitialization(true)>]
type FrameworkContentElement = class
inherit ContentElement
interface IFrameworkInputElement
interface IInputElement
interface ISupportInitialize
interface IQueryAmbient
[<System.Windows.Markup.RuntimeNameProperty("Name")>]
[<System.Windows.Markup.XmlLangProperty("Language")>]
[<System.Windows.StyleTypedProperty(Property="FocusVisualStyle", StyleTargetType=typeof(System.Windows.Controls.Control))>]
[<System.Windows.Markup.UsableDuringInitialization(true)>]
type FrameworkContentElement = class
inherit ContentElement
interface ISupportInitialize
interface IFrameworkInputElement
interface IInputElement
interface IQueryAmbient
Public Class FrameworkContentElement
Inherits ContentElement
Implements IFrameworkInputElement, ISupportInitialize
Public Class FrameworkContentElement
Inherits ContentElement
Implements IFrameworkInputElement, IQueryAmbient, ISupportInitialize
- 繼承
- 衍生
- 屬性
- 實作
備註
FrameworkContentElement 尚未定義自己的轉譯行為;可以在程式代碼或標記中具現化實際的 FrameworkContentElement 類別實例,但在 WPF 應用程式使用者介面中不會顯示任何專案, (UI) 。 轉譯邏輯必須由類別提供,這些類別會將 FrameworkContentElement 子項目當做其內容模型的一部分,或在衍生類別中 FrameworkContentElement 提供。
FrameworkContentElement 刻意平行處理許多與 FrameworkElement相同的 API。 請注意,找到 FrameworkElement 的特定 API 將不會有 FrameworkContentElement 對等專案。 其中數個 FrameworkElement API 適用於幾何表示法或版面配置等功能,這與無關 FrameworkContentElement。
大部分的現有 FrameworkContentElement 衍生類別都會在 命名空間中找到 System.Windows.Documents 。 其中許多衍生類別會實作流程檔模型的元素。 某些衍生類別,例如 Hyperlink 具有一些類似控件的功能,但衍生自 FrameworkContentElement ,讓類似控件的專案仍可參與流程檔模型。
建構函式
FrameworkContentElement() |
初始化 FrameworkContentElement 類別的新執行個體。 |
欄位
BindingGroupProperty |
識別 BindingGroup 相依性屬性。 |
ContextMenuClosingEvent | |
ContextMenuOpeningEvent | |
ContextMenuProperty |
識別 ContextMenu 相依性屬性。 |
CursorProperty |
識別 Cursor 相依性屬性。 |
DataContextProperty |
識別 DataContext 相依性屬性。 |
DefaultStyleKeyProperty |
識別 DefaultStyleKey 相依性屬性。 |
FocusVisualStyleProperty |
識別 FocusVisualStyle 相依性屬性。 |
ForceCursorProperty |
識別 ForceCursor 相依性屬性。 |
InputScopeProperty |
識別 InputScope 相依性屬性。 |
LanguageProperty |
識別 Language 相依性屬性。 |
LoadedEvent | |
NameProperty |
識別 Name 相依性屬性。 |
OverridesDefaultStyleProperty |
識別 OverridesDefaultStyle 相依性屬性。 |
StyleProperty |
識別 Style 相依性屬性。 |
TagProperty |
識別 Tag 相依性屬性。 |
ToolTipClosingEvent | |
ToolTipOpeningEvent | |
ToolTipProperty |
識別 ToolTip 相依性屬性。 |
UnloadedEvent |
屬性
AllowDrop |
取得或設定值,這個值表示這個項目是否可以作為拖放作業的目標。 (繼承來源 ContentElement) |
AreAnyTouchesCaptured |
取得值,這個值表示是否至少有一個觸控擷取至這個項目。 (繼承來源 ContentElement) |
AreAnyTouchesCapturedWithin |
取得值,這個值表示是否至少有一個觸控擷取至這個項目或其視覺化樹狀結構中的任何子項目。 (繼承來源 ContentElement) |
AreAnyTouchesDirectlyOver |
取得值,這個值表示是否至少有一個觸控在這個項目上按下。 (繼承來源 ContentElement) |
AreAnyTouchesOver |
取得值,這個值表示是否至少有一個觸控在這個項目或其視覺化樹狀結構中的任何子項目上按下。 (繼承來源 ContentElement) |
BindingGroup |
取得或設定用於項目的 BindingGroup。 |
CommandBindings |
取得與這個項目關聯之 CommandBinding 物件的集合。 (繼承來源 ContentElement) |
ContextMenu |
取得或設定每當透過使用者介面要求操作功能表時,應該顯示的快捷功能表專案, (UI) 此元素內。 |
Cursor |
取得或設定滑鼠指標在此元素上方時所顯示的游標。 |
DataContext |
取得或設定項目在參與資料繫結時的資料內容。 |
DefaultStyleKey |
取得或設定索引鍵,以用來在佈景主題中尋找這個控制項的樣式樣板。 |
DependencyObjectType |
DependencyObjectType取得包裝這個實體之 CLR 型別的 。 (繼承來源 DependencyObject) |
Dispatcher |
取得與這個 Dispatcher 關聯的 DispatcherObject。 (繼承來源 DispatcherObject) |
Focusable |
取得或設定元素是否能夠接收焦點的值。 (繼承來源 ContentElement) |
FocusVisualStyle |
取得或設定物件,這個物件可自訂外觀、效果或其他樣式特性,以在這個項目捕捉到鍵盤焦點時套用至此項目。 |
ForceCursor |
取得或設定值,指出這個 FrameworkContentElement 是否應該強制使用者介面 (UI) 轉譯數據指標,如這個實例的 Cursor 屬性所宣告。 |
HasAnimatedProperties |
取得值,指出這個項目是否有任何動畫屬性。 (繼承來源 ContentElement) |
InputBindings |
取得與這個項目關聯的輸入繫結集合。 (繼承來源 ContentElement) |
InputScope |
取得或設定此 FrameworkContentElement 使用的輸入內容。 |
IsEnabled |
取得或設定值,指出使用者介面中是否啟用這個專案, (UI) 。 (繼承來源 ContentElement) |
IsEnabledCore |
取得值,這個值會成為衍生類別中 IsEnabled 的傳回值。 (繼承來源 ContentElement) |
IsFocused |
取得值,決定這個項目是否具有邏輯焦點。 (繼承來源 ContentElement) |
IsInitialized |
取得值,指出這個元素是否已初始化,方法是載入為Extensible Application Markup Language (XAML) ,或明確呼叫其 EndInit() 方法。 |
IsInputMethodEnabled |
取得值,這個值表示是否已啟用輸入法系統,例如輸入法編輯器 (輸入法) ,以便處理這個項目的輸入。 (繼承來源 ContentElement) |
IsKeyboardFocused |
取得值,指出這個項目是否具有鍵盤焦點。 (繼承來源 ContentElement) |
IsKeyboardFocusWithin |
取得值,這個值表示鍵盤焦點是否在項目內或子項目內的任意處。 (繼承來源 ContentElement) |
IsLoaded |
取得值,這個值表示此項目是否已載入以供展示。 |
IsMouseCaptured |
取得值,這個值表示滑鼠是否由這個項目所捕捉。 (繼承來源 ContentElement) |
IsMouseCaptureWithin |
取得值,決定滑鼠捕捉是否由這個項目或其項目樹狀結構中的子項目所保留。 (繼承來源 ContentElement) |
IsMouseDirectlyOver |
取得值,指出滑鼠指標位置是否與點擊測試結果對應,該結果會將複合項目納入考量。 (繼承來源 ContentElement) |
IsMouseOver |
取得值,這個值表示滑鼠指標是否位於這個項目上方 (包括視覺子項目或其複合控制項)。 (繼承來源 ContentElement) |
IsSealed |
取得值,這個值表示此執行個體目前是否已密封 (唯讀)。 (繼承來源 DependencyObject) |
IsStylusCaptured |
取得值,指出是否將手寫筆擷取至這個項目。 (繼承來源 ContentElement) |
IsStylusCaptureWithin |
取得值,這個值決定手寫筆捕捉是否由這個項目 (包括子項目和複合控制項) 保有。 (繼承來源 ContentElement) |
IsStylusDirectlyOver |
取得值,指出手寫筆位置是否與點擊測試結果相對應,該結果會將複合項目納入考量。 (繼承來源 ContentElement) |
IsStylusOver |
取得值,這個值表示手寫筆是否位於這個項目上方 (包括視覺化子項目)。 (繼承來源 ContentElement) |
Language |
取得或設定套用至個別項目的當地語系化/全球化語言資訊。 |
LogicalChildren |
為此項目的邏輯子項目取得列舉值。 |
Name |
取得或設定項目的識別名稱。 名稱會提供實例參考,讓程式代碼後置,例如事件處理程式程式代碼,可以在 XAML 剖析期間建構元素之後參考元素。 |
OverridesDefaultStyle |
取得或設定值,這個值表示此項目是否會併入佈景主題樣式中的樣式屬性。 |
Parent |
取得此項目之邏輯樹狀中的父代。 |
Resources |
取得或設定目前本機定義的資源字典。 |
Style |
取得或設定這個項目要使用的樣式。 |
Tag |
取得或設定可以用來儲存關於此元素自訂資訊的任意物件值。 |
TemplatedParent |
取得這個項目的範本父代參考。 若此項目不是透過範本建立,則這個屬性不相關。 |
ToolTip |
取得或設定使用者介面中顯示此元素的工具提示物件, (UI) 。 |
TouchesCaptured |
取得已擷取至這個項目的所有觸控裝置。 (繼承來源 ContentElement) |
TouchesCapturedWithin |
取得已擷取至這個項目或其視覺化樹狀結構中之任何子項目的所有觸控裝置。 (繼承來源 ContentElement) |
TouchesDirectlyOver |
取得在這個項目上停留的所有觸控裝置。 (繼承來源 ContentElement) |
TouchesOver |
取得在這個項目或其視覺化樹狀結構中之任何子項目上停留的所有觸控裝置。 (繼承來源 ContentElement) |
方法
事件
明確介面實作
IQueryAmbient.IsAmbientPropertyAvailable(String) |
如需這個成員的描述,請參閱 IsAmbientPropertyAvailable(String) 方法。 |
適用於
另請參閱
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應