Create a Treeview control for the crystal animation effect in WPF

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.