|
@@ -19,15 +19,29 @@ |
19 |
19 |
|
|
20 |
20 |
|
|
21 |
21 |
|
<!--LayoutRoot is the root grid where all page content is placed--> |
22 |
|
- |
<Grid x:Name="LayoutRoot" Background="Transparent"> |
23 |
|
- |
<Image Width="35" Height="35" Margin="20,20,0,0" VerticalAlignment="Top" HorizontalAlignment="Left" Source="/images/ic_logo_loader.png"></Image> |
|
22 |
+ |
<Grid x:Name="LayoutRoot" Background="White"> |
|
23 |
+ |
|
|
24 |
+ |
|
|
25 |
+ |
|
|
26 |
+ |
<Image Width="50" Height="50" Margin="20,20,0,0" VerticalAlignment="Top" HorizontalAlignment="Left" Source="/images/ic_logo_loader.png"></Image> |
|
27 |
+ |
|
24 |
28 |
|
<!--Pivot Control--> |
25 |
|
- |
<controls:Pivot Title=" NOTIZIE TUTTO LAVORO" Margin="0,0,0,0" Foreground="{StaticResource PhoneAccentBrush}" x:Name="pivot" SelectionChanged="Pivot_SelectionChanged"> |
|
29 |
+ |
<controls:Pivot Title=" POWERED BY NEXTREK" Margin="0,30,0,0" Foreground="{StaticResource PhoneAccentBrush}" x:Name="pivot" SelectionChanged="Pivot_SelectionChanged" ManipulationCompleted="pivot_ManipulationCompleted" Loaded="pivot_Loaded" > |
|
30 |
+ |
|
|
31 |
+ |
<controls:Pivot.TitleTemplate> |
|
32 |
+ |
<DataTemplate> |
|
33 |
+ |
<Grid Margin="0,0,0,0"> |
|
34 |
+ |
<TextBlock FontSize="20" FontFamily="Segoe WP" Text="{Binding}" Foreground="LightGray"></TextBlock> |
|
35 |
+ |
</Grid> |
|
36 |
+ |
</DataTemplate> |
|
37 |
+ |
</controls:Pivot.TitleTemplate> |
|
38 |
+ |
|
|
39 |
+ |
|
26 |
40 |
|
|
27 |
41 |
|
<!--Pivot item one--> |
28 |
42 |
|
<controls:PivotItem Header="notizie"> |
29 |
43 |
|
<!--Double line list with text wrapping--> |
30 |
|
- |
<ListBox Name="feedListBoxNews1" Visibility="Collapsed" Margin="-12,-20,-12,0" ItemsSource="{Binding Items}" ScrollViewer.VerticalScrollBarVisibility="Auto" Hold="feedListBoxNews1_Hold" SelectionChanged="feedListBox_SelectionChanged" LayoutUpdated="feedListBoxNews1_LayoutUpdated" > |
|
44 |
+ |
<ListBox Name="feedListBoxNews1" Visibility="Collapsed" Margin="-12,-20,-12,0" ItemsSource="{Binding Items}" ScrollViewer.VerticalScrollBarVisibility="Auto" Hold="feedListBoxNews1_Hold" SelectionChanged="feedListBox_SelectionChanged" LayoutUpdated="feedListBoxNews1_LayoutUpdated" ManipulationCompleted="feedListBoxNews1_ManipulationCompleted" Loaded="feedListBoxNews1_Loaded"> |
31 |
45 |
|
|
32 |
46 |
|
<ListBox.ItemTemplate> |
33 |
47 |
|
<DataTemplate> |
|
@@ -64,13 +78,13 @@ |
64 |
78 |
|
<ListBox Name="feedListPreferiti" Margin="0,-20,-12,0" Foreground="Red" ItemsSource="{Binding Items}" ScrollViewer.VerticalScrollBarVisibility="Auto" > |
65 |
79 |
|
<ListBox.ItemTemplate> |
66 |
80 |
|
<DataTemplate> |
67 |
|
- |
<StackPanel Orientation="Horizontal"> |
68 |
|
- |
<CheckBox IsChecked="{Binding IsChecked}" Checked="CheckBox_Checked" Unchecked="CheckBox_Unchecked" /> |
|
81 |
+ |
<StackPanel Orientation="Horizontal" Background="{StaticResource PhoneAccentBrush}"> |
|
82 |
+ |
<CheckBox IsChecked="{Binding IsChecked}" Checked="CheckBox_Checked" Unchecked="CheckBox_Unchecked" Margin="10,0,0,0" /> |
69 |
83 |
|
<StackPanel x:Name="boxArticoloPreferito" Width="420" Orientation="Vertical" Margin="0,0,0,0" Tap="articoloPreferitoPanel_Tap" Loaded="boxArticoloPreferito_Loaded"> |
70 |
84 |
|
<!--Replace rectangle with image--> |
71 |
85 |
|
|
72 |
86 |
|
<!--<Image Height="200" Width="200" Margin="12,0,9,0" Source="{Binding Links[1].Uri}" VerticalAlignment="Top" />--> |
73 |
|
- |
<TextBlock x:Name="titolo1" Text="{Binding Titolo}" Width="400" Height="60" VerticalAlignment="Stretch" HorizontalAlignment="Center" TextAlignment="Left" Margin="20,5,0,0" TextWrapping="Wrap" FontFamily="Arial Black" FontSize="20" Foreground="#FF008DFF" ManipulationCompleted="titolo1_ManipulationCompleted" LayoutUpdated="titolo1_LayoutUpdated"></TextBlock> |
|
87 |
+ |
<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" ManipulationCompleted="titolo1_ManipulationCompleted" LayoutUpdated="titolo1_LayoutUpdated"></TextBlock> |
74 |
88 |
|
<TextBlock x:Name="testo1" Text="{Binding Testo}" Height="65" TextWrapping="Wrap" Margin="22,0,32,0" FontFamily="Arial" FontSize="18" VerticalAlignment="Top" Foreground="Black"/> |
75 |
89 |
|
<TextBlock x:Name="data1" Text="{Binding DataPub}" TextWrapping="Wrap" Margin="22,0,12,8" FontFamily="Arial" FontSize="18" Foreground="Green"/> |
76 |
90 |
|
<Image Source="/images/separator.png"></Image> |
|
@@ -79,6 +93,9 @@ |
79 |
93 |
|
</DataTemplate> |
80 |
94 |
|
</ListBox.ItemTemplate> |
81 |
95 |
|
</ListBox> |
|
96 |
+ |
|
|
97 |
+ |
|
|
98 |
+ |
|
82 |
99 |
|
</controls:PivotItem> |
83 |
100 |
|
|
84 |
101 |
|
<!--Pivot item three--> |
|
@@ -106,6 +123,8 @@ |
106 |
123 |
|
</controls:PivotItem> |
107 |
124 |
|
|
108 |
125 |
|
</controls:Pivot> |
|
126 |
+ |
|
|
127 |
+ |
<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> |
109 |
128 |
|
|
110 |
129 |
|
<StackPanel x:Name="loadingPanel" Orientation="Vertical" VerticalAlignment="Center" Width="480"> |
111 |
130 |
|
<TextBlock HorizontalAlignment="Center" Foreground="{StaticResource PhoneAccentBrush}">Caricamento</TextBlock> |
|
@@ -117,9 +136,23 @@ |
117 |
136 |
|
<StackPanel Orientation="Vertical" Width="490"> |
118 |
137 |
|
|
119 |
138 |
|
<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> |
120 |
|
- |
<TextBlock x:Name="dateCanvas" Width="450" Margin="20,0,20,20" FontFamily="Arial" FontSize="18" Foreground="Green"></TextBlock> |
121 |
|
- |
|
122 |
|
- |
<Grid x:Name="grigliaTesto" Height="600"> |
|
139 |
+ |
<TextBlock x:Name="dateCanvas" Width="450" Margin="20,0,20,5" FontFamily="Arial" FontSize="18" Foreground="Green"></TextBlock> |
|
140 |
+ |
<StackPanel Orientation="Vertical"> |
|
141 |
+ |
<StackPanel x:Name="editNotePanel" Orientation="Horizontal" Width="200" Height="100" Margin="250,0,0,0" Visibility="Collapsed" > |
|
142 |
+ |
<Button x:Name="deleteNoteButton" Height="100" Width="100" BorderThickness="0" Click="deleteNoteButton_Click"> |
|
143 |
+ |
<Button.Background> |
|
144 |
+ |
<ImageBrush ImageSource="/images/appbar.delete.rest.black.png"></ImageBrush> |
|
145 |
+ |
</Button.Background> |
|
146 |
+ |
</Button> |
|
147 |
+ |
<Button x:Name="saveNoteButton" Height="100" Width="100" Click="saveNoteButton_Click"> |
|
148 |
+ |
<Button.Background> |
|
149 |
+ |
<ImageBrush ImageSource="/images/appbar.save.rest.black.png"></ImageBrush> |
|
150 |
+ |
</Button.Background> |
|
151 |
+ |
</Button> |
|
152 |
+ |
</StackPanel> |
|
153 |
+ |
<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> |
|
154 |
+ |
</StackPanel> |
|
155 |
+ |
<Grid x:Name="grigliaTesto" > |
123 |
156 |
|
<ScrollViewer x:Name="scroller" Canvas.Top="0" Canvas.Left="5"> |
124 |
157 |
|
<TextBlock x:Name="textCanvas" ScrollViewer.VerticalScrollBarVisibility="Auto" VerticalAlignment="Stretch" Width="450" Margin="0,0,0,20" TextWrapping="Wrap" TextAlignment="Left" FontFamily="Arial" FontSize="20" Foreground="Black" ></TextBlock> |
125 |
158 |
|
</ScrollViewer> |
|
@@ -129,11 +162,29 @@ |
129 |
162 |
|
|
130 |
163 |
|
</Canvas> |
131 |
164 |
|
|
|
165 |
+ |
|
|
166 |
+ |
<TextBlock 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> |
|
167 |
+ |
|
|
168 |
+ |
<Button x:Name="refreshButton" Width="77" Height="77" BorderThickness="0" Margin="0,4,33,0" VerticalAlignment="Top" HorizontalAlignment="Right" Click="refreshButton_Click"> |
|
169 |
+ |
<Button.Background> |
|
170 |
+ |
<ImageBrush ImageSource="/images/reload_04P.png"></ImageBrush> |
|
171 |
+ |
</Button.Background> |
|
172 |
+ |
</Button> |
|
173 |
+ |
|
|
174 |
+ |
|
|
175 |
+ |
<!--<Canvas Width="53" Height="53" Background="Gray" Margin="0,16,45,0" VerticalAlignment="Top" HorizontalAlignment="Right"></Canvas> |
|
176 |
+ |
<Button x:Name="refreshButton" Width="77" Height="77" BorderThickness="0" Margin="0,4,33,0" VerticalAlignment="Top" HorizontalAlignment="Right" Click="refreshButton_Click"> |
|
177 |
+ |
<Button.Background> |
|
178 |
+ |
<ImageBrush ImageSource="/images/reload-icon_transparent.png"></ImageBrush> |
|
179 |
+ |
</Button.Background> |
|
180 |
+ |
</Button>--> |
|
181 |
+ |
|
|
182 |
+ |
|
132 |
183 |
|
</Grid> |
133 |
184 |
|
|
134 |
185 |
|
<!--Sample code showing usage of ApplicationBar--> |
135 |
186 |
|
<phone:PhoneApplicationPage.ApplicationBar> |
136 |
|
- |
<shell:ApplicationBar IsVisible="True" IsMenuEnabled="True" Mode="Minimized" > |
|
187 |
+ |
<shell:ApplicationBar IsVisible="True" IsMenuEnabled="True" Mode="Default" > |
137 |
188 |
|
<shell:ApplicationBarIconButton x:Name="appBarPrev" IconUri="/images/appbar.back.rest.png" Text="precedente" Click="appBarPrev_Click" /> |
138 |
189 |
|
<shell:ApplicationBarIconButton x:Name="appBarDelete" IconUri="/images/appbar.delete.rest.png" Text="rimuovi selezionati" Click="appBarDelete_Click" /> |
139 |
190 |
|
<shell:ApplicationBarIconButton x:Name="appBarAddFavorites" IconUri="/images/appbar.favs.addto.rest.png" Text="aggiungi ai preferiti" Click="appBarAddFavorites_Click" /> |
|
@@ -141,6 +192,7 @@ |
141 |
192 |
|
<shell:ApplicationBar.MenuItems> |
142 |
193 |
|
<shell:ApplicationBarMenuItem x:Name="appBarZoomIn" Text="zoom in" Click="appBarZoomIn_Click" /> |
143 |
194 |
|
<shell:ApplicationBarMenuItem x:Name="appBarZoomOut" Text="zoom out" Click="appBarZoomOut_Click"/> |
|
195 |
+ |
<shell:ApplicationBarMenuItem x:Name="appBarAddNote" Text="aggiungi nota" Click="appBarAddNote_Click"/> |
144 |
196 |
|
<shell:ApplicationBarMenuItem x:Name="appBarCondividi" Text="condividi" Click="appBarCondividi_Click"/> |
145 |
197 |
|
<shell:ApplicationBarMenuItem x:Name="appBarInfo" Text="informazioni" Click="appBarinfo_Click"/> |
146 |
198 |
|
</shell:ApplicationBar.MenuItems> |