47得票2回答
WPF网格的底部边框

我想在网格的每一行上设置底部边框,但是只知道如何在每个单元格周围放置四个边框..<Grid Height="174" HorizontalAlignment="Left" Margin="23,289,0,0" Name="grid2" VerticalAlignment="Top" W...

11得票2回答
WPF中折叠网格行

我创建了一个自定义的WPF元素,它是从RowDefinition扩展而来的,当元素的Collapsed属性设置为True时,应该会折叠网格中的行。 它通过在样式中使用转换器和数据触发器来将行的高度设置为0来实现。它基于这个SO Answer。 在下面的示例中,当网格分隔符超过窗口的一半时,...

9得票3回答
如何在WPF中折叠一个星号大小的网格列?

要使三列宽度相同,需要将Width设置为Auto。 <Grid x:Name="myGrid"> <Grid.RowDefinitions> <RowDefinition Height="Auto" /> </Grid.RowDefi...

8得票1回答
如何将按钮延伸到整个网格,XAML

I have a problem with stretching the button all over the grid. My code look like this: <Grid x:Name="LayoutRoot" Background="{ThemeResource Appl...

8得票3回答
多个自动列定义导致GridSplitter行为异常。

I have the following XAML: <Window x:Class="MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schem...