|
@@ -8,63 +8,74 @@ |
8 |
8 |
|
xmlns:controls="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls" |
9 |
9 |
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
10 |
10 |
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
11 |
|
- |
mc:Ignorable="d" d:DesignWidth="480" d:DesignHeight="768" |
|
11 |
+ |
mc:Ignorable="d" d:DesignWidth="480" d:DesignHeight="696" |
12 |
12 |
|
d:DataContext="{d:DesignData SampleData/MainViewModelSampleData.xaml}" |
13 |
13 |
|
FontFamily="{StaticResource PhoneFontFamilyNormal}" |
14 |
14 |
|
FontSize="{StaticResource PhoneFontSizeNormal}" |
15 |
15 |
|
Foreground="{StaticResource PhoneForegroundBrush}" |
16 |
16 |
|
SupportedOrientations="Portrait" Orientation="Portrait" |
17 |
|
- |
shell:SystemTray.IsVisible="True" Loaded="PhoneApplicationPage_Loaded" DataContext="{Binding}"> |
|
17 |
+ |
shell:SystemTray.IsVisible="True" Loaded="PhoneApplicationPage_Loaded" DataContext="{Binding}" LayoutUpdated="PhoneApplicationPage_LayoutUpdated" BackKeyPress="PhoneApplicationPage_BackKeyPress" > |
18 |
18 |
|
|
19 |
19 |
|
<!--LayoutRoot is the root grid where all page content is placed--> |
20 |
20 |
|
<Grid x:Name="LayoutRoot" Background="Transparent"> |
|
21 |
+ |
<Image Width="35" Height="35" Margin="20,20,0,0" VerticalAlignment="Top" HorizontalAlignment="Left" Source="/images/ic_logo_loader.png"></Image> |
21 |
22 |
|
<!--Pivot Control--> |
22 |
|
- |
<controls:Pivot Title="NOTIZIE TUTTO LAVORO" x:Name="pivot" SelectionChanged="Pivot_SelectionChanged"> |
|
23 |
+ |
<controls:Pivot Title=" NOTIZIE TUTTO LAVORO" Margin="0,0,0,0" Foreground="{StaticResource PhoneAccentBrush}" x:Name="pivot" SelectionChanged="Pivot_SelectionChanged"> |
|
24 |
+ |
|
23 |
25 |
|
<!--Pivot item one--> |
24 |
|
- |
<controls:PivotItem Header="first"> |
|
26 |
+ |
<controls:PivotItem Header="notizie"> |
25 |
27 |
|
<!--Double line list with text wrapping--> |
26 |
|
- |
<ListBox Name="feedListBoxNews1" Margin="0,-20,-12,81" ItemsSource="{Binding Items}" ScrollViewer.VerticalScrollBarVisibility="Auto" Hold="feedListBoxNews1_Hold" SelectionChanged="feedListBox_SelectionChanged" Background="#56000000"> |
|
28 |
+ |
<ListBox Name="feedListBoxNews1" Visibility="Collapsed" Margin="0,-20,-12,5" ItemsSource="{Binding Items}" ScrollViewer.VerticalScrollBarVisibility="Auto" Hold="feedListBoxNews1_Hold" SelectionChanged="feedListBox_SelectionChanged" LayoutUpdated="feedListBoxNews1_LayoutUpdated"> |
27 |
29 |
|
|
28 |
30 |
|
|
29 |
31 |
|
|
30 |
32 |
|
<ListBox.ItemTemplate> |
31 |
33 |
|
<DataTemplate> |
32 |
34 |
|
|
33 |
|
- |
<StackPanel x:Name="pannello1" Orientation="Vertical" Margin="0,0,0,17"> |
|
35 |
+ |
|
|
36 |
+ |
|
|
37 |
+ |
<Border x:Name="boxArticolo" Background="Gray" Margin="0,0,0,17" Width="455" CornerRadius="10" Padding="0" Hold="boxArticolo_Hold"> |
34 |
38 |
|
|
35 |
39 |
|
<toolkit:ContextMenuService.ContextMenu> |
36 |
|
- |
<toolkit:ContextMenu VerticalOffset="50.0"> |
|
40 |
+ |
<toolkit:ContextMenu VerticalOffset="0.0"> |
37 |
41 |
|
<toolkit:MenuItem Header="Aggiungi ai preferiti" Click="MenuItem_Click"/> |
38 |
42 |
|
</toolkit:ContextMenu> |
39 |
43 |
|
</toolkit:ContextMenuService.ContextMenu> |
40 |
44 |
|
|
41 |
|
- |
<!--Replace rectangle with image--> |
42 |
|
- |
<StackPanel Orientation="Horizontal" Height="120" Background="#FF1F1F1F"> |
43 |
|
- |
<!--<Image Height="200" Width="200" Margin="12,0,9,0" Source="{Binding Links[1].Uri}" VerticalAlignment="Top" />--> |
44 |
|
- |
<TextBlock x:Name="titolo1" 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> |
|
45 |
+ |
<StackPanel x:Name="pannello1" Orientation="Vertical" Width="455" > |
|
46 |
+ |
|
|
47 |
+ |
<!--Replace rectangle with image--> |
|
48 |
+ |
<Border Background="#FF1F1F1F" CornerRadius="10,10,0,0" Padding="0"> |
|
49 |
+ |
<StackPanel Orientation="Horizontal" Height="120" > |
|
50 |
+ |
<!--<Image Height="200" Width="200" Margin="12,0,9,0" Source="{Binding Links[1].Uri}" VerticalAlignment="Top" />--> |
|
51 |
+ |
<TextBlock x:Name="titolo1" Text="{Binding Titolo}" Width="420" VerticalAlignment="Center" HorizontalAlignment="Center" TextAlignment="Center" Margin="17,0,17,0" TextWrapping="Wrap" FontFamily="Arial Black" FontSize="20" Foreground="#FF008DFF" ManipulationCompleted="titolo1_ManipulationCompleted" LayoutUpdated="titolo1_LayoutUpdated"></TextBlock> |
|
52 |
+ |
</StackPanel> |
|
53 |
+ |
</Border> |
|
54 |
+ |
<TextBlock x:Name="testo1" Text="{Binding Testo}" Height="65" TextWrapping="Wrap" Margin="22,10,12,5" FontFamily="Arial" FontSize="18" VerticalAlignment="Top" Foreground="White"/> |
|
55 |
+ |
<TextBlock x:Name="data1" Text="{Binding DataPub}" TextWrapping="Wrap" Margin="22,0,12,8" FontFamily="Arial" FontSize="18" Foreground="GreenYellow"/> |
45 |
56 |
|
</StackPanel> |
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"/> |
47 |
|
- |
<TextBlock x:Name="data1" Text="{Binding DataPub}" TextWrapping="Wrap" Margin="22,0,12,0" FontFamily="Arial" FontSize="18" VerticalAlignment="Top" Foreground="Coral"/> |
48 |
|
- |
</StackPanel> |
|
57 |
+ |
|
|
58 |
+ |
</Border> |
49 |
59 |
|
|
50 |
60 |
|
|
51 |
61 |
|
|
52 |
62 |
|
</DataTemplate> |
53 |
63 |
|
</ListBox.ItemTemplate> |
54 |
64 |
|
|
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> |
|
65 |
+ |
|
|
66 |
+ |
|
|
67 |
+ |
|
60 |
68 |
|
|
61 |
69 |
|
</ListBox> |
|
70 |
+ |
|
|
71 |
+ |
|
|
72 |
+ |
|
62 |
73 |
|
</controls:PivotItem> |
63 |
74 |
|
|
64 |
75 |
|
<!--Pivot item two--> |
65 |
76 |
|
<controls:PivotItem Header="preferiti"> |
66 |
77 |
|
<!--Triple line list no text wrapping--> |
67 |
|
- |
<ListBox Name="feedListPreferiti" Margin="0,-20,-12,81" Foreground="Red" ItemsSource="{Binding Items}" ScrollViewer.VerticalScrollBarVisibility="Auto" Background="#56000000"> |
|
78 |
+ |
<ListBox Name="feedListPreferiti" Margin="0,-20,-12,5" Foreground="Red" ItemsSource="{Binding Items}" ScrollViewer.VerticalScrollBarVisibility="Auto" > |
68 |
79 |
|
<ListBox.ItemTemplate> |
69 |
80 |
|
<DataTemplate> |
70 |
81 |
|
<StackPanel Orientation="Horizontal"> |
|
@@ -85,9 +96,9 @@ |
85 |
96 |
|
</controls:PivotItem> |
86 |
97 |
|
|
87 |
98 |
|
<!--Pivot item three--> |
88 |
|
- |
<controls:PivotItem Header="third"> |
|
99 |
+ |
<controls:PivotItem Header="app"> |
89 |
100 |
|
<!--Triple line list no text wrapping--> |
90 |
|
- |
<ListBox Name="feedListBoxNews3" Margin="0,-20,-12,81" ItemsSource="{Binding Items}" ScrollViewer.VerticalScrollBarVisibility="Auto" SelectionChanged="feedListBox_SelectionChanged" Background="#56000000"> |
|
101 |
+ |
<ListBox Name="feedListBoxNews3" Margin="0,-20,-12,5" ItemsSource="{Binding Items}" ScrollViewer.VerticalScrollBarVisibility="Auto" SelectionChanged="feedListBox3_SelectionChanged" > |
91 |
102 |
|
<ListBox.ItemTemplate> |
92 |
103 |
|
<DataTemplate> |
93 |
104 |
|
|
|
@@ -107,15 +118,37 @@ |
107 |
118 |
|
</ListBox.ItemTemplate> |
108 |
119 |
|
</ListBox> |
109 |
120 |
|
</controls:PivotItem> |
110 |
|
- |
|
|
121 |
+ |
|
111 |
122 |
|
</controls:Pivot> |
|
123 |
+ |
|
|
124 |
+ |
<StackPanel x:Name="loadingPanel" Orientation="Vertical" VerticalAlignment="Center" Width="480"> |
|
125 |
+ |
<TextBlock HorizontalAlignment="Center" Foreground="{StaticResource PhoneAccentBrush}">Caricamento</TextBlock> |
|
126 |
+ |
<toolkit:PerformanceProgressBar Name="caricamentoProgress" IsIndeterminate="True" Foreground="{StaticResource PhoneAccentBrush}" Visibility="Visible"/> |
|
127 |
+ |
</StackPanel> |
|
128 |
+ |
|
|
129 |
+ |
<Canvas x:Name="notiziaCanvas" Visibility="Collapsed" Background="White"> |
|
130 |
+ |
|
|
131 |
+ |
<StackPanel Orientation="Vertical" Width="490"> |
|
132 |
+ |
|
|
133 |
+ |
<TextBlock x:Name="titleCanvas" Width="450" Margin="20,20,20,20" TextWrapping="Wrap" TextAlignment="Left" FontFamily="Arial Black" FontSize="20" Foreground="#FF008DFF" ></TextBlock> |
|
134 |
+ |
<TextBlock x:Name="dateCanvas" Width="450" Margin="20,0,20,20" FontFamily="Arial" FontSize="18" Foreground="Green"></TextBlock> |
|
135 |
+ |
|
|
136 |
+ |
<ScrollViewer x:Name="scrollTesto" DataContext="{Binding}" Height="400" Canvas.Top="10" Canvas.Left="-25" ScrollViewer.VerticalScrollBarVisibility="Auto"> |
|
137 |
+ |
<TextBlock x:Name="textCanvas" Height="400" Width="450" Margin="20,0,30,20" TextWrapping="Wrap" TextAlignment="Left" FontFamily="Arial" FontSize="20" VerticalAlignment="Top" Foreground="Black" ></TextBlock> |
|
138 |
+ |
</ScrollViewer> |
|
139 |
+ |
|
|
140 |
+ |
</StackPanel> |
|
141 |
+ |
|
|
142 |
+ |
</Canvas> |
|
143 |
+ |
|
112 |
144 |
|
</Grid> |
113 |
145 |
|
|
114 |
146 |
|
<!--Sample code showing usage of ApplicationBar--> |
115 |
147 |
|
<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" /> |
|
148 |
+ |
<shell:ApplicationBar IsVisible="True" IsMenuEnabled="True" Mode="Default" > |
|
149 |
+ |
<shell:ApplicationBarIconButton x:Name="appBarDelete" IconUri="/images/appbar.delete.rest.png" Text="rimuovi selezionati" Click="appBarDelete_Click" /> |
|
150 |
+ |
<shell:ApplicationBarIconButton x:Name="appBarRefresh" IconUri="/images/appbar.refresh.rest.png" Text="ricarica" Click="appBarRefresh_Click" /> |
|
151 |
+ |
<shell:ApplicationBarIconButton x:Name="appBarinfo" IconUri="/images/appbar.info.rest2.png" Text="info" Click="appBarinfo_Click" /> |
119 |
152 |
|
<!--<shell:ApplicationBar.MenuItems> |
120 |
153 |
|
<shell:ApplicationBarMenuItem Text="MenuItem 1"/> |
121 |
154 |
|
<shell:ApplicationBarMenuItem Text="MenuItem 2"/> |