|
@@ -1,5 +1,6 @@ |
1 |
1 |
|
<phone:PhoneApplicationPage |
2 |
2 |
|
x:Class="NotizieTL.MainPage" |
|
3 |
+ |
xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit" |
3 |
4 |
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
4 |
5 |
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
5 |
6 |
|
xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone" |
|
@@ -22,30 +23,54 @@ |
22 |
23 |
|
<!--Pivot item one--> |
23 |
24 |
|
<controls:PivotItem Header="first"> |
24 |
25 |
|
<!--Double line list with text wrapping--> |
25 |
|
- |
<ListBox Name="feedListBoxNews1" Margin="0,-20,-12,81" ItemsSource="{Binding Items}" ScrollViewer.VerticalScrollBarVisibility="Auto" SelectionChanged="feedListBox_SelectionChanged" Background="#56000000"> |
|
26 |
+ |
<ListBox Name="feedListBoxNews1" Margin="0,-20,-12,81" ItemsSource="{Binding Items}" ScrollViewer.VerticalScrollBarVisibility="Auto" Hold="feedListBoxNews1_Hold" SelectionChanged="feedListBox_SelectionChanged" Background="#56000000"> |
|
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> |
|
33 |
+ |
|
26 |
34 |
|
<ListBox.ItemTemplate> |
27 |
35 |
|
<DataTemplate> |
28 |
|
- |
|
|
36 |
+ |
|
29 |
37 |
|
<StackPanel x:Name="pannello1" Orientation="Vertical" Margin="0,0,0,17"> |
|
38 |
+ |
|
30 |
39 |
|
<!--Replace rectangle with image--> |
31 |
40 |
|
<StackPanel Orientation="Horizontal" Height="120" Background="#FF1F1F1F"> |
32 |
41 |
|
<!--<Image Height="200" Width="200" Margin="12,0,9,0" Source="{Binding Links[1].Uri}" VerticalAlignment="Top" />--> |
33 |
|
- |
<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> |
|
42 |
+ |
<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> |
34 |
43 |
|
</StackPanel> |
35 |
|
- |
<TextBlock Text="{Binding Testo}" Height="65" TextWrapping="Wrap" Margin="22,5,12,10" FontFamily="Arial" FontSize="18" VerticalAlignment="Top" Foreground="White"/> |
36 |
|
- |
<TextBlock Text="{Binding DataPub}" TextWrapping="Wrap" Margin="22,0,12,0" FontFamily="Arial" FontSize="18" VerticalAlignment="Top" Foreground="Coral"/> |
|
44 |
+ |
<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 |
+ |
<TextBlock x:Name="data1" Text="{Binding DataPub}" TextWrapping="Wrap" Margin="22,0,12,0" FontFamily="Arial" FontSize="18" VerticalAlignment="Top" Foreground="Coral"/> |
37 |
46 |
|
</StackPanel> |
38 |
47 |
|
|
39 |
48 |
|
</DataTemplate> |
40 |
49 |
|
</ListBox.ItemTemplate> |
|
50 |
+ |
|
41 |
51 |
|
</ListBox> |
42 |
52 |
|
</controls:PivotItem> |
43 |
53 |
|
|
44 |
54 |
|
<!--Pivot item two--> |
45 |
55 |
|
<controls:PivotItem Header="preferiti"> |
46 |
56 |
|
<!--Triple line list no text wrapping--> |
47 |
|
- |
<ListBox Name="feedListBoxNews2" Margin="0,-20,-12,81" Foreground="Red" ItemsSource="{Binding Items}" ScrollViewer.VerticalScrollBarVisibility="Auto" SelectionChanged="feedListBox_SelectionChanged" Background="#56000000"> |
48 |
|
- |
|
|
57 |
+ |
<ListBox Name="feedListPreferiti" Margin="0,-20,-12,81" Foreground="Red" ItemsSource="{Binding Items}" ScrollViewer.VerticalScrollBarVisibility="Auto" Background="#56000000"> |
|
58 |
+ |
<ListBox.ItemTemplate> |
|
59 |
+ |
<DataTemplate> |
|
60 |
+ |
<StackPanel Orientation="Horizontal"> |
|
61 |
+ |
<CheckBox IsChecked="{Binding IsChecked}" Checked="CheckBox_Checked" Unchecked="CheckBox_Unchecked" /> |
|
62 |
+ |
<StackPanel Orientation="Vertical" Margin="0,0,0,17" Background="Gray"> |
|
63 |
+ |
<!--Replace rectangle with image--> |
|
64 |
+ |
<StackPanel Orientation="Horizontal" Height="120" Background="#FF1F1F1F"> |
|
65 |
+ |
<!--<Image Height="200" Width="200" Margin="12,0,9,0" Source="{Binding Links[1].Uri}" VerticalAlignment="Top" />--> |
|
66 |
+ |
<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> |
|
67 |
+ |
</StackPanel> |
|
68 |
+ |
<TextBlock Text="{Binding Testo}" Height="65" TextWrapping="Wrap" Margin="22,5,12,10" FontFamily="Arial" FontSize="18" VerticalAlignment="Top" Foreground="White"/> |
|
69 |
+ |
<TextBlock Text="{Binding DataPub}" TextWrapping="Wrap" Margin="22,0,12,0" FontFamily="Arial" FontSize="18" VerticalAlignment="Top" Foreground="Coral"/> |
|
70 |
+ |
</StackPanel> |
|
71 |
+ |
</StackPanel> |
|
72 |
+ |
</DataTemplate> |
|
73 |
+ |
</ListBox.ItemTemplate> |
49 |
74 |
|
</ListBox> |
50 |
75 |
|
</controls:PivotItem> |
51 |
76 |
|
|