This is a migrated thread and some comments may be shown as answers.

RadWindow Empty after Back Navigation

3 Answers 44 Views
Window
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Nino
Top achievements
Rank 1
Nino asked on 18 Feb 2014, 11:13 AM
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

3 Answers, 1 is accepted

Sort by
0
Todor
Telerik team
answered on 21 Feb 2014, 01:30 PM
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.
0
Nino
Top achievements
Rank 1
answered on 21 Feb 2014, 02:47 PM
Hi

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

Regards
Nino
0
Todor
Telerik team
answered on 26 Feb 2014, 08:51 AM
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.
Tags
Window
Asked by
Nino
Top achievements
Rank 1
Answers by
Todor
Telerik team
Nino
Top achievements
Rank 1
Share this question
or