Getting rid of strange margin above pivot in WP8.1

时间:2015-10-30 23:16:44

标签: xaml templates windows-phone-8.1 winrt-xaml

I have very frustrating problem. I have an WP8.1 app (WinRT - Universal) in which I use pivot control and above it I have search button (screen here: http://oi67.tinypic.com/2r5s13d.jpg ). Search button is in Grid.Column 0 and Pivot is in Grid.Column 1, but I have this strange margin (marked on screen) which I can't get rid of and it covers my search button (only half of it is active). My Grid.Column 1 and pivot should start on line closer to the word "TEST" and theoretically it is, but the second line (higher one) which shouldn't be there, it's there, it's empty but it's prohibit search button to be tapped. In header template I have a following code:

    <Pivot.HeaderTemplate>
        <DataTemplate>
            <Grid>
                <TextBlock Text="{Binding}" FontSize="20" Margin="0,3,0,0" FontWeight="Normal"/>
            </Grid>
        </DataTemplate>
    </Pivot.HeaderTemplate>

Can anybody help me?

1 个答案:

答案 0 :(得分:0)

尝试在Pivot Control等内添加边距。边距=&#34; 0,-20,0,0&#34;并在搜索按钮后面添加枢轴控制,您可以点击此按钮。

相关问题