【发布时间】:2015-10-30 23:16:43
【问题描述】:
我有一个非常令人沮丧的问题。我有一个 WP8.1 应用程序(WinRT - 通用),我在其中使用枢轴控制,在它上方我有搜索按钮(此处的屏幕:http://oi67.tinypic.com/2r5s13d.jpg)。搜索按钮在 Grid.Column 0 中,Pivot 在 Grid.Column 1 中,但我有这个奇怪的边距(标记在屏幕上),我无法摆脱它,它覆盖了我的搜索按钮(只有一半是活动的) .我的 Grid.Column 1 和 pivot 应该从更接近单词“TEST”的行开始,理论上它是,但第二行(更高的行)不应该在那里,它在那里,它是空的,但它禁止搜索按钮轻拍。在标题模板中,我有以下代码:
<Pivot.HeaderTemplate>
<DataTemplate>
<Grid>
<TextBlock Text="{Binding}" FontSize="20" Margin="0,3,0,0" FontWeight="Normal"/>
</Grid>
</DataTemplate>
</Pivot.HeaderTemplate>
谁能帮帮我?
【问题讨论】:
标签: xaml templates windows-phone-8.1 winrt-xaml