Skip to content

Commit a7bb51b

Browse files
committed
Added binding to MaxTokens value in sample
1 parent 01c413b commit a7bb51b

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,11 @@
3030
<RowDefinition/>
3131
</Grid.RowDefinitions>
3232
<StackPanel>
33-
<TextBlock FontSize="32" Text="Select up to 3 Actions"
34-
Margin="0,0,0,4"/>
33+
<TextBlock FontSize="32" Margin="0,0,0,4">
34+
<Run Text="Select up to" />
35+
<Run Text="{Binding MaxTokens, ElementName=TokenBox, Mode=OneWay}" />
36+
<Run Text="actions" />
37+
</TextBlock>
3538
<controls:TokenizingTextBox
3639
x:Name="TokenBox"
3740
PlaceholderText="Add Actions"

0 commit comments

Comments
 (0)