formHint.xaml.vb 1.0 KB

1234567891011121314151617181920212223242526
  1. Public Class formHint
  2. Private Sub formHint_Loaded(ByVal sender As Object, ByVal e As System.Windows.RoutedEventArgs) Handles Me.Loaded
  3. Me.Height = panStack.ActualHeight
  4. Me.Width = panStack.ActualWidth
  5. Me.Top = My.Computer.Screen.WorkingArea.Height - Me.Height - 50
  6. Me.Left = My.Computer.Screen.WorkingArea.Width - Me.Width
  7. panBack.Width = Me.Width
  8. SetLeft(panBack, Me.Width)
  9. Me.Name = "frmHint" & GetUUID()
  10. AniStart({
  11. AaOpacity(Me, 1, 100),
  12. AaX(panBack, -Me.Width, 300, Ease:=New AniEaseEnd),
  13. AaX(panBack, Me.Width, 300, 3000, New AniEaseStart),
  14. AaCode({"Close", Me}, , True)
  15. }, Me.Name)
  16. End Sub
  17. Private Sub formHint_MouseUp(ByVal sender As Object, ByVal e As System.Windows.Input.MouseButtonEventArgs) Handles Me.MouseUp
  18. Me.IsEnabled = False
  19. AniStart({
  20. AaOpacity(Me, -1, 150),
  21. AaCode({"Close", Me}, , True)
  22. }, Me.Name & "Close")
  23. End Sub
  24. End Class