C # uses SendMessage to realize message transmission between winform and wpf
C# Winform inter window message notification uses the Windows API SendMessage method to send messages across processes, rewrites the WndProc method to receive and process messages
The following three methods and functions are mainly used:
WndProc: mainly used to intercept and process system messages and custom messages
You can override th ...
Posted by maskme on Mon, 13 Dec 2021 01:52:08 +0100
[WPF] play rainbow text and animation
1. Preface
Interest came to play with the rainbow text of WPF. Instead of making gradient colors with linear gradient brush, it refers to the rainbow text with independent color for each text. Although there is no practical value, I hope that the use of ItemsControl to split text and the use of tool classes to provide incremental and random va ...
Posted by zevious on Sat, 11 Dec 2021 09:30:50 +0100
CGB Fifth Day
while Loop
Syntax Format: Loop Initial Value;
While {loop body; Step statement;}
Execution process: first judge the Boolean expression, when the Boolean expression is true, execute the loop body and step statement, and then judge the Boolean expression again after execut ...
Posted by Benny Johnson on Wed, 08 Dec 2021 10:12:11 +0100
Default import rules for modifying pasted pictures in Unity3D editor
After the map is imported into unity, it will be automatically set to compression format. It will first judge whether the map has transparent channels.
Android: compressed into ETC1 without transparent channel, compressed into ETC2 with transparent channel, and not divided by 4. fall back to RGBA32
IOS: compressed into RGB PVRTC witho ...
Posted by guilhenfsu on Wed, 01 Dec 2021 17:36:57 +0100
WPF UI development tutorial Resources usage
WPF introduces a very convenient concept: storing data as resources can be used locally for controls, locally for the whole window, or globally for the whole application. Data can be almost anything you want, from actual information to the hierarchy of WPF controls. This allows you to put data in one place and then use it from one or several ot ...
Posted by jhuaraya on Sat, 20 Nov 2021 13:44:26 +0100
C# wpf style implements PART replaceable areas
preface
Some styles are defined in style, such as the external style of the container (such as customizing the window title bar. At this time, the window is the container and the title bar is the external style). When using, you can only place controls inside the container. At this time, it is not necessary to add controls to the externa ...
Posted by biopv on Tue, 09 Nov 2021 22:28:59 +0100
C#WPF (DataGid learning)
Let's first look at two pictures. One realizes its own effect and the other uses the default effect:
Not much to say, on the code...
1. Converter
Because there is a DateTime in it, it should be converted to the corresponding string through the converter.
using System;
using System.Globalization;
using System.Windows.Data;
[Valu ...
Posted by UnitedWeFall on Wed, 13 Oct 2021 04:33:19 +0200