Navigation menus such as Treeview are often used in software development. How can we make our menus more visual and Dynamic? WPF can help us easily implement them, next I will use blend to create a Treeview animation effect resource.
First, create a Treeview in the blend Control List, create a multi-layer treeviewitem based on our needs, and then create a treeviewitem template to add the style we want.
In the treeviewitem template, set the background gradient, the light-emitting layer (the light-emitting effect when the mouse triggers), and the text layer for the treeviewitem.
Create a new timeline, and set an animation frame for the background color, Glow layer, and text layer ()
We open the time property panel, set the mouse over and selected attributes of the treeviewitem, and add the created
Timeline animation.
Press F5 to preview the effect. The Treeview menu of a crystal animation is complete.