Routing events, mouse and keyboard input

  Routing events Routing events use one of the following three routing strategies: Buoyancy (bubbling):   Call the event handler on the event source. Routing events are then routed to subsequent parent elements until they reach the root of the element tree. Most routing events use a floating routing strategy. Floating route events a ...

Posted by theda on Fri, 03 Dec 2021 19:16:36 -0800

Python learning notes - Tkinter_ 04 entry (single line input box)

1, Properties of the Entry field   About verification details reference resources: https://blog.csdn.net/qq_41556318/article/details/85108328 Because I have checked a lot of materials, many of them are not explained clearly here, so they are listed separately and explained in detail. The Entry component supports the verification of the l ...

Posted by RobinTibbs on Fri, 03 Dec 2021 00:52:16 -0800

WPF_12_ Control template

Templates and styles complement each other, allowing users to redesign controls. To redesign the control, we must first understand the logical tree and visual tree of the control. WPF provides two classes for browsing logical trees and Visual Trees: System.Windows.LogicalTreeHelper System.Windows.Media.VisualTreeHelper The LogicalTreeHelper c ...

Posted by darklexus2k9 on Thu, 02 Dec 2021 19:25:28 -0800

WPF tutorial: dependency properties

1, What are dependent properties A dependent property is a property that has no value and can obtain values from other data sources through binding. Dependent properties can support style setting, data binding, inheritance, animation and default values in WPF. Setting all properties as dependent properties is not always the correct solution, d ...

Posted by ekalath on Wed, 01 Dec 2021 15:22:57 -0800

Usage record of Wpf UI framework MaterialDesign

Recently, the company has desktop client development requirements and has certain requirements for style and interface feedback. After comparing various open source UI frameworks, it is confirmed to use MaterialDesign. 1. Introduce the framework MaterialDesignThemes. Note the corresponding version number. I use 2.6.0. The reason is this version ...

Posted by leetee on Wed, 01 Dec 2021 13:02:59 -0800

WPF dynamic transform (RenderTransform and LayoutTransform)

Layout system WPF provides two transformation methods, LayoutTransform and RenderTransform. Literally, LayoutTransform is a layout transform, while RenderTransform is a rendering transform. In WPF, many drawing tasks can be made easier by using transform - an object that changes the way the shape or element is drawn by switching the coordinat ...

Posted by sunnyk on Wed, 01 Dec 2021 02:12:52 -0800

The secret of rotating strings

      Recently, Zhang children's shoes are very interested in string rotation, flipping and other issues. I watched some videos and did some topics. Now I have some new ideas and follow-up learning goals and plans to share with you   catalog: 1: Introduce two methods to rotate the string as a whole 2: Rotate a single ch ...

Posted by faraway on Tue, 30 Nov 2021 21:23:54 -0800

WPF_11_ Style and behavior

WPF provides several features that allow you to insert something you like into the basic elements and standardize the visual appearance of the program. Style - an important tool for organizing and reusing formatting options. Behavior - encapsulates some common UI functions. style <Window.Resources> <!--Like resources, styles have ...

Posted by rr1024 on Mon, 29 Nov 2021 04:17:19 -0800

WPF Series Tutorial: Content Controls

This section focuses on the Content control's Content property. Project Source Content properties can be set directly in the control <Button x:Name="button" Content="Button" Height="49"/> You can also use pictures. <Button> <Image Source="/edbcb5485f9ac954.jpg" Width="100" Height="30"> </Image> </Button&g ...

Posted by lukevrn on Tue, 23 Nov 2021 09:55:44 -0800

Simple WPF: custom event implementation long press short press

preface It was new before Simple WPF column To record some content in the blogger's WPF learning process. This blog post is followed by the first one Simple WPF: Customize button appearance , implements a custom long and short press event button. Github project update address: https://github.com/mrchipset/simple-wpf.git Functional requiremen ...

Posted by Brandito520 on Tue, 23 Nov 2021 05:32:52 -0800