Когда окно имеет экран с меньшим разрешением, текст в середине ("NoSuggestionsBody"
) не изменяется динамически вместе с ним, а остается в центре окна исходного размера.
Я попытался создать определение столбца в Grid
, но текст не был изменен, чтобы быть динамическим.
<Grid x:Name="uiContentGrid">
<Grid.RowDefinitions>
<RowDefinition Height="0"/>
<RowDefinition/>
</Grid.RowDefinitions>
<DockPanel DockPanel.Dock="Top" LastChildFill="False" Background="#EBEFF2" Grid.Row="0" Grid.RowSpan="2">
<!--This is the Suggested Templates View.-->
<custom:TemplateCardView x:Name="uiTemplateCardView" UseClick="UseTemplate_Click" DockPanel.Dock="Top" Visibility="Visible"/>
<!--This is the Static String shown in case of an Email Chain-->
<Border Height="556" DockPanel.Dock="Top">
<TextBlock Name="NoSuggestionsBody" Foreground="#546e7a" DockPanel.Dock="Top" HorizontalAlignment="Center" VerticalAlignment="Center" LineHeight="1.83" FontFamily="HelveticaNeue" FontSize="12px" FontWeight="Normal"/>
</Border>
</DockPanel>
![enter image description here](https://i.stack.imgur.com/SRsXf.png)
![enter image description here](https://i.stack.imgur.com/cpRyF.png)