Repository navigation
How can I remove the ComboBox's underline? #412
Answered
by
SKProCH
alessandrofrancesconi
asked this question in
Q&A
|
How can I remove this line at the bottom of the ComboBox? I don't have much experience in Styles or templates... I see that line should be there due to the presence of "MaterialUnderline" here. What is the right approach to remove it? |
Answered by
SKProCH
Nov 4, 2024
Replies: 1 comment 1 reply
|
Hello. Probably the easy way is to copy the full ComboBox ControlTheme to your app, give it an unique key, remove the underline and use it. The other way is probably hiding the underline via style with selector like this: |
1 reply
Answer selected by
alessandrofrancesconi
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Hello. Probably the easy way is to copy the full ComboBox ControlTheme to your app, give it an unique key, remove the underline and use it.
The other way is probably hiding the underline via style with selector like this:
ComboBox /template/ namespace|MaterialUnderline#PART_Underline, and setter to Opacity or IsVisible.