xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="" Height="300" Width="300">
AutoReverse="True" RepeatBehavior="Forever" />
//File:Window.xaml.vb
Imports System
Imports System.Windows
Imports System.Windows.Controls
Imports System.Windows.Media.Animation
Namespace WpfApplication1
Public Partial Class Window1
Inherits Window
Private opacityClock As AnimationClock
Private widthClock As AnimationClock
Public Sub New()
InitializeComponent()
End Sub
Private Sub MyClick(sender As Object, e As RoutedEventArgs)
Dim button2 As Button = TryCast(sender, Button)
button2.BeginAnimation(Button.WidthProperty, Nothing)
button2.BeginAnimation(Button.OpacityProperty, Nothing)
End Sub
End Class
End Namespace