本文整理匯總了VB.NET中System.Windows.Controls.ToolTip.Closed事件的典型用法代碼示例。如果您正苦於以下問題:VB.NET ToolTip.Closed事件的具體用法?VB.NET ToolTip.Closed怎麽用?VB.NET ToolTip.Closed使用的例子?那麽, 這裏精選的事件代碼示例或許可以為您提供幫助。您也可以進一步了解該事件所在類System.Windows.Controls.ToolTip
的用法示例。
在下文中一共展示了ToolTip.Closed事件的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的VB.NET代碼示例。
示例1: whenToolTipOpens
Private Sub whenToolTipOpens(ByVal sender As Object, ByVal e As RoutedEventArgs)
Dim ell As New Ellipse()
If sender.GetType().FullName.Equals("System.Windows.Shapes.Ellipse") Then
ell = CType(sender, Ellipse)
ell.Fill = Brushes.Blue
ElseIf sender.GetType().FullName.Equals("System.Windows.Controls.ToolTip") Then
Dim t As ToolTip = CType(sender, ToolTip)
Dim p As Popup = CType(t.Parent, Popup)
ell = CType(p.PlacementTarget, Ellipse)
ell.Fill = Brushes.Blue
End If
End Sub
Private Sub whenToolTipCloses(ByVal sender As Object, ByVal e As RoutedEventArgs)
Dim ell As New Ellipse()
If sender.GetType().FullName.Equals("System.Windows.Shapes.Ellipse") Then
ell = CType(sender, Ellipse)
ell.Fill = Brushes.Gray
ElseIf sender.GetType().FullName.Equals("System.Windows.Controls.ToolTip") Then
Dim t As ToolTip = CType(sender, ToolTip)
Dim p As Popup = CType(t.Parent, Popup)
ell = CType(p.PlacementTarget, Ellipse)
ell.Fill = Brushes.Gray
End If
End Sub