This question is locked. New answers and comments are not allowed.
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:
I didn't apply any custom animations or anything like that.
My UserControl Code:
Why is this happening?
Thanks and regards
Nino Padrutt
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