Share via


ToolTipService.SetShowDuration(DependencyObject, Int32) Método

Definição

Define o valor da propriedade anexada ShowDuration de um objeto.

public:
 static void SetShowDuration(System::Windows::DependencyObject ^ element, int value);
public static void SetShowDuration (System.Windows.DependencyObject element, int value);
static member SetShowDuration : System.Windows.DependencyObject * int -> unit
Public Shared Sub SetShowDuration (element As DependencyObject, value As Integer)

Parâmetros

element
DependencyObject

O objeto no qual a propriedade anexada é gravada.

value
Int32

O valor a ser definido.

Exemplos

O exemplo a seguir mostra como definir o valor para a ToolTipService.ShowDuration propriedade anexada.

ToolTipService.SetShowDuration(ellipse1, 7000);
ToolTipService.SetShowDuration(ellipse1, 7000)

Aplica-se a

Confira também