Subversion Repository Public Repository

Nextrek

Diff Revisions 39 vs 40 for /WindowsPhone/NotizieTL/NotizieTL/MainPage.xaml

Diff revisions: vs.
  @@ -8,13 +8,13 @@
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="696"
11 + mc:Ignorable="d" d:DesignWidth="480" d:DesignHeight="768"
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 - SupportedOrientations="Portrait" Orientation="Portrait"
17 - shell:SystemTray.IsVisible="True" Loaded="PhoneApplicationPage_Loaded" DataContext="{Binding}" BackKeyPress="PhoneApplicationPage_BackKeyPress" >
16 + SupportedOrientations="PortraitOrLandscape" Orientation="Portrait"
17 + shell:SystemTray.IsVisible="True" Loaded="PhoneApplicationPage_Loaded" DataContext="{Binding}" BackKeyPress="PhoneApplicationPage_BackKeyPress" OrientationChanged="PhoneApplicationPage_OrientationChanged">
18 18
19 19
20 20
  @@ -136,33 +136,37 @@
136 136
137 137 <Canvas x:Name="notiziaCanvas" Visibility="Collapsed" Background="White">
138 138
139 - <StackPanel Orientation="Vertical" Width="490">
139 + <StackPanel x:Name="pannelloNotizie" Orientation="Vertical" Width="490">
140 140
141 141 <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>
142 142 <TextBlock x:Name="dateCanvas" Width="450" Margin="20,0,20,5" FontFamily="Arial" FontSize="18" Foreground="Green"></TextBlock>
143 - <StackPanel Orientation="Vertical">
144 - <StackPanel x:Name="editNotePanel" Orientation="Horizontal" Width="200" Height="100" Margin="250,0,0,0" Visibility="Collapsed" >
145 - <Button x:Name="deleteNoteButton" Height="100" Width="100" BorderThickness="0" Click="deleteNoteButton_Click">
146 - <Button.Background>
147 - <ImageBrush ImageSource="/images/appbar.delete.rest.black.png"></ImageBrush>
148 - </Button.Background>
149 - </Button>
150 - <Button x:Name="saveNoteButton" Height="100" Width="100" Click="saveNoteButton_Click">
151 - <Button.Background>
152 - <ImageBrush ImageSource="/images/appbar.save.rest.black.png"></ImageBrush>
153 - </Button.Background>
154 - </Button>
155 - </StackPanel>
156 - <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>
143 + <StackPanel>
144 + <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>
157 145 </StackPanel>
158 - <Grid x:Name="grigliaTesto" >
159 - <ScrollViewer x:Name="scroller" Canvas.Top="0" Canvas.Left="5">
160 - <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>
161 - </ScrollViewer>
146 +
147 + <Grid x:Name="grigliaTesto" Margin="-10,0,0,0" >
148 + <ScrollViewer x:Name="webScroller">
149 + <phone:WebBrowser x:Name="webBrowser1" Margin="0,-23,0,0" />
150 + </ScrollViewer>
151 + <ScrollViewer x:Name="scroller" Visibility="Collapsed" Canvas.Top="0" Canvas.Left="5">
152 + <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>
153 +
154 + </ScrollViewer>
162 155 </Grid>
163 156
164 157 </StackPanel>
165 -
158 + <StackPanel x:Name="editNotePanel" Orientation="Horizontal" Width="200" Height="100" Margin="260,75,0,0" Visibility="Collapsed" >
159 + <Button x:Name="deleteNoteButton" Height="100" Width="100" BorderThickness="0" Click="deleteNoteButton_Click">
160 + <Button.Background>
161 + <ImageBrush ImageSource="/images/appbar.delete.rest.black.png"></ImageBrush>
162 + </Button.Background>
163 + </Button>
164 + <Button x:Name="saveNoteButton" Height="100" Width="100" BorderThickness="0" Click="saveNoteButton_Click">
165 + <Button.Background>
166 + <ImageBrush ImageSource="/images/appbar.save.rest.black.png"></ImageBrush>
167 + </Button.Background>
168 + </Button>
169 + </StackPanel>
166 170 </Canvas>
167 171
168 172
  @@ -194,14 +198,15 @@
194 198
195 199 <!--Sample code showing usage of ApplicationBar-->
196 200 <phone:PhoneApplicationPage.ApplicationBar>
197 - <shell:ApplicationBar IsVisible="True" IsMenuEnabled="True" Mode="Default" >
201 + <shell:ApplicationBar IsVisible="false" IsMenuEnabled="True" Mode="Default" >
198 202 <shell:ApplicationBarIconButton x:Name="appBarPrev" IconUri="/images/appbar.back.rest.png" Text="precedente" Click="appBarPrev_Click" />
199 203 <shell:ApplicationBarIconButton x:Name="appBarDelete" IconUri="/images/appbar.delete.rest.png" Text="rimuovi selezionati" Click="appBarDelete_Click" />
200 204 <shell:ApplicationBarIconButton x:Name="appBarAddFavorites" IconUri="/images/appbar.favs.addto.rest.png" Text="aggiungi ai preferiti" Click="appBarAddFavorites_Click" />
201 205 <shell:ApplicationBarIconButton x:Name="appBarNext" IconUri="/images/appbar.next.rest.png" Text="successivo" Click="appBarNext_Click" />
202 206 <shell:ApplicationBar.MenuItems>
203 - <shell:ApplicationBarMenuItem x:Name="appBarZoomIn" Text="zoom in" Click="appBarZoomIn_Click" />
204 - <shell:ApplicationBarMenuItem x:Name="appBarZoomOut" Text="zoom out" Click="appBarZoomOut_Click"/>
207 + <!--<shell:ApplicationBarMenuItem x:Name="appBarZoomIn" Text="zoom in" Click="appBarZoomIn_Click" />
208 + <shell:ApplicationBarMenuItem x:Name="appBarZoomOut" Text="zoom out" Click="appBarZoomOut_Click"/>-->
209 + <shell:ApplicationBarMenuItem x:Name="appBarFullScreen" Text="schermo intero" Click="appBarFullScreen_Click"/>
205 210 <shell:ApplicationBarMenuItem x:Name="appBarAddNote" Text="aggiungi nota" Click="appBarAddNote_Click"/>
206 211 <shell:ApplicationBarMenuItem x:Name="appBarCondividi" Text="condividi" Click="appBarCondividi_Click"/>
207 212 <shell:ApplicationBarMenuItem x:Name="appBarInfo" Text="informazioni" Click="appBarinfo_Click"/>