how to resize border slowly slowly not suddenly
I want open and close the border and its contents with animation.
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Priya LingePosted Aug 17, 2011, 8:11 AM
Hi,
I have following code for border animation.
MainPage.Xaml :
Here DoubleAnimation Storyboard.TargetName="bTest",bTest is the name of Border.
Mainpage.Xaml.cs :
public MainPage()
{
InitializeComponent();
this.Loaded += new RoutedEventHandler(MainPage_Loaded);
}
//Start animation on load event of page
void MainPage_Loaded(object sender, RoutedEventArgs e)
{
//borsoryboard is the name StoryBoard which is used for animating the border.
this.borsoryboard.Begin();
}
Thanks.
Mohammad ImranPosted Aug 17, 2011, 7:12 AM
Priya LingePosted Aug 17, 2011, 6:57 AM
I have given you the code for the border animation. Did you check that code.
Was useful or not?
Kindly reply
Thanks.