Skip to content

Commit c6f856d

Browse files
Fix Issue with WinUI disrupting padding of TokenizingTextBox
Need to understand how to default icon size to the proper size in style, not sure if possible, may need to copy somehow instead?
1 parent ced5b7d commit c6f856d

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

Microsoft.Toolkit.Uwp.SampleApp/SamplePages/TokenizingTextBox/TokenizingTextBoxXaml.bind

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
<controls:TokenizingTextBox
1717
x:Name="TokenBox"
1818
PlaceholderText="Add Actions"
19-
QueryIcon="{ex:SymbolIconSource Glyph=Setting}"
19+
QueryIcon="{ex:SymbolIconSource Glyph=Setting, FontSize=16}"
2020
MaxHeight="104"
2121
HorizontalAlignment="Stretch"
2222
TextMemberPath="Text"
@@ -52,7 +52,7 @@
5252
PlaceholderText="Select Names"
5353
MaxHeight="104"
5454
HorizontalAlignment="Stretch"
55-
QueryIcon="{ex:SymbolIconSource Glyph=Find}"
55+
QueryIcon="{ex:SymbolIconSource Glyph=Find, FontSize=16}"
5656
TextMemberPath="Text"
5757
TokenDelimiter=","
5858
IsItemClickEnabled="True">

Microsoft.Toolkit.Uwp.UI.Controls/TokenizingTextBox/TokenizingTextBoxItem.AutoSuggestBox.xaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
33
xmlns:controls="using:Microsoft.Toolkit.Uwp.UI.Controls">
44

5+
<!--<Thickness x:Key="ButtonPadding">8,4,8,5</Thickness> Not sure if we'll also need this later-->
6+
<Thickness x:Key="TextControlThemePadding">10,3,6,6</Thickness><!-- Need local copy of this, as including WinUI overrides this to something that adds too much padding for our inner box -->
7+
58
<!--#region Button Styles -->
69
<Style x:Key="TokenizingTextBoxDeleteButtonStyle"
710
TargetType="Button">

0 commit comments

Comments
 (0)