【发布时间】:2023-03-15 18:37:01
【问题描述】:
如何删除空间?这有什么财产吗?或者我只能在 xaml 中手动完成?这是所有 xaml:
<Window x:Class="WPFnotatnik.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="MainWindow" Height="350" Width="525">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition/>
</Grid.RowDefinitions>
<Menu Grid.Row="0">
<MenuItem Header="File"/>
<MenuItem Header="Another"/>
</Menu>
<Grid x:Name="contentGrid" Grid.Row="1">
<RichTextBox Name="richTextBox1" HorizontalContentAlignment="Left" />
</Grid>
</Grid>
【问题讨论】:
-
您确定这是一个空格而不是控件左侧的填充?
标签: c# wpf visual-studio xaml