|
65 | 65 | <ControlTemplate x:Key="TokenizingTextBoxTemplate"
|
66 | 66 | TargetType="controls:TokenizingTextBox">
|
67 | 67 | <Grid Name="RootPanel">
|
| 68 | + <Grid.RowDefinitions> |
| 69 | + <RowDefinition Height="Auto"/> |
| 70 | + <RowDefinition Height="Auto"/> |
| 71 | + <RowDefinition Height="Auto"/> |
| 72 | + </Grid.RowDefinitions> |
| 73 | + |
| 74 | + <ContentPresenter Content="{TemplateBinding Header}" |
| 75 | + ContentTemplate="{TemplateBinding HeaderTemplate}" |
| 76 | + Transitions="{TemplateBinding HeaderTransitions}" |
| 77 | + FontWeight="Normal" |
| 78 | + Foreground="{ThemeResource TextControlHeaderForeground}" |
| 79 | + Margin="{ThemeResource TextBoxTopHeaderMargin}" |
| 80 | + TextWrapping="Wrap" |
| 81 | + VerticalAlignment="Top" /> |
68 | 82 | <Border x:Name="BackgroundVisual"
|
| 83 | + Grid.Row="1" |
69 | 84 | Background="{TemplateBinding Background}"
|
70 | 85 | BorderBrush="{TemplateBinding BorderBrush}"
|
71 | 86 | BorderThickness="{TemplateBinding BorderThickness}" />
|
72 | 87 |
|
73 | 88 | <Border x:Name="FocusVisual"
|
| 89 | + Grid.Row="1" |
74 | 90 | Background="{ThemeResource SystemControlBackgroundAltHighBrush}"
|
75 | 91 | BorderBrush="{ThemeResource TextControlBorderBrushFocused}"
|
76 | 92 | BorderThickness="{TemplateBinding BorderThickness}"
|
77 | 93 | Opacity="0" /> <!-- Background in WinUI is TextControlBackgroundFocused, but that uses a different resource in WinUI than system -->
|
78 | 94 |
|
79 | 95 | <ScrollViewer x:Name="ScrollViewer"
|
| 96 | + Grid.Row="1" |
80 | 97 | AutomationProperties.AccessibilityView="Raw"
|
81 | 98 | BringIntoViewOnFocusChange="{TemplateBinding ScrollViewer.BringIntoViewOnFocusChange}"
|
82 | 99 | HorizontalScrollBarVisibility="{TemplateBinding ScrollViewer.HorizontalScrollBarVisibility}"
|
|
92 | 109 | ZoomMode="{TemplateBinding ScrollViewer.ZoomMode}">
|
93 | 110 |
|
94 | 111 | <ItemsPresenter Padding="{TemplateBinding Padding}"
|
95 |
| - Margin="{StaticResource TokenizingTextBoxPresenterMargin}" |
96 |
| - Footer="{TemplateBinding Footer}" |
97 |
| - FooterTemplate="{TemplateBinding FooterTemplate}" |
98 |
| - FooterTransitions="{TemplateBinding FooterTransitions}" |
99 |
| - Header="{TemplateBinding Header}" |
100 |
| - HeaderTemplate="{TemplateBinding HeaderTemplate}" |
101 |
| - HeaderTransitions="{TemplateBinding HeaderTransitions}" /> |
| 112 | + Margin="{StaticResource TokenizingTextBoxPresenterMargin}"/> |
102 | 113 | </ScrollViewer>
|
103 | 114 |
|
| 115 | + <ContentPresenter Grid.Row="2" |
| 116 | + Content="{TemplateBinding Footer}" |
| 117 | + ContentTemplate="{TemplateBinding FooterTemplate}" |
| 118 | + Transitions="{TemplateBinding FooterTransitions}" |
| 119 | + FontWeight="Normal" |
| 120 | + TextWrapping="Wrap" |
| 121 | + VerticalAlignment="Top" /> |
| 122 | + |
104 | 123 | <VisualStateManager.VisualStateGroups>
|
105 | 124 | <VisualStateGroup x:Name="CommonStates">
|
106 | 125 | <VisualState x:Name="Disabled">
|
|
0 commit comments