WPF<1>_XAML Basic

Table of Contents 1. Three-tier architecture 2. Expression mode and architectural mode ASP.net is Microsoft’s new generation scripting language, a powerful server-side technology for creating dynamic Web pages. Avalinia is a powerful framework that enables developers to create cross-platform applications using .NET. 1. Three-tier architecture 1. The architectural pattern consisting of presentation layer, logic layer […]

[WPF Series] – XAML syntax specification

[WPF Series]-XAML syntax specification Article directory [WPF Series] – XAML syntax specification I. Overview 2. Object element syntax 3. Characteristic syntax (attributes) 4. Processing of characteristic values 5. Enumerated characteristic values 6. Attribute and event member name references 7. Attribute element syntax 8. Set Grammar 9. XAML content attributes XAML content attribute values must be […]

About the method of including another window in WPF xaml

If you directly include another Window object in the xaml of a window window, an error will be reported directly at runtime. like: <Window x:Class=”Test.TestWin” xmlns=”http://schemas.microsoft.com/winfx/2006/xaml/presentation” xmlns:x=”http://schemas.microsoft.com/winfx/2006/xaml” xmlns:d=”http://schemas.microsoft.com/expression/blend/2008″ xmlns:mc=”http://schemas.openxmlformats.org/markup-compatibility/2006″ xmlns:local=”clr-namespace:Test” mc:Ignorable=”d” Height=”300″ Width=”300″> <Grid> <Window></Window> </Grid> </Window> In order to solve this problem, you can use Popup instead of Window object, such as: <Window x:Class=”Test.TestWin” […]

(3) WPF-XAML

XAML: Extensible Application Markup Language 1. XAML compilation BAML is actually the binary representation of XAML. (BAML Binary Application Markup Language) All XAML files are converted to BAML, and these BAML are then embedded as resources in the final DLL or EXE assembly. XAML standard: Each element in a XAML document maps to an instance […]

WPF background setting style System.Windows.Style of xaml control

WPF background setting style System.Windows.Style of xaml control Excerpt – From: Thanks Author: IT Xiaobing http://3w.suchso.com/projecteac-tual/wpf-zhishi-houtai-shezhi-style.html Style myStyle = (Style)this.FindResource(“TabItemStyle”);//TabItemStyle This style is the style name in the referenced resource file Static resources determine their objects or values after the first compilation and cannot be modified afterwards. Dynamic resources are determined at runtime, and only […]

[WPF] Open a thread, xaml binding property, binding command, cancel thread, thread trigger UI update

Main interface XAML: Button binding commands and properties <Grid> <StackPanel> <ProgressBar x:Name=”ProgressBar” Height=”20″ VerticalAlignment=”Top” Margin=”10 10 10 10″ Value=”{Binding Progress}”/> <Grid> <Grid. ColumnDefinitions> <ColumnDefinition/> <ColumnDefinition/> </Grid. ColumnDefinitions> <Button x:Name=”StartButton” Grid.Column=”0″ Content=”start!” VerticalAlignment=”Top” Margin=”10 0 10 10″ Command=”{Binding ClickCommandStart}” IsEnabled=”{Binding StartIsEnabled} ” /> <Button x:Name=”CancelButton” Grid.Column=”1″ Content=”cancel!” VerticalAlignment=”Top” Margin=”10 0 10 10″ Command=”{Binding ClickCommandCancel}” /> </Grid> […]