FrameworkTemplate.RegisterName(String, Object) 方法

定義

將新的「名稱/物件」組註冊到目前的名稱範圍中。

public:
 virtual void RegisterName(System::String ^ name, System::Object ^ scopedElement);
public void RegisterName (string name, object scopedElement);
abstract member RegisterName : string * obj -> unit
override this.RegisterName : string * obj -> unit
Public Sub RegisterName (name As String, scopedElement As Object)

參數

name
String

要註冊的名稱。

scopedElement
Object

要對應至所提供名稱的物件。

實作

備註

For more information, see "XAML Namescopes in Styles and Templates" in WPF XAML Namescopes.

適用於