DependencyObjectType.FromSystemType(Type) Method

Definition

Retorna um DependencyObjectType que representa determinado tipo (CLRCLR) do sistema.Returns a DependencyObjectType that represents a given system (CLRCLR) type.

public:
 static System::Windows::DependencyObjectType ^ FromSystemType(Type ^ systemType);
public static System.Windows.DependencyObjectType FromSystemType (Type systemType);
static member FromSystemType : Type -> System.Windows.DependencyObjectType
Public Shared Function FromSystemType (systemType As Type) As DependencyObjectType

Parameters

systemType
Type

O tipo (CLRCLR) do sistema a ser convertido.The system (CLRCLR) type to convert.

Returns

DependencyObjectType

Um DependencyObjectType que representa o tipo (CLRCLR) do sistema.A DependencyObjectType that represents the system (CLRCLR) type.

Examples

O exemplo a seguir chama FromSystemType, criando uma DependencyObjectType com base no tipo da classe Window.The following example calls FromSystemType , creating a DependencyObjectType based on the type of the Window class.

DependencyObjectType dt =
    DependencyObjectType.FromSystemType(typeof(Window));
Dim dt As DependencyObjectType = DependencyObjectType.FromSystemType(GetType(Window))

Remarks

Cada DependencyObject mantém uma propriedade DependencyObjectType que retorna uma DependencyObjectType, mas isso requer ter uma instância de DependencyObject específica.Each DependencyObject maintains a DependencyObjectType property that returns a DependencyObjectType, but this requires having a particular DependencyObject instance. Você pode usar esse método de utilitário estático se ainda não tiver uma instância do DependencyObject e exigir uma DependencyObjectType.You can use this static utility method if you do not yet have a DependencyObject instance and require a DependencyObjectType.

Applies to