ドック レイアウト パネルのカスタム キャプション テンプレートが完全に埋まっておらず、キャプションの周りにスペースがあります。また、閉じるボタンに同じ背景スタイルを使用させるにはどうすればよいですか。 周りにスペースがある Docklayoutpanel カスタム キャプション テンプレート
<dxdo:LayoutPanel.CaptionTemplate>
<DataTemplate>
<Grid HorizontalAlignment="Stretch"
DataContext="{Binding DataContext,ElementName=DockLayoutManager1}">
<Grid.ColumnDefinitions>
<ColumnDefinition />
<ColumnDefinition />
</Grid.ColumnDefinitions>
<Border Background="Blue"
Grid.ColumnSpan="2" />
<TextBlock TextWrapping="Wrap"
Text="Wells"
>
</TextBlock>
<StackPanel Orientation="Horizontal"
Grid.Column="1"
HorizontalAlignment="Right">
<ToggleButton>
...
</ToggleButton>
...
<Button/>
...
</StackPanel>
</Grid>
</DataTemplate>
</dxdo:LayoutPanel.CaptionTemplate>