共用方式為


DataContextValueSourceAttribute.AncestorPath 屬性

取得屬性路徑,表示要周遊到達資料內容屬性的上階屬性集。

命名空間:  Microsoft.Windows.Design
組件:  Microsoft.Windows.Design.Interaction (在 Microsoft.Windows.Design.Interaction.dll 中)

語法

'宣告
Public Property AncestorPath As String
    Get
    Private Set
public string AncestorPath { get; private set; }
public:
property String^ AncestorPath {
    String^ get ();
    private: void set (String^ value);
}
member AncestorPath : string with get, private set
function get AncestorPath () : String
private function set AncestorPath (value : String)

屬性值

型別:System.String
資料內容屬性的路徑。

備註

如需詳細資訊,請參閱DataContextValueSourceAttribute

.NET Framework 安全性

請參閱

參考

DataContextValueSourceAttribute 類別

Microsoft.Windows.Design 命名空間

其他資源

了解 WPF 設計工具擴充性