<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. Anyway, the following is complety valid and can be used to apply against any control. 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.3) No answer yet butI presume it will be a while before all the documentation catches up to the implementation.Anyway here is my wobbly menu example:
Technorati Tags |
xaml [feed], amazon [feed], windows api [feed], markup language [feed], wpf [feed], C# [feed], Chris sells [feed], Layout [feed] |
Related Wikipedia Documents |
Windows Vista, XAML, User interface markup language, Windows Presentation Foundation, Windows API, Windows Presentation Foundation, Cairo (graphics), Anders Hejlsberg, Wikipedia: Layout engine |
Related Amazon Books |
Windows API Bible: (UK)/(USA), Windows Forms Programming in C#: (UK)/(USA), Programming Windows Presentation Foundation: (UK)/(USA), Essential .Net Volume 1: (UK)/(USA), Mastering Visual Studio.NET: (UK)/(USA) |
Related Images |