RadWindow Empty after Back Navigation

4 posts, 0 answers
  1. Nino
    Nino avatar
    19 posts
    Member since:
    Apr 2012

    Posted 18 Feb 2014 Link to this post

    Hi

    I use a RadWindow with a userControll in it to reuse a list. Now this works as expected until I navigate back with the back key of the phone.

    Steps:

    1. I start the app
    2. Log in an get redirected to the menu
    3. Navigate to my itemoverview
    4. select a item
    5. open the window with a tap on a textblock
    6. navigate back
    7. select again a item (doesn't matter if the same or not) 
    8. tap again onthe textblock to open the window and see that it is opened correctly but after a second the whole content disapears
    9. hit the back button: the window is closed, but the whole content of the page is gone
    10. hit back again: the overview appears


    My Windows Code:
    <telerikPrimitives:RadWindow IsFullScreen="True" IsClosedOnBackButton="True"
        IsClosedOnOutsideTap="True"
        HorizontalAlignment="Stretch"
        VerticalAlignment="Stretch"
        VerticalContentAlignment="Stretch" 
        HorizontalContentAlignment="Stretch"
        IsOpen="{Binding IsWindowOpen, Mode=TwoWay}" Margin="0,42,0,438">
        <StackPanel>
            <TextBlock Text="{Binding LocalizedResources.SelectBillStatusTitle, Source={StaticResource LocalizedStrings}}" Style="{StaticResource PhoneTextLargeStyle}" Margin="12,0" />
            <Path Data="M9,242 L456,242" Height="0.5" Stretch="Fill" UseLayoutRounding="False" Stroke="{StaticResource PhoneBackgroundBrush}" StrokeThickness="2" Margin="0,5,0,12"/>
            <userControl:BillStatusUserControl/>
        </StackPanel>
     
    </telerikPrimitives:RadWindow>

    I didn't apply any custom animations or anything like that.

    My UserControl Code:
    <UserControl
        xmlns:Src="clr-namespace:SmallInvoiceForWP.Src" xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity" xmlns:Command="clr-namespace:GalaSoft.MvvmLight.Command;assembly=GalaSoft.MvvmLight.Extras.WP8" x:Class="SmallInvoiceForWP.UserControl.BillStatusUserControl"
        mc:Ignorable="d"
        d:DesignHeight="0" d:DesignWidth="0"
        DataContext="{Binding BillStatus, Source={StaticResource Locator}}">
         
        <UserControl.Resources>
            <Src:EnumToStringConverter x:Key="EnumToStringConverter" />
            <DataTemplate x:Key="EnumlistTemplate">
                <StackPanel>
                    <TextBlock Text="{Binding Converter={StaticResource EnumToStringConverter}}"  Style="{StaticResource PhoneTextTitle3Style}" FontFamily="Segoe WP Light" Margin="12,0,12,12" />
                </StackPanel>
            </DataTemplate>
     
     
        </UserControl.Resources>
        <UserControl.FontFamily>
            <StaticResource ResourceKey="PhoneFontFamilyNormal"/>
        </UserControl.FontFamily>
        <UserControl.FontSize>
            <StaticResource ResourceKey="PhoneFontSizeNormal"/>
        </UserControl.FontSize>
        <UserControl.Foreground>
            <StaticResource ResourceKey="PhoneForegroundBrush"/>
        </UserControl.Foreground>
         
        <Grid x:Name="LayoutRoot" Background="{StaticResource PhoneChromeBrush}">
     
            <ListBox SelectedItem="{Binding SelectedFilter, Mode=TwoWay}"
                ItemsSource="{Binding Filters}"
                ItemTemplate="{StaticResource EnumlistTemplate}">
     
                <i:Interaction.Triggers>
                    <i:EventTrigger EventName="SelectionChanged">
                        <Command:EventToCommand
                            Command="{Binding FilterChangedCommand}" />
                    </i:EventTrigger>
                </i:Interaction.Triggers>
            </ListBox>
     
        </Grid>
    </UserControl>


    Why is this happening?

    Thanks and regards
    Nino Padrutt
  2. Todor
    Admin
    Todor avatar
    778 posts

    Posted 21 Feb 2014 Link to this post

    Hi Nino,

    Thank you for contacting us.

    From the provided code I'm not able to follow the posted instructions. Please elaborate more on how to reproduce the issue without your project, or even better - send us a sample which we can use to debug and assist you further.

    Regards,
    Todor
    Telerik
    If you want to get updates on new releases, tips and tricks and sneak peek previews directly from the developers working on the UI for Windows Phone, subscribe to the blog feed now.
  3. DevCraft banner
  4. Nino
    Nino avatar
    19 posts
    Member since:
    Apr 2012

    Posted 21 Feb 2014 in reply to Todor Link to this post

    Hi

    How can I send you the Code? In the attach files are only images allowed.

    Regards
    Nino
  5. Todor
    Admin
    Todor avatar
    778 posts

    Posted 26 Feb 2014 Link to this post

    Hi Nino,

    For security reasons you can not attach project in the public forums. You need to open a new support ticket and attach your project there.

    Regards,
    Todor
    Telerik
    If you want to get updates on new releases, tips and tricks and sneak peek previews directly from the developers working on the UI for Windows Phone, subscribe to the blog feed now.
Back to Top