DoubleAnimation
Panal
this.RegisterName(LeftPanel.Name, LeftPanel); DoubleAnimation dbani = new DoubleAnimation(); dbani.From = 24; dbani.To = 240; dbani.Duration = new Duration(TimeSpan.FromSeconds(1)); Storyboard.SetTargetName(dbani, LeftPanel.Name); Storyboard.SetTargetProperty(dbani, new PropertyPath(Border.WidthProperty)); Storyboard myWidthAnimatedButtonStoryboard = new Storyboard(); myWidthAnimatedButtonStoryboard.Children.Add(dbani); myWidthAnimatedButtonStoryboard.Begin(LeftPanel); LeftPanel.width=216;
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)