123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161 |
- <!--
- Copyright © 2011-2012 Nokia Corporation. All rights reserved.
- Nokia and Nokia Connecting People are registered trademarks of Nokia Corporation.
- Other product and company names mentioned herein may be trademarks
- or trade names of their respective owners.
- See LICENSE.TXT for license information.
- -->
- <phone:PhoneApplicationPage
- x:Class="RSSReader.Views.MainPano"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
- xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
- xmlns:controls="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit"
- mc:Ignorable="d" d:DesignWidth="480" d:DesignHeight="800"
- FontFamily="{StaticResource PhoneFontFamilyNormal}"
- FontSize="{StaticResource PhoneFontSizeNormal}"
- Foreground="Black"
- SupportedOrientations="Portrait" Orientation="Portrait"
- shell:SystemTray.IsVisible="False">
- <phone:PhoneApplicationPage.Resources>
- <Style x:Key="FeedGridItemStyle" TargetType="Button">
- <Setter Property="Background" Value="Transparent"/>
- <Setter Property="BorderBrush" Value="{StaticResource PhoneForegroundBrush}"/>
- <Setter Property="Foreground" Value="{StaticResource PhoneForegroundBrush}"/>
- <Setter Property="BorderThickness" Value="{StaticResource PhoneBorderThickness}"/>
- <Setter Property="FontFamily" Value="{StaticResource PhoneFontFamilyNormal}"/>
- <Setter Property="FontSize" Value="{StaticResource PhoneFontSizeNormal}"/>
- <Setter Property="Padding" Value="10,3,10,5"/>
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="Button">
- <Grid Background="Transparent">
- <VisualStateManager.VisualStateGroups>
- <VisualStateGroup x:Name="CommonStates">
- <VisualState x:Name="Normal"/>
- <VisualState x:Name="MouseOver"/>
- <VisualState x:Name="Pressed"/>
- <VisualState x:Name="Disabled"/>
- </VisualStateGroup>
- </VisualStateManager.VisualStateGroups>
- <Grid Height="180" Margin="8,8,0,0" VerticalAlignment="Top" HorizontalAlignment="Left" Width="180">
- <Image Source="{Binding ImageURL}"/>
- <TextBlock Margin="8,0,8,8" TextWrapping="Wrap" VerticalAlignment="Bottom" Height="27" Text="{Binding Title}" d:LayoutOverrides="VerticalAlignment" Foreground="Black" />
- </Grid>
- </Grid>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
-
- <DataTemplate x:Key="FeedGridItemTemplate">
- <Button Style="{StaticResource FeedGridItemStyle}"
- Click="Button_Click"/>
- </DataTemplate>
- <ItemsPanelTemplate x:Key="FeedGridPanelTemplate">
- <!-- WrapPanel is part of Silverlight Toolkit which does not ship as part of this
- example. Please see release notes for instructions how to install and use
- Silverlight Toolkit. -->
- <toolkit:WrapPanel/>
- </ItemsPanelTemplate>
- </phone:PhoneApplicationPage.Resources>
- <Grid x:Name="LayoutRoot" Background="Transparent">
- <controls:Panorama Title="rss reader" x:Name="RSSFeedsPanorama" Foreground="Black">
- <controls:Panorama.Background>
- <ImageBrush ImageSource="/Resources/newspaper-background.jpg" />
- </controls:Panorama.Background>
- <controls:PanoramaItem DataContext="{Binding Source={StaticResource RSSPagesDataSource}, Path=FirstPage}">
- <controls:PanoramaItem.Header>
- <StackPanel Orientation="Horizontal">
- <TextBlock Text="{Binding Title}" />
- <Button Click="SettingsButton_Click" Margin="0,10,0,0" BorderThickness="0">
- <Image Source="/Resources/appbar.feature.settings.rest.png" Width="60" />
- </Button>
- </StackPanel>
- </controls:PanoramaItem.Header>
- <controls:PanoramaItem.Content>
- <ListBox Name="NewsFeedsListBox"
- toolkit:TiltEffect.IsTiltEnabled="True"
- ItemTemplate="{StaticResource FeedGridItemTemplate}"
- ItemsSource="{Binding FeedsView.View}"
- ItemsPanel="{StaticResource FeedGridPanelTemplate}"
- Margin="25,0,0,0"/>
- </controls:PanoramaItem.Content>
- </controls:PanoramaItem>
- <controls:PanoramaItem DataContext="{Binding Source={StaticResource RSSPagesDataSource}, Path=SecondPage}">
- <controls:PanoramaItem.Header>
- <StackPanel Orientation="Horizontal">
- <TextBlock Text="{Binding Title}" />
- <Button Click="SettingsButton_Click" Margin="0,10,0,0" BorderThickness="0">
- <Image Source="/Resources/appbar.feature.settings.rest.png" Width="60" />
- </Button>
- </StackPanel>
- </controls:PanoramaItem.Header>
- <controls:PanoramaItem.Content>
- <ListBox Name="LeisureListBox"
- toolkit:TiltEffect.IsTiltEnabled="True"
- ItemTemplate="{StaticResource FeedGridItemTemplate}"
- ItemsSource="{Binding FeedsView.View}"
- ItemsPanel="{StaticResource FeedGridPanelTemplate}"
- Margin="25,0,0,0"/>
- </controls:PanoramaItem.Content>
- </controls:PanoramaItem>
- <controls:PanoramaItem DataContext="{Binding Source={StaticResource RSSPagesDataSource}, Path=ThirdPage}">
- <controls:PanoramaItem.Header>
- <StackPanel Orientation="Horizontal">
- <TextBlock Text="{Binding Title}" />
- <Button Click="SettingsButton_Click" Margin="0,10,0,0" BorderThickness="0">
- <Image Source="/Resources/appbar.feature.settings.rest.png" Width="60" />
- </Button>
- </StackPanel>
- </controls:PanoramaItem.Header>
- <controls:PanoramaItem.Content>
- <ListBox Name="SportsFeedsListBox"
- toolkit:TiltEffect.IsTiltEnabled="True"
- ItemTemplate="{StaticResource FeedGridItemTemplate}"
- ItemsSource="{Binding FeedsView.View}"
- ItemsPanel="{StaticResource FeedGridPanelTemplate}"
- Margin="25,0,0,0"/>
- </controls:PanoramaItem.Content>
- </controls:PanoramaItem>
- <controls:PanoramaItem DataContext="{Binding Source={StaticResource RSSPagesDataSource}, Path=FourthPage}">
-
- <controls:PanoramaItem.Header>
- <StackPanel Orientation="Horizontal">
- <TextBlock Text="{Binding Title}" />
- <Button Click="SettingsButton_Click" Margin="0,10,0,0" BorderThickness="0">
- <Image Source="/Resources/appbar.feature.settings.rest.png" Width="60" />
- </Button>
- </StackPanel>
- </controls:PanoramaItem.Header>
- <controls:PanoramaItem.Content>
- <ListBox Name="TechFeedsListBox"
- toolkit:TiltEffect.IsTiltEnabled="True"
- ItemTemplate="{StaticResource FeedGridItemTemplate}"
- ItemsSource="{Binding FeedsView.View}"
- ItemsPanel="{StaticResource FeedGridPanelTemplate}"
- Margin="25,0,0,0"/>
- </controls:PanoramaItem.Content>
- </controls:PanoramaItem>
- </controls:Panorama>
- </Grid>
- </phone:PhoneApplicationPage>
|