0
我有這樣的轉動控制:如何獲得數據透視控制移動到屏幕的上半部分?
<ScrollViewer Margin="0,104,0,229" HorizontalAlignment="Left">
<Grid Height="800" Width="468">
<phone:Pivot ItemsSource="{Binding DocumentHeaderItemsSearch}">
<phone:Pivot.HeaderTemplate>
<DataTemplate>
<TextBlock x:Name="ProcessName" Text="{Binding ProcessName}" TextWrapping="Wrap" Style="{StaticResource PhoneTextExtraLargeStyle}" FontSize="48" Margin="2,20,2,2" FontWeight="Bold"/>
</DataTemplate>
</phone:Pivot.HeaderTemplate>
<phone:Pivot.ItemTemplate>
<DataTemplate>
<Grid x:Name="Content" Grid.Row="0" Margin="0,-35,0,0">
<Viewbox x:Name="viewboxHeader" Tag="0">
<Grid Height="80" Width="436">
<Canvas Background="{Binding Urgency, Converter={StaticResource converttocolor}}" Margin="0,0,409,0">
<TextBlock TextWrapping="Wrap" Text="{Binding Duration}" Foreground="Black" RenderTransformOrigin="0.5,0.5" FontSize="{StaticResource PhoneFontSizeNormal}" Canvas.Top="25" UseLayoutRounding="False" d:LayoutRounding="Auto" TextAlignment="Center" FontWeight="Bold" Width="80" Height="28" Canvas.Left="-26" HorizontalAlignment="Center" VerticalAlignment="Center" >
<TextBlock.RenderTransform>
<CompositeTransform Rotation="-90"/>
</TextBlock.RenderTransform>
</TextBlock>
</Canvas>
<TextBlock TextWrapping="Wrap" Text="{Binding DocDesc}" Foreground="White" Margin="31,4,0,44" FontSize="{StaticResource PhoneFontSizeMediumLarge}" FontFamily="{StaticResource PhoneFontFamilyBold}"/>
<TextBlock TextWrapping="Wrap" Text="{Binding Originator}" Margin="31,44,167,4" FontSize="{StaticResource PhoneFontSizeNormal}" Foreground="White" FontFamily="{StaticResource PhoneFontFamilySemiLight}"/>
<TextBlock TextWrapping="Wrap" Text="{Binding DocDate, Converter={StaticResource convertshortdate}}" Margin="277,44,0,4" FontSize="{StaticResource PhoneFontSizeNormal}" Foreground="White" FontFamily="{StaticResource PhoneFontFamilySemiLight}" HorizontalAlignment="Right"/>
</Grid>
</Viewbox>
</Grid>
</DataTemplate>
</phone:Pivot.ItemTemplate>
</phone:Pivot>
</Grid>
</ScrollViewer>
所以這裏是結果我得到的,當我運行的應用程序,並使用搜索功能:
我怎麼得到那個對象是顯示結果顯示恰好在該主題項目標題「76」下方?
我使用的Visual Studio 2012,C#,Silverlight中的Windows Phone 8,我在這裏使用一個支點控制的結果
感謝這個見解!當我改變這些設置它移動到頂部,但有一個差距,然後我意識到我有一個不需要的viewbox填充這個區域,所以我把它拿出來,並移動到正下方的標題項目!對於晚帖抱歉:P – Arrie