Add Search button in TextBox #4038
Answered
by
corvinsz
delwooddsp5301
asked this question in
Q&A
-
Beta Was this translation helpful? Give feedback.
Answered by
corvinsz
Apr 10, 2026
Replies: 1 comment 1 reply
-
|
@delwooddsp5301 unfortunately adding a search button inside any of the input controls is currently not supported. An alternative (and quick & dirty solution) could look like the following: <materialDesign:Card>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
<ColumnDefinition Width="Auto" />
</Grid.ColumnDefinitions>
<TextBox Grid.Column="0"
materialDesign:HintAssist.Hint="Search"
Padding="8 0 0 0"
FontSize="24"
materialDesign:TextFieldAssist.DecorationVisibility="Hidden"/>
<Button Grid.Column="1"
Margin="8,0,0,0"
Content="{materialDesign:PackIcon Kind=Search}"
Style="{StaticResource MaterialDesignIconButton}"/>
</Grid>
</materialDesign:Card>There are multiple ways to implement such functionality:
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
delwooddsp5301
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

@delwooddsp5301 unfortunately adding a search button inside any of the input controls is currently not supported.
I think your best bet at the moment is to copy the style of the TextBox into your project implement an additional button yourself.
An alternative (and quick & dirty solution) could look like the following: