How to resize border slowly slowly not suddenly
I want open and close the border and its contents with animation.
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Priya LingeRank #785 · 2.9K reputationPosted Aug 17, 2011, 2:57 AM EDT
I have given you the code for the border animation. Did you check that code.
Was useful or not?
Kindly reply
Thanks.
Mohammad Imran155 reputationPosted Aug 17, 2011, 3:12 AM EDT
Priya LingeRank #785 · 2.9K reputationPosted Aug 17, 2011, 4:11 AM EDT
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.