问题描述
<customTag />
我尝试使用customTag /
https://pugjs.org/language/tags.html
<customTag> </customTag>
解决方法
如果仔细观察,自动关闭标签在element和true
之间不能有空格,因此您需要删除空格,如下所示:
<Grid Grid.IsSharedSizeScope="True">
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<Grid Grid.Row="0" Margin="5">
<Grid.ColumnDefinitions>
<ColumnDefinition SharedSizeGroup="a" Width="Auto"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<DatePicker SelectedDate="{Binding Path=SelectedDate1,Mode=TwoWay}"/>
</Grid>
<Grid Grid.Row="1" Margin="5">
<Grid.ColumnDefinitions>
<ColumnDefinition SharedSizeGroup="a" Width="Auto"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<DatePicker SelectedDate="{Binding Path=SelectedDate2,Mode=TwoWay}"/>
</Grid>
</Grid>