|
@@ -19,23 +19,25 @@ |
19 |
19 |
|
<!--LayoutRoot is the root grid where all page content is placed--> |
20 |
20 |
|
<Grid x:Name="LayoutRoot" Background="Transparent"> |
21 |
21 |
|
<!--Pivot Control--> |
22 |
|
- |
<controls:Pivot Title="NOTIZIE TUTTO LAVORO"> |
|
22 |
+ |
<controls:Pivot Title="NOTIZIE TUTTO LAVORO" x:Name="pivot" SelectionChanged="Pivot_SelectionChanged"> |
23 |
23 |
|
<!--Pivot item one--> |
24 |
24 |
|
<controls:PivotItem Header="first"> |
25 |
25 |
|
<!--Double line list with text wrapping--> |
26 |
26 |
|
<ListBox Name="feedListBoxNews1" Margin="0,-20,-12,81" ItemsSource="{Binding Items}" ScrollViewer.VerticalScrollBarVisibility="Auto" Hold="feedListBoxNews1_Hold" SelectionChanged="feedListBox_SelectionChanged" Background="#56000000"> |
27 |
27 |
|
|
28 |
|
- |
<toolkit:ContextMenuService.ContextMenu> |
29 |
|
- |
<toolkit:ContextMenu VerticalOffset="50.0"> |
30 |
|
- |
<toolkit:MenuItem Header="Aggiungi ai preferiti" Click="MenuItem_Click"/> |
31 |
|
- |
</toolkit:ContextMenu> |
32 |
|
- |
</toolkit:ContextMenuService.ContextMenu> |
|
28 |
+ |
|
33 |
29 |
|
|
34 |
30 |
|
<ListBox.ItemTemplate> |
35 |
31 |
|
<DataTemplate> |
36 |
32 |
|
|
37 |
33 |
|
<StackPanel x:Name="pannello1" Orientation="Vertical" Margin="0,0,0,17"> |
38 |
|
- |
|
|
34 |
+ |
|
|
35 |
+ |
<toolkit:ContextMenuService.ContextMenu> |
|
36 |
+ |
<toolkit:ContextMenu VerticalOffset="50.0"> |
|
37 |
+ |
<toolkit:MenuItem Header="Aggiungi ai preferiti" Click="MenuItem_Click"/> |
|
38 |
+ |
</toolkit:ContextMenu> |
|
39 |
+ |
</toolkit:ContextMenuService.ContextMenu> |
|
40 |
+ |
|
39 |
41 |
|
<!--Replace rectangle with image--> |
40 |
42 |
|
<StackPanel Orientation="Horizontal" Height="120" Background="#FF1F1F1F"> |
41 |
43 |
|
<!--<Image Height="200" Width="200" Margin="12,0,9,0" Source="{Binding Links[1].Uri}" VerticalAlignment="Top" />--> |
|
@@ -44,10 +46,18 @@ |
44 |
46 |
|
<TextBlock x:Name="testo1" Text="{Binding Testo}" Height="65" TextWrapping="Wrap" Margin="22,5,12,10" FontFamily="Arial" FontSize="18" VerticalAlignment="Top" Foreground="White"/> |
45 |
47 |
|
<TextBlock x:Name="data1" Text="{Binding DataPub}" TextWrapping="Wrap" Margin="22,0,12,0" FontFamily="Arial" FontSize="18" VerticalAlignment="Top" Foreground="Coral"/> |
46 |
48 |
|
</StackPanel> |
|
49 |
+ |
|
47 |
50 |
|
|
|
51 |
+ |
|
48 |
52 |
|
</DataTemplate> |
49 |
53 |
|
</ListBox.ItemTemplate> |
50 |
54 |
|
|
|
55 |
+ |
<toolkit:ContextMenuService.ContextMenu> |
|
56 |
+ |
<toolkit:ContextMenu VerticalOffset="50.0"> |
|
57 |
+ |
<toolkit:MenuItem Header="Aggiungi ai preferiti" Click="MenuItem_Click"/> |
|
58 |
+ |
</toolkit:ContextMenu> |
|
59 |
+ |
</toolkit:ContextMenuService.ContextMenu> |
|
60 |
+ |
|
51 |
61 |
|
</ListBox> |
52 |
62 |
|
</controls:PivotItem> |
53 |
63 |
|
|
|
@@ -102,15 +112,15 @@ |
102 |
112 |
|
</Grid> |
103 |
113 |
|
|
104 |
114 |
|
<!--Sample code showing usage of ApplicationBar--> |
105 |
|
- |
<!--<phone:PhoneApplicationPage.ApplicationBar> |
106 |
|
- |
<shell:ApplicationBar IsVisible="True" IsMenuEnabled="True"> |
107 |
|
- |
<shell:ApplicationBarIconButton IconUri="/Images/appbar_button1.png" Text="Button 1"/> |
108 |
|
- |
<shell:ApplicationBarIconButton IconUri="/Images/appbar_button2.png" Text="Button 2"/> |
109 |
|
- |
<shell:ApplicationBar.MenuItems> |
|
115 |
+ |
<phone:PhoneApplicationPage.ApplicationBar> |
|
116 |
+ |
<shell:ApplicationBar IsVisible="False" IsMenuEnabled="True"> |
|
117 |
+ |
<shell:ApplicationBarIconButton x:Name="appBarDelete" IconUri="/images/appbar.delete.rest.png" Text="Rimuovi selezionati" Click="appBarDelete_Click" /> |
|
118 |
+ |
<shell:ApplicationBarIconButton x:Name="appBarRefresh" IconUri="/images/appbar.refresh.rest.png" Text="Ricarica" Click="appBarRefresh_Click" /> |
|
119 |
+ |
<!--<shell:ApplicationBar.MenuItems> |
110 |
120 |
|
<shell:ApplicationBarMenuItem Text="MenuItem 1"/> |
111 |
121 |
|
<shell:ApplicationBarMenuItem Text="MenuItem 2"/> |
112 |
|
- |
</shell:ApplicationBar.MenuItems> |
|
122 |
+ |
</shell:ApplicationBar.MenuItems>--> |
113 |
123 |
|
</shell:ApplicationBar> |
114 |
|
- |
</phone:PhoneApplicationPage.ApplicationBar>--> |
|
124 |
+ |
</phone:PhoneApplicationPage.ApplicationBar> |
115 |
125 |
|
|
116 |
126 |
|
</phone:PhoneApplicationPage> |