Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Sample here:</p> <pre><code>&lt;Style TargetType="Window" x:Key="DialogWindow"&gt; &lt;Setter Property="AllowsTransparency" Value="True"/&gt; &lt;Setter Property="WindowStyle" Value="None"/&gt; &lt;Setter Property="ResizeMode" Value="CanResizeWithGrip"/&gt; &lt;Setter Property="Template"&gt; &lt;Setter.Value&gt; &lt;ControlTemplate TargetType="{x:Type Window}"&gt; &lt;Border BorderBrush="Black" BorderThickness="3" CornerRadius="10" Height="{TemplateBinding Height}" Width="{TemplateBinding Width}" Background="Gray"&gt; &lt;DockPanel&gt; &lt;Grid DockPanel.Dock="Top"&gt; &lt;Grid.ColumnDefinitions&gt; &lt;ColumnDefinition&gt;&lt;/ColumnDefinition&gt; &lt;ColumnDefinition Width="50"/&gt; &lt;/Grid.ColumnDefinitions&gt; &lt;Label Height="35" Grid.ColumnSpan="2" x:Name="PART_WindowHeader" HorizontalAlignment="Stretch" VerticalAlignment="Stretch"/&gt; &lt;Button Width="15" Height="15" Content="x" Grid.Column="1" x:Name="PART_CloseButton"/&gt; &lt;/Grid&gt; &lt;Border HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Background="LightBlue" CornerRadius="0,0,10,10" Grid.ColumnSpan="2" Grid.RowSpan="2"&gt; &lt;Grid&gt; &lt;Grid.ColumnDefinitions&gt; &lt;ColumnDefinition/&gt; &lt;ColumnDefinition Width="20"/&gt; &lt;/Grid.ColumnDefinitions&gt; &lt;Grid.RowDefinitions&gt; &lt;RowDefinition Height="*"/&gt; &lt;RowDefinition Height="20"&gt;&lt;/RowDefinition&gt; &lt;/Grid.RowDefinitions&gt; &lt;ResizeGrip Width="10" Height="10" Grid.Column="1" VerticalAlignment="Bottom" Grid.Row="1"/&gt; &lt;/Grid&gt; &lt;/Border&gt; &lt;/DockPanel&gt; &lt;/Border&gt; &lt;/ControlTemplate&gt; &lt;/Setter.Value&gt; &lt;/Setter&gt; &lt;/Style&gt; </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload