WPF series: borderless window and wpf series border window
<Window x: Class = "Ares. Animations. Window3" xmlns =" http://schemas.microsoft.com/winfx/2006/xaml /Presentation "xmlns: x =" http://schemas.microsoft.com/winfx/2006/xaml "Title =" Window3 "Height =" 300 "Width =" 300 "WindowStyle =" None "Background =" {x: null} "AllowsTransparency =" True "> <DockPanel Background =" BlueViolet "> <Border Height =" 30 "Background =" BlueViolet "DockPanel. dock = "Top" MouseLeftButtonDown = "Window_MouseLeftButtonDown"> <Grid. columnDefinitions> <ColumnDefinition/> </Grid. columnDefinitions> <TextBlock FontSize = "18"> borderless window </TextBlock> <StackPanel Grid. column = "1" Orientation = "Horizontal" HorizontalAlignment = "Right"> <Rectangle Width = "30" Height = "30" Fill = "Red" Stroke = "Black" StrokeThickness = ""2"> </Rectangle> <Rectangle Width = "30" Height = "30" Fill = "Red" Stroke = "Black" StrokeThickness = "2"> </Rectangle> <Rectangle Width = "30" Height = "30" Fill = "Red" Stroke = "Black" StrokeThickness = "2" MouseDown = "Rectangle_MouseDown"> </Rectangle> </StackPanel> </Grid> </Border> <Border Background = "WhiteSmoke"> <TextBlock> Center </TextBlock> </Border> </DockPanel> </Window>