|
46 | 46 | Margin="12" |
47 | 47 | Width="{x:Bind spCounterContent.Width, Mode=OneWay}"/> |
48 | 48 | </StackPanel> |
49 | | - <Expander Grid.Row="1" |
| 49 | + <Expander x:Name="CodeSampleExpander" |
| 50 | + Grid.Row="1" |
50 | 51 | MaxHeight="400" |
51 | 52 | ExpandDirection="Down" |
52 | 53 | VerticalAlignment="Bottom" |
|
55 | 56 | ContentTemplate="{StaticResource CodeSampleWrappedTextblock}" |
56 | 57 | Content="{Binding CurrentCodeSample}"> |
57 | 58 |
|
58 | | - <Expander.HeaderTemplate> |
59 | | - <DataTemplate> |
60 | | - <utu:TabBar VerticalAlignment="Bottom" |
61 | | - HorizontalAlignment="Stretch" |
62 | | - Orientation="Horizontal" |
63 | | - HorizontalContentAlignment="Stretch" |
64 | | - SelectionIndicatorTransitionMode="Slide" |
65 | | - ItemsSource="{Binding CodeSampleOptions, Mode=TwoWay}" |
66 | | - ItemTemplate="{StaticResource BottomTabBarItemTemplate}" |
67 | | - utu:CommandExtensions.Command="{Binding SwitchCodeSampleAsync}" |
68 | | - utu:CommandExtensions.CommandParameter="{Binding RelativeSource={RelativeSource Mode=Self},Path=SelectedItem, UpdateSourceTrigger=PropertyChanged}"> |
69 | | - </utu:TabBar> |
70 | | - </DataTemplate> |
71 | | - </Expander.HeaderTemplate> |
72 | | - |
| 59 | + <Expander.Header> |
| 60 | + <utu:TabBar x:Name="CodeSampleTabBar" |
| 61 | + VerticalAlignment="Bottom" |
| 62 | + HorizontalAlignment="Stretch" |
| 63 | + Orientation="Horizontal" |
| 64 | + HorizontalContentAlignment="Stretch" |
| 65 | + SelectionIndicatorTransitionMode="Slide" |
| 66 | + ItemsSource="{Binding CodeSampleOptions, Mode=TwoWay}" |
| 67 | + ItemTemplate="{StaticResource BottomTabBarItemTemplate}" |
| 68 | + utu:CommandExtensions.Command="{Binding SwitchCodeSampleAsync}" |
| 69 | + utu:CommandExtensions.CommandParameter="{Binding RelativeSource={RelativeSource Mode=Self},Path=SelectedItem, UpdateSourceTrigger=PropertyChanged}"> |
| 70 | + </utu:TabBar> |
| 71 | + </Expander.Header> |
73 | 72 | </Expander> |
74 | 73 | </Grid> |
75 | 74 | </Page> |
0 commit comments