【问题标题】:Customize Panorama List in Windows Phone 8 Xaml在 Windows Phone 8 Xaml 中自定义全景列表
【发布时间】:2013-12-20 18:16:38
【问题描述】:

在 Windows Phone 8 Xaml 中自定义全景列表

我正在开发 windows phone 8 图书阅读器应用程序。我正在使用全景列表来加载页面。由于其默认样式全景图在同一视图中显示另一个页面的一部分。我需要在单个视图中显示单个页面,它应该适合。任何帮助?

【问题讨论】:

  • 当然,列表框的行为与全景控件不同

标签: c# xaml windows-phone-8


【解决方案1】:

您可以枢轴控制。它在一页上显示一个视图。

【讨论】:

    【解决方案2】:

    我认为全景控制是不可能的,但你可以使用水平列表

    <Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0">
                <tolkit:GestureService.GestureListener>
                    <tolkit:GestureListener Flick="GestureListener_Flick"></tolkit:GestureListener>
                </tolkit:GestureService.GestureListener>
                <ListBox Name="lstMyList" ScrollViewer.HorizontalScrollBarVisibility="Hidden" ScrollViewer.VerticalScrollBarVisibility="Disabled" HorizontalAlignment="Left" SelectionChanged="lstlstMyList_SelectionChanged_1">
                    <ListBox.ItemsPanel>
                        <ItemsPanelTemplate>
                            <StackPanel Orientation="Horizontal"/>
                        </ItemsPanelTemplate>
                    </ListBox.ItemsPanel>
                    <ListBox.ItemTemplate>
                        <DataTemplate>
                            <StackPanel Orientation="Vertical">
                                <Image Height="480" Width="500" Margin="-25,30,0,0" Source="{Binding Image}"/>
                                <TextBlock  Name="txbMainHeading" Text="{Binding Message}" Margin="80,10,0,0" FontSize="26" FontWeight="Medium" Foreground="#cc6600"></TextBlock>
                                <TextBlock  Text="{Binding Description}" Margin="60,0,0,0" FontSize="18" Foreground="Black" TextWrapping="Wrap" Width="350"></TextBlock>
                            </StackPanel>
                        </DataTemplate>
                    </ListBox.ItemTemplate>
                </ListBox>
            </Grid>
    

    【讨论】:

    • 如何给列表框添加翻转效果?
    猜你喜欢
    • 2023-03-29
    • 2014-04-18
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-08-23
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多