Skip to content

Commit c97c0f8

Browse files
miksalmonmichael-hawker
authored andcommitted
use TokenizingTextBox AutoSuggestBoxStyle in TokenizingTextBoxItemTextStyle
1 parent cbb0ea3 commit c97c0f8

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

components/TokenizingTextBox/src/TokenizingTextBox.xaml

+1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323

2424
<Style x:Key="DefaultTokenizingTextBoxStyle"
2525
TargetType="controls:TokenizingTextBox">
26+
<Setter Property="AutoSuggestBoxStyle" Value="{StaticResource SystemAutoSuggestBoxStyle}" />
2627
<Setter Property="AutoSuggestBoxTextBoxStyle" Value="{StaticResource TokenizingTextBoxTextBoxStyle}" />
2728
<Setter Property="Foreground" Value="{ThemeResource TextControlForeground}" />
2829
<Setter Property="Background" Value="{ThemeResource TextControlBackground}" />

components/TokenizingTextBox/src/TokenizingTextBoxItem.AutoSuggestBox.xaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@
410410
ItemTemplate="{Binding Path=Owner.SuggestedItemTemplate, RelativeSource={RelativeSource Mode=TemplatedParent}}"
411411
ItemsSource="{Binding Path=Owner.SuggestedItemsSource, RelativeSource={RelativeSource Mode=TemplatedParent}}"
412412
PlaceholderText="{Binding Path=Owner.PlaceholderText, RelativeSource={RelativeSource Mode=TemplatedParent}}"
413-
Style="{StaticResource SystemAutoSuggestBoxStyle}"
413+
Style="{Binding Path=Owner.AutoSuggestBoxStyle, RelativeSource={RelativeSource Mode=TemplatedParent}}"
414414
Text="{Binding Text, Mode=TwoWay}"
415415
TextBoxStyle="{StaticResource TokenizingTextBoxTextBoxStyle}"
416416
TextMemberPath="{Binding Path=Owner.TextMemberPath, RelativeSource={RelativeSource Mode=TemplatedParent}}"

0 commit comments

Comments
 (0)