Subversion Repository Public Repository

Nextrek

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
<phone:PhoneApplicationPage 
    x:Class="NotizieTL.MainPage"
    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" 
    mc:Ignorable="d" d:DesignWidth="480" d:DesignHeight="768" 
    d:DataContext="{d:DesignData SampleData/MainViewModelSampleData.xaml}"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait"  Orientation="Portrait"
    shell:SystemTray.IsVisible="True" Loaded="PhoneApplicationPage_Loaded" DataContext="{Binding}">

    <!--LayoutRoot is the root grid where all page content is placed-->
    <Grid x:Name="LayoutRoot" Background="Transparent">
        <!--Pivot Control-->
        <controls:Pivot Title="NOTIZIE TUTTO LAVORO">
            <!--Pivot item one-->
            <controls:PivotItem Header="first">
                <!--Double line list with text wrapping-->
                <ListBox Name="feedListBoxNews1" Margin="0,-20,-12,81" ItemsSource="{Binding Items}" ScrollViewer.VerticalScrollBarVisibility="Auto" SelectionChanged="feedListBox_SelectionChanged" Background="#56000000">
                    <ListBox.ItemTemplate>
                        <DataTemplate>
                            
                            <StackPanel x:Name="pannello1" Orientation="Vertical" Margin="0,0,0,17">
                                <!--Replace rectangle with image-->
                                <StackPanel Orientation="Horizontal" Height="120" Background="#FF1F1F1F">
                                    <!--<Image Height="200" Width="200" Margin="12,0,9,0" Source="{Binding Links[1].Uri}" VerticalAlignment="Top" />-->
                                    <TextBlock Text="{Binding Titolo}" Width="430" VerticalAlignment="Center" HorizontalAlignment="Center" TextAlignment="Center" Margin="17,0,12,0" TextWrapping="Wrap" FontFamily="Arial Black" FontSize="20" Foreground="#FF539EDE" ></TextBlock>
                                </StackPanel>
                                <TextBlock Text="{Binding Testo}" Height="65"  TextWrapping="Wrap" Margin="22,5,12,10" FontFamily="Arial" FontSize="18" VerticalAlignment="Top" Foreground="White"/>
                                <TextBlock Text="{Binding DataPub}" TextWrapping="Wrap" Margin="22,0,12,0" FontFamily="Arial" FontSize="18" VerticalAlignment="Top" Foreground="Coral"/>
                            </StackPanel>
                            
                        </DataTemplate>
                    </ListBox.ItemTemplate>
                </ListBox>
            </controls:PivotItem>
 
            <!--Pivot item two-->
            <controls:PivotItem Header="preferiti"> 
                <!--Triple line list no text wrapping-->
                <ListBox Name="feedListBoxNews2" Margin="0,-20,-12,81" Foreground="Red" ItemsSource="{Binding Items}" ScrollViewer.VerticalScrollBarVisibility="Auto" SelectionChanged="feedListBox_SelectionChanged" Background="#56000000">
                    
                </ListBox>
            </controls:PivotItem>

            <!--Pivot item three-->
            <controls:PivotItem Header="third">
                <!--Triple line list no text wrapping-->
                <ListBox Name="feedListBoxNews3" Margin="0,-20,-12,81" ItemsSource="{Binding Items}" ScrollViewer.VerticalScrollBarVisibility="Auto" SelectionChanged="feedListBox_SelectionChanged" Background="#56000000">
                    <ListBox.ItemTemplate>
                        <DataTemplate>
                            
                            <StackPanel x:Name="pannello3" Orientation="Horizontal" Margin="0,0,0,17" Background="Transparent">
                                <!--Replace rectangle with image-->
                                <Image Height="200" Width="200" Margin="12,0,9,0" Source="{Binding Icona}" VerticalAlignment="Top" />
                                <StackPanel Orientation="Vertical" VerticalAlignment="Center">
                                    <TextBlock Text="{Binding Titolo}" Width="230" TextWrapping="Wrap" FontFamily="Arial Black" FontSize="20" Foreground="#FF539EDE" TextAlignment="Center"/>
                                    <TextBlock Text="{Binding Testo}" TextWrapping="Wrap" Margin="12,-6,12,0" FontFamily="Arial" FontSize="18" VerticalAlignment="Top" Foreground="White" TextAlignment="Center"/>

                                </StackPanel>
                                
                                <!--<TextBlock Text="{Binding DataPub, Converter={StaticResource RssTextTrimmer}}" TextWrapping="Wrap" Margin="12,0,12,0" FontFamily="Arial" FontSize="18" VerticalAlignment="Top" Foreground="White"/>-->
                            </StackPanel>
                            
                        </DataTemplate>
                    </ListBox.ItemTemplate>
                </ListBox>
            </controls:PivotItem>

        </controls:Pivot>
    </Grid>
 
    <!--Sample code showing usage of ApplicationBar-->
    <!--<phone:PhoneApplicationPage.ApplicationBar>
        <shell:ApplicationBar IsVisible="True" IsMenuEnabled="True">
            <shell:ApplicationBarIconButton IconUri="/Images/appbar_button1.png" Text="Button 1"/>
            <shell:ApplicationBarIconButton IconUri="/Images/appbar_button2.png" Text="Button 2"/>
            <shell:ApplicationBar.MenuItems>
                <shell:ApplicationBarMenuItem Text="MenuItem 1"/>
                <shell:ApplicationBarMenuItem Text="MenuItem 2"/>
            </shell:ApplicationBar.MenuItems>
        </shell:ApplicationBar>
    </phone:PhoneApplicationPage.ApplicationBar>-->

</phone:PhoneApplicationPage>

Commits for Nextrek/WindowsPhone/NotizieTL/NotizieTL/MainPage.xaml

Diff revisions: vs.
Revision Author Commited Message
33 LTardio picture LTardio Thu 11 Jul, 2013 16:57:32 +0000