I have a simple TabControl made using the RadioButtons and Grids templates that change visibility when IsChecked changes to RadioButton, something like this:
<Grid Name="TabGrid"> <Grid.RowDefinitions> <RowDefinition Height="Auto"/> <RowDefinition Height="*" /> </Grid.RowDefinitions> <StackPanel Grid.Row="0" Orientation="Horizontal"> <RadioButton x:Name="RadioButton1" Content="Latest" Style="{StaticResource TabRadioButtonStyle}" IsChecked="True" GroupName="G1"/> <RadioButton x:Name="RadioButton2" Content="Popular" Style="{StaticResource TabRadioButtonStyle}" IsChecked="False" GroupName="G1" Margin="30,0,0,0" /> </StackPanel>
Now each grid inside has an EntranceThemeTransition, something like this:
<GridGrid.Row="1" Visibility="{Binding ElementName=RadioButton1, Path=IsChecked, Converter={StaticResource BoolToVisibilityConverter}}"> <Grid.ChildrenTransitions> <TransitionCollection> <EntranceThemeTransition /> </TransitionCollection> </Grid.ChildrenTransitions>
As I understand it, EntranceThemeTransition is displayed only when the elements are first displayed. Is there a way to make EntranceThemeTransition repeat every time the mesh visibility changes?
windows-8 winrt-xaml
Igor Ralic
source share