XAML Menu Throbbing! (Answers to Questions)

I recieved some answers to my questions 🙂 They were quite helpful, so I will document them here just incase they ever help anyone :).1) In the control template you can use RoutedEvents to start and stop a time line. (I don’t know how I missed this). You can also use them inside DataTemplates as well.<ControlTemplate.Triggers><EventTrigger RoutedEvent=”Mouse.MouseEnter”><EventTrigger.Actions><BeginAction TargetName=”Timeline”><StopAction TargetName=”Timeline2″><EventTrigger.Actions></EventTrigger></ControlTemplate.Triggers>These triggers are able to be placed inside a style. (link at the bottom to my example)2) Again my mistake, I remember a error I got against the xsd saying TargetName needs to be present, but I must have been mistaken or it could have been another XAML Element that requires it.

<p>I recieved some answers to my questions 🙂 They were quite helpful, so I will document them here just incase they ever help anyone :).<p />1) In the control template you can use RoutedEvents to start and stop a time line. (I don't know how I missed this). You can also use them inside DataTemplates as well.<ControlTemplate.Triggers><EventTrigger RoutedEvent="Mouse.MouseEnter"><EventTrigger.Actions><BeginAction TargetName="Timeline"><StopAction TargetName="Timeline2"><EventTrigger.Actions></EventTrigger></ControlTemplate.Triggers><p />These triggers are able to be placed inside a style. (link at the bottom to my example)<p />2) Again my mistake, I remember a error I got against the xsd saying TargetName needs to be present, but I must have been mistaken or it could have been another <a href="http://technorati.com/tag/XAML" rel="tag">XAML</a> Element that requires it. Anyway, the following is complety valid and can be used to apply against any control. <p />One thing I have learnt by pure experiment is that you can have storyboards inside a ControlTemplate/DataTemplate. This means that any control that meets the TargetType criteria in the style header can access the storyboard associated with it. For my example I have attached a storyboard that will be available to all MenuItems.<p />3) No answer yet butI presume it will be a while before all the documentation catches up to the implementation.<p />Anyway here is my wobbly menu example:<ul><li><a href="http://www.kinlan.co.uk/source_samples/CheesyWobblymenu.xaml">CheesyWobblymenu.xaml</a></li></ul></p>
<p></p>
<p />


Print Share Comment Cite Upload Translate
APA
Paul Kinlan | Sciencx (2024-03-29T10:29:47+00:00) » XAML Menu Throbbing! (Answers to Questions). Retrieved from https://www.scien.cx/2005/06/06/xaml-menu-throbbing-answers-to-questions/.
MLA
" » XAML Menu Throbbing! (Answers to Questions)." Paul Kinlan | Sciencx - Monday June 6, 2005, https://www.scien.cx/2005/06/06/xaml-menu-throbbing-answers-to-questions/
HARVARD
Paul Kinlan | Sciencx Monday June 6, 2005 » XAML Menu Throbbing! (Answers to Questions)., viewed 2024-03-29T10:29:47+00:00,<https://www.scien.cx/2005/06/06/xaml-menu-throbbing-answers-to-questions/>
VANCOUVER
Paul Kinlan | Sciencx - » XAML Menu Throbbing! (Answers to Questions). [Internet]. [Accessed 2024-03-29T10:29:47+00:00]. Available from: https://www.scien.cx/2005/06/06/xaml-menu-throbbing-answers-to-questions/
CHICAGO
" » XAML Menu Throbbing! (Answers to Questions)." Paul Kinlan | Sciencx - Accessed 2024-03-29T10:29:47+00:00. https://www.scien.cx/2005/06/06/xaml-menu-throbbing-answers-to-questions/
IEEE
" » XAML Menu Throbbing! (Answers to Questions)." Paul Kinlan | Sciencx [Online]. Available: https://www.scien.cx/2005/06/06/xaml-menu-throbbing-answers-to-questions/. [Accessed: 2024-03-29T10:29:47+00:00]
rf:citation
» XAML Menu Throbbing! (Answers to Questions) | Paul Kinlan | Sciencx | https://www.scien.cx/2005/06/06/xaml-menu-throbbing-answers-to-questions/ | 2024-03-29T10:29:47+00:00
https://github.com/addpipe/simple-recorderjs-demo