Hello am using the Xamcontext menu with a horizontal itempanel template.
Insted of the menu suddenly appearing, i want to animate the Width and make it slide out.
I allready have the default style imported in my project
how do i mangage this?
Hello Fredrik,
Thank you for your post. I have been looking into it and I created a sample project for you with the functionality you want. Basically I copied the default Style of the XamContextMenu and add animations to the Border inside its Template. Please let me know if this helps you or you need further assistance on this matter.
Looking forward for your reply.
Hello your answer calls for functions only available to wpf.
such as triggers on the controlTemplate.
my problem is for silverlight.
could you please adapt your answer to a silverlight project
I modified the sample, so now it is a Silverlight application. This time I put the Storyboard in the ContextMenu’s Resources and handled the Opened event in order to run the animation. Please let me know if this helps you or you need further assistance on this matter.
Hello, my project is based on mvvm, and i dont want to deviate now and start using code behind to handle event
insted of using click events, isnt it possible to acheive the same thing with visualstates on the xamcontextmeny style?
or is there something else that is more mvvm friendly
Currently there aren't any VisualStates defined in the XamContextMenu class and this is why I suggested you using StoryBoards and log a Product Idea for the states you want.
dont really have time to wait for that. strange that it isnt any options to animate the menu properly.
what if i am to animate it during mouseover?, is that possible atleast
After looking into this and doing some research, "Opened" visual state for the XamContextMenu has been determined to be a new product idea. You can suggest new product ideas for future versions (or vote for existing ones) at <http://ideas.infragistics.com>.
There are many benefits to submitting an product idea:
- Direct communication with our product management team regarding your product idea.
- Notifications whenever new information regarding your idea becomes available.
- Ability to vote on your favorite product ideas to let us know which ones are the most important to you. You will have ten votes for this and can change which ideas you are voting for at any time.
- Allow you to shape the future of our products by requesting new controls and products altogether.
- You and other developers can discuss existing product ideas with members of our Product Management team.
Steps to create your idea:
The Product Idea site puts you in the driver’s seat and allows you to track the progress of your ideas at any time, see how many votes it got, read comments from other developers in the community, and see if someone from the product team has additional questions for you.