locked
[APP win8.1 su win10] Non riesco a navigare in una pagina RRS feed

  • Domanda

  • Ciao a tutti, come da titolo sto cercando di navigare in una pagina cosi:

    await Dispatcher.RunAsync(Windows.UI.Core.CoreDispatcherPriority.Normal, () => this.Frame.Navigate(typeof(view_talk), url));


    (come parametro ho un url valida)

    Non riesco a navigare, clicco, provo con il debugger e ci passa sopra (quindi teoricamente dovrebbe cambiare pagine), nessun errore ma la pagina non si apre, inoltre sempre con un break point noto che nella view_talk non passa neanche sul costruttore!

    fino a poco fa andava, poi ho aggiornato lo xaml (della view_talk) verso la fine (la seconda grid):

    <Page
        x:Class="Youtome.view_talk"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:local="using:Youtome"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        mc:Ignorable="d"
        Background="{ThemeResource ApplicationPageBackgroundThemeBrush}"
        >
    
        <Grid  Background="#FFFAFAFA">
    
            <Rectangle Canvas.ZIndex="10" x:Name="m_status" HorizontalAlignment="Left" VerticalAlignment="Top" Height="66" Width="400" Fill="#FF2196F3"/>
            <TextBlock x:Name="m_back" Canvas.ZIndex="20" HorizontalAlignment="Left" VerticalAlignment="Top" FontSize="34.667" Margin="3,-23,0,0" FontFamily="Assets/fontello.ttf#fontello"  Height="87" Width="42" RenderTransformOrigin="0.525,3.079" Tapped="b_back_Tapped"><Run Text=" "/><LineBreak/><Run Text="  "/><Run Text="&#xE8AC;"/></TextBlock>
            <TextBlock Foreground="White" FontSize="24" Width="300" VerticalAlignment="Top" HorizontalAlignment="Left" Canvas.ZIndex="10" x:Name="m_title" Margin="85,21,0,0">Risposte</TextBlock>
            <ProgressRing Height="100" Width="100" VerticalAlignment="Top" HorizontalAlignment="Left" x:Name="m_pr1" IsActive="False" Canvas.ZIndex="99" Background="{x:Null}" Margin="155,33.333,0,0" Grid.Row="1" ></ProgressRing>
    
    
            <Grid Canvas.ZIndex="10" x:Name="m_gridPrincipalView" VerticalAlignment="Top" HorizontalAlignment="Left" Margin="0,71,0,0" Height="455" Width="400" >
                <ScrollViewer VerticalScrollBarVisibility="Visible" Canvas.ZIndex="10" Margin="0,0,0,0" x:Name="m_ScrollPrincipal" VerticalAlignment="Top" HorizontalAlignment="Left" >
                    <Grid Canvas.ZIndex="10" Height="Auto" Width="Auto" x:Name="m_principal" Margin="0,0,0,0" VerticalAlignment="Top" HorizontalAlignment="Left" >
    
                    </Grid>
                </ScrollViewer>
    
            </Grid>
    
            <Grid Canvas.ZIndex="30" x:Name="grid_to_add_comment" Background="White" VerticalAlignment="Bottom" HorizontalAlignment="Left" Height="60" Width="400">
    
                <TextBlock x:Name="m_press_image" Canvas.ZIndex="20" HorizontalAlignment="Left" VerticalAlignment="Top" FontSize="34.667" Margin="10,11,0,0" FontFamily="Assets/fontello.ttf#fontello"  Height="43" Width="49" RenderTransformOrigin="0.525,3.079" FontWeight="Bold" Foreground="#FF434343" SelectionChanged="m_press_image_SelectionChanged" Tapped="m_press_image_Tapped">
            	<Run Text=" "/>
    
            	<Run Text="&#xE817;" FontSize="26.667"/>
                </TextBlock>
    
                <TextBox x:Name="m_text_to_write" Canvas.ZIndex="1" Margin="69,13,0,0" Text="Scrivi qui..." VerticalAlignment="Top" Foreground="#7FADA2A2" Background="{x:Null}" BorderBrush="{x:Null}" Height="37"  HorizontalAlignment="Left" Width="266" GotFocus="tb_search_GotFocus" LostFocus="tb_search_LostFocus" SelectionHighlightColor="#FF0078D7" Style="{StaticResource TextBoxStyle1}"/>
                <Image x:Name="m_image" Visibility="Collapsed" Canvas.ZIndex="40" VerticalAlignment="Top" HorizontalAlignment="Left" Width="65" Height="60" Tapped="m_image_Tapped" Stretch="UniformToFill"></Image>
                
                <TextBlock x:Name="m_press_send" Canvas.ZIndex="20" HorizontalAlignment="Right" VerticalAlignment="Top" FontSize="27" Margin="0,-12,3,0" FontFamily="Assets/fontello.ttf#fontello"  Height="68" Width="48" RenderTransformOrigin="0.525,3.079" FontWeight="Bold" Tapped="but_filt_Tapped" Foreground="#FF434343">
                	<Run Text=" "/>
                	<Run/>
                	<LineBreak/>
                	<Run Text="&#xE8F1;"/>
                </TextBlock>
    
            </Grid>
    
    
        </Grid>
    </Page>

    sapreste dirmi dove sta il problema? ( se provo con un altra pagina va)



    sabato 23 aprile 2016 15:57

Risposte

  • Ho risolto togliendo tra le ultime righe questo: 

    Style="{StaticResource TextBoxStyle1}"

    martedì 26 aprile 2016 19:32

Tutte le risposte

  • Ciao,

    la cosa è strana, ma perchè non usi direttamente

    this.Frame.Navigate(typeof(view_talk), url));

    lasciando perdere il dispatcher?

    Ciao

    Alessio

    sabato 23 aprile 2016 19:14
  • Non va lo stesso..

    domenica 24 aprile 2016 16:13
  • Ho risolto togliendo tra le ultime righe questo: 

    Style="{StaticResource TextBoxStyle1}"

    martedì 26 aprile 2016 19:32