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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
<phone:PhoneApplicationPage 
    x:Class="NotizieTL.MainPage"
    xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit"
    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="PortraitOrLandscape"  Orientation="Portrait"
    shell:SystemTray.IsVisible="True" Loaded="PhoneApplicationPage_Loaded" DataContext="{Binding}"  BackKeyPress="PhoneApplicationPage_BackKeyPress" OrientationChanged="PhoneApplicationPage_OrientationChanged">
    
   

    <!--LayoutRoot is the root grid where all page content is placed-->
    <Grid x:Name="LayoutRoot" Background="White">

        
        
        <Image Width="50" Height="50"  Margin="20,20,0,0" VerticalAlignment="Top" HorizontalAlignment="Left"  Source="/NotizieTL;component/images/ic_logo_loader.png"></Image>
        
        <!--Pivot Control-->
        <controls:Pivot Title="                     POWERED BY NEXTREK" Margin="0,30,0,0" Foreground="{StaticResource PhoneAccentBrush}" x:Name="pivot" SelectionChanged="Pivot_SelectionChanged" >
            
            <controls:Pivot.TitleTemplate>
                <DataTemplate>
                    <Grid Margin="0,0,0,0">
                        <TextBlock FontSize="20" FontFamily="Segoe WP" Text="{Binding}" Foreground="LightGray"></TextBlock>
                    </Grid>
                </DataTemplate>
            </controls:Pivot.TitleTemplate>

            

            <!--Pivot item one-->
            <controls:PivotItem Header="notizie">
                <!--Double line list with text wrapping-->
                <ListBox Name="feedListBoxNews1" Visibility="Visible" Margin="-12,-20,-12,0" ItemsSource="{Binding Items}" ScrollViewer.VerticalScrollBarVisibility="Auto" Hold="feedListBoxNews1_Hold" SelectionChanged="feedListBox_SelectionChanged"  >

                    <ListBox.ItemTemplate>
                        <DataTemplate>
                            <StackPanel x:Name="boxArticolo" Margin="0,0,0,0" Width="480" Hold="boxArticolo_Hold" Tap="boxArticolo_Tap" Loaded="boxArticolo_Loaded">

                                <!--<toolkit:ContextMenuService.ContextMenu>
                                    <toolkit:ContextMenu VerticalOffset="0.0">
                                        <toolkit:MenuItem Header="Aggiungi ai preferiti"  Click="MenuItem_Click"/>
                                    </toolkit:ContextMenu>
                                </toolkit:ContextMenuService.ContextMenu>-->

                                
                                    <!--Replace rectangle with image-->
                                    
                                        
                                    <!--<Image Height="200" Width="200" Margin="12,0,9,0" Source="{Binding Links[1].Uri}" VerticalAlignment="Top" />-->
                                    <TextBlock x:Name="titolo1"  Text="{Binding Titolo}" Width="420" Height="60"  VerticalAlignment="Stretch" HorizontalAlignment="Center" TextAlignment="Left" Margin="-20,5,0,0" TextWrapping="Wrap" FontFamily="Arial Black" FontSize="20" Foreground="#FF008DFF" ></TextBlock>
                                        
                                    
                                    <TextBlock x:Name="testo1" Text="{Binding Testo}" Height="65"  TextWrapping="Wrap" Margin="22,0,12,0" FontFamily="Arial" FontSize="18" VerticalAlignment="Top" Foreground="Black"/>
                                    <TextBlock x:Name="data1" Text="{Binding DataPub}" TextWrapping="Wrap" Margin="22,0,12,8" FontFamily="Arial" FontSize="18" Foreground="Green"/>
                                    <Image Source="/images/separator.png"></Image>
                                
                            </StackPanel>
                        </DataTemplate>
                    </ListBox.ItemTemplate>

                </ListBox>
            </controls:PivotItem>
 
            <!--Pivot item two-->
            <controls:PivotItem Header="preferiti"> 
                <!--Triple line list no text wrapping-->
                <ListBox Name="feedListPreferiti" Margin="0,-20,-12,0" Foreground="Red" ItemsSource="{Binding Items}" SelectionMode="Multiple" ScrollViewer.VerticalScrollBarVisibility="Auto" >
                    <ListBox.ItemTemplate>
                        <DataTemplate>
                            <StackPanel Orientation="Horizontal" Background="LightGray">
                                <CheckBox IsChecked="{Binding IsChecked}" Checked="CheckBox_Checked" Unchecked="CheckBox_Unchecked" Margin="10,0,0,0" />
                                <StackPanel x:Name="boxArticoloPreferito" Width="420" Orientation="Vertical" Margin="0,0,0,0"  Tap="articoloPreferitoPanel_Tap" Loaded="boxArticoloPreferito_Loaded">
                                    <!--Replace rectangle with image-->

                                    <!--<Image Height="200" Width="200" Margin="12,0,9,0" Source="{Binding Links[1].Uri}" VerticalAlignment="Top" />-->
                                    <TextBlock x:Name="titolo1"  Text="{Binding Titolo}" Width="360" Height="60"  VerticalAlignment="Stretch" HorizontalAlignment="Center" TextAlignment="Left" Margin="-10,5,0,0" TextWrapping="Wrap" FontFamily="Arial Black" FontSize="20" Foreground="#FF008DFF" ></TextBlock>
                                    <TextBlock x:Name="testo1" Text="{Binding Testo}" Height="65"  TextWrapping="Wrap" Margin="22,0,32,0" FontFamily="Arial" FontSize="18" VerticalAlignment="Top" Foreground="Black"/>
                                    <TextBlock x:Name="data1" Text="{Binding DataPub}" TextWrapping="Wrap" Margin="22,0,12,8" FontFamily="Arial" FontSize="18" Foreground="Green"/>
                                    <Image Source="/images/separator.png"></Image>
                                </StackPanel>
                            </StackPanel>
                        </DataTemplate>
                    </ListBox.ItemTemplate>
                </ListBox>
                
                
                
            </controls:PivotItem>

            <!--Pivot item three-->
            <controls:PivotItem Header="app">
                <!--Triple line list no text wrapping-->
                <ListBox Name="feedListBoxNews3" Margin="0,-20,-12,5" ItemsSource="{Binding Items}" ScrollViewer.VerticalScrollBarVisibility="Auto" SelectionChanged="feedListBox3_SelectionChanged" >
                    <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>

        <TextBlock x:Name="noFavoritesText" Width="480" Foreground="{StaticResource PhoneAccentBrush}" TextAlignment="Center" FontWeight="Bold"  HorizontalAlignment="Center" VerticalAlignment="Center" Visibility="Collapsed">Nessuna notizia aggiunta ai preferiti</TextBlock>
        
        <StackPanel x:Name="loadingPanel" Orientation="Vertical" VerticalAlignment="Center" Width="480" Visibility="Collapsed">
            <Canvas x:Name="sfondoLoading" Background="White" Width="480" Height="650" Margin="0,190,0,0"></Canvas>
            <StackPanel Orientation="Vertical" Margin="0,-400,0,0">
                <TextBlock HorizontalAlignment="Center" Foreground="{StaticResource PhoneAccentBrush}">Caricamento</TextBlock>
                <toolkit:PerformanceProgressBar Name="caricamentoProgress" IsIndeterminate="True" Foreground="{StaticResource PhoneAccentBrush}" />
            </StackPanel>
        </StackPanel>
        
        <Canvas x:Name="notiziaCanvas" Visibility="Collapsed" Background="White">
            
            <StackPanel x:Name="pannelloNotizie" Orientation="Vertical" Width="490">

                <TextBlock x:Name="titleCanvas" Width="450" Height="85"  VerticalAlignment="Center" Margin="20,20,20,20" TextWrapping="Wrap" TextAlignment="Left" FontFamily="Arial Black" FontSize="20" Foreground="#FF008DFF" ></TextBlock>
                <TextBlock x:Name="dateCanvas" Width="450" Margin="20,0,20,5" FontFamily="Arial" FontSize="18" Foreground="Green"></TextBlock>
                <StackPanel>
                        <TextBox x:Name="boxNote" Margin="0,0,10,0" Height="150" Background="#FFDEDEDE" Visibility="Visible" TextChanged="boxNote_TextChanged" KeyDown="boxNote_KeyDown" KeyUp="boxNote_KeyUp" GotFocus="boxNote_GotFocus" LostFocus="boxNote_LostFocus" ></TextBox>
                </StackPanel>
                
                <Grid x:Name="grigliaTesto" Margin="-10,0,0,0" >
                    <ScrollViewer x:Name="webScroller">
                    <phone:WebBrowser x:Name="webBrowser1" Margin="0,-23,0,0" />
                    </ScrollViewer>
                    <ScrollViewer x:Name="scroller" Visibility="Collapsed" Canvas.Top="0" Canvas.Left="5">
                    <TextBlock x:Name="textCanvas" Visibility="Collapsed" ScrollViewer.VerticalScrollBarVisibility="Auto" VerticalAlignment="Stretch" Width="450" Margin="0,0,0,20" TextWrapping="Wrap" TextAlignment="Left" FontFamily="Arial" FontSize="20" Foreground="Black" ></TextBlock>
                        
                    </ScrollViewer>
                </Grid>
                
            </StackPanel>
            <StackPanel x:Name="editNotePanel" Orientation="Horizontal" Width="200" Height="100" Margin="260,60,0,0" Visibility="Collapsed" >
                <Button x:Name="deleteNoteButton" Height="100" Width="100" BorderThickness="0"  Click="deleteNoteButton_Click">
                    <Button.Background>
                        <ImageBrush ImageSource="/images/appbar.delete.rest.black.png"></ImageBrush>
                    </Button.Background>
                </Button>
                <Button x:Name="saveNoteButton" Height="100" Width="100" BorderThickness="0" Click="saveNoteButton_Click">
                    <Button.Background>
                        <ImageBrush ImageSource="/images/appbar.save.rest.black.png"></ImageBrush>
                    </Button.Background>
                </Button>
            </StackPanel>
        </Canvas>
        
        
        <TextBlock x:Name="nomeAppTesto" Height="35" Width="300" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="65,11,0,0" Foreground="{StaticResource PhoneAccentBrush}" TextAlignment="Center" TextWrapping="Wrap" FontSize="24" FontFamily="Segoe WP">NOTIZIE TUTTO LAVORO</TextBlock>

        <Button x:Name="refreshButton" Width="77" Height="77" BorderThickness="0" Margin="0,4,33,0" VerticalAlignment="Top" HorizontalAlignment="Right" Click="refreshButton_Click" Style="{StaticResource ButtonStyleReload}">
            <Button.Background>
                <ImageBrush ImageSource="/images/reloadGray.png"></ImageBrush>
            </Button.Background>
        </Button>


        <Border x:Name="artAddFavCanvas" Height="100" Width="480" CornerRadius="0" VerticalAlignment="Top" Margin="0,20,0,0" Visibility="Collapsed">
            <Border.Background>
                <ImageBrush ImageSource="/images/sfondoOpaco.png" />
            </Border.Background>
            <TextBlock FontSize="35" Width="430" Height="50" Margin="0,-5,0,0" TextAlignment="Center" FontWeight="Bold" VerticalAlignment="Center" Foreground="White" >AGGIUNTO AI PREFERITI</TextBlock>
        </Border>

        <Border x:Name="artDelFavCanvas" Height="100" Width="480" VerticalAlignment="Top" Margin="0,180,0,0" Visibility="Collapsed">
            <Border.Background>
                <ImageBrush ImageSource="/images/sfondoOpaco.png" />
            </Border.Background>
            <TextBlock FontSize="37" Width="430" Height="50" TextAlignment="Center" FontWeight="Bold" Foreground="White"  >RIMOSSI DAI PREFERITI</TextBlock>
        </Border>

        <Border x:Name="savedNoteCanvas" Height="100" Width="430" CornerRadius="5" VerticalAlignment="Top" Margin="0,175,0,0" Visibility="Collapsed">
            <Border.Background>
                <ImageBrush ImageSource="/images/sfondoOpaco.png" />
            </Border.Background>
            <TextBlock FontSize="40" Width="430" Height="100" TextAlignment="Center" FontWeight="Bold" Foreground="White" Margin="0,15,0,0"  >NOTA SALVATA</TextBlock>
        </Border>

        <Border x:Name="deletedNoteCanvas" Height="100" Width="480" CornerRadius="0" VerticalAlignment="Top" Margin="0,175,0,0" Visibility="Collapsed">
            <Border.Background>
                <ImageBrush ImageSource="/images/sfondoOpaco.png" />
            </Border.Background>
            <TextBlock FontSize="40" Width="430" Height="100" TextAlignment="Center" FontWeight="Bold" Foreground="White" Margin="0,15,0,0" >NOTA CANCELLATA</TextBlock>
        </Border>




        <Canvas x:Name="splashScreenCanvas" Visibility="Collapsed">
            <Canvas.Background>
                <ImageBrush ImageSource="/images/sfondo.jpg"></ImageBrush>
            </Canvas.Background>
        </Canvas>


        <!--<Canvas Width="53" Height="53" Background="Gray" Margin="0,16,45,0"  VerticalAlignment="Top" HorizontalAlignment="Right"></Canvas>
        <Button x:Name="refreshButton" Width="77" Height="77" BorderThickness="0" Margin="0,4,33,0" VerticalAlignment="Top" HorizontalAlignment="Right" Click="refreshButton_Click">
            <Button.Background>
            <ImageBrush ImageSource="/images/reload-icon_transparent.png"></ImageBrush>
            </Button.Background>
        </Button>-->
        
        
    </Grid>
 
    <!--Sample code showing usage of ApplicationBar-->
    <phone:PhoneApplicationPage.ApplicationBar>
        <shell:ApplicationBar IsVisible="false" IsMenuEnabled="True" Mode="Default" >
            <shell:ApplicationBarIconButton x:Name="appBarPrev" IconUri="/images/appbar.back.rest.png" Text="precedente" Click="appBarPrev_Click" />
            <shell:ApplicationBarIconButton x:Name="appBarDelete" IsEnabled="False" IconUri="/images/appbar.delete.rest.png" Text="rimuovi selezionati" Click="appBarDelete_Click" />
            <shell:ApplicationBarIconButton x:Name="appBarAddFavorites" IconUri="/images/appbar.favs.addto.rest.png" Text="aggiungi ai preferiti" Click="appBarAddFavorites_Click" />
            <shell:ApplicationBarIconButton x:Name="appBarNext" IconUri="/images/appbar.next.rest.png" Text="successivo" Click="appBarNext_Click" />
            <shell:ApplicationBar.MenuItems>
                <!--<shell:ApplicationBarMenuItem x:Name="appBarZoomIn" Text="zoom in" Click="appBarZoomIn_Click" />
                <shell:ApplicationBarMenuItem x:Name="appBarZoomOut" Text="zoom out" Click="appBarZoomOut_Click"/>-->
                <!--<shell:ApplicationBarMenuItem x:Name="appBarFullScreen" Text="schermo intero" Click="appBarFullScreen_Click"/>-->
                <shell:ApplicationBarMenuItem x:Name="appBarAddNote" Text="aggiungi nota" Click="appBarAddNote_Click"/>
                <shell:ApplicationBarMenuItem x:Name="appBarCondividi" Text="condividi" Click="appBarCondividi_Click"/>
                <shell:ApplicationBarMenuItem x:Name="appBarInfo" Text="informazioni" Click="appBarinfo_Click"/>
            </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
42 Diff Diff LTardio picture LTardio Tue 30 Jul, 2013 18:51:03 +0000
41 Diff Diff LTardio picture LTardio Tue 30 Jul, 2013 06:53:05 +0000
40 Diff Diff LTardio picture LTardio Fri 26 Jul, 2013 19:41:00 +0000
39 Diff Diff LTardio picture LTardio Wed 24 Jul, 2013 18:54:33 +0000
38 Diff Diff LTardio picture LTardio Mon 22 Jul, 2013 18:29:47 +0000
37 Diff Diff LTardio picture LTardio Thu 18 Jul, 2013 20:17:52 +0000
36 Diff Diff LTardio picture LTardio Mon 15 Jul, 2013 18:56:24 +0000
35 Diff Diff LTardio picture LTardio Fri 12 Jul, 2013 19:34:36 +0000
34 Diff Diff LTardio picture LTardio Fri 12 Jul, 2013 15:13:48 +0000
33 LTardio picture LTardio Thu 11 Jul, 2013 16:57:32 +0000