I’ve seen a sample WPF program that I cannot find. In this sample when I click a button another button starts growing and shrinking. Mean while I can do other stuff with the form. How do I do this?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Below you will find a very simple example of a button height\width growing when the button is clicked and shrinking back when the mouse leaves the control. Animation in WPF is done by using StoryBoards. Storyboards are typically found in EventTriggers and can be saved in the resouces of the control,window, page, or application. Below is the sample along with some resources:
References:
http://msdn.microsoft.com/en-us/library/ms742868.aspx
http://windowsclient.net/learn/