ToolTipService.GetInitialShowDelay(DependencyObject) Metoda

Definicja

Pobiera wartość dołączonej InitialShowDelay właściwości dla obiektu.

public:
 static int GetInitialShowDelay(System::Windows::DependencyObject ^ element);
[System.Windows.AttachedPropertyBrowsableForType(typeof(System.Windows.DependencyObject))]
public static int GetInitialShowDelay (System.Windows.DependencyObject element);
[<System.Windows.AttachedPropertyBrowsableForType(typeof(System.Windows.DependencyObject))>]
static member GetInitialShowDelay : System.Windows.DependencyObject -> int
Public Shared Function GetInitialShowDelay (element As DependencyObject) As Integer

Parametry

element
DependencyObject

Obiekt, z którego jest odczytywana wartość właściwości.

Zwraca

Int32

Wartość właściwości obiektu InitialShowDelay .

Atrybuty

Przykłady

W poniższym przykładzie pokazano, jak uzyskać wartość dołączonej ToolTipService.InitialShowDelay właściwości. Metoda FindName znajduje obiekt o nazwie ellipse2, który jest .Ellipse

myInt = ToolTipService.GetInitialShowDelay(
             (DependencyObject)FindName("ellipse2"));
myInt = ToolTipService.GetInitialShowDelay(CType(FindName("ellipse2"), DependencyObject))

Dotyczy

Zobacz też