Enter WPF control template

WPF not only supports the user interface and user experience design of traditional Windows Forms programming, but also supports professional design with special Blend. At the same time, WPF also launched a new generation of design concept with template as the core. In WPF, the "content" and "form" of data and algorithm are d ...

Posted by pgosse on Wed, 10 Nov 2021 07:34:28 -0800

[WPF] make a rainbow button

Continue to play with rainbow text. This time, use linear gradient brush and make it into a button. Although it has no technical content, it is somewhat practical. Is this a return to nature. First, let's recall LinearGradientBrush Usage of. LinearGradientBrush represents the brush of linear gradient, and its StartPoint and EndPoint represent t ...

Posted by ddrudik on Mon, 08 Nov 2021 20:17:57 -0800

Resources into WPF

WPF supports not only traditional program level resources, but also unique object level resources. Each interface element can have its own resources and be shared by child elements. With some simple examples, this paper briefly describes the relevant usage of resources in WPF, which is only for learning and sharing. If there are deficiencies, p ...

Posted by Anarking on Sun, 31 Oct 2021 07:18:18 -0700

Delegates and events in C #

introduction Delegates and events are widely used in the. Net Framework. However, a better understanding of delegates and events is not easy for many people who have not been in contact C# for a long time. They are like a threshold. People who pass this threshold feel it's too easy. People without the past feel uneasy and uncomfortable every t ...

Posted by duke on Mon, 20 Sep 2021 12:27:01 -0700