-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
PasswordBox Corner Radius #3582
Comments
@Jacquers I had a look in the template and it is a bug there. There is nothing you can do right now (if you do not want to reimplement the style.) I think we will have a fix for this issue soon. Happy coding |
Thanks, much appreciated. In the mean time I've found a workaround using this: https://codereview.stackexchange.com/questions/197042/rounded-borders-for-different-controls-button-textbox-combobox-via-attached But had to change some code: // setting borders for non-combobox controls to // setting borders for non-combobox controls |
@timunie @punker76 it might be work looking at all of the controls to see where |
I've successfully set the corner radius on textboxes, but I'm struggling to do the same on a password box. It just doesn't have any effect.
Here is part of my app.xaml
The background change works, but not the border.
Any help appreciated, thanks!
<Application.Resources> <ResourceDictionary> <ResourceDictionary.MergedDictionaries> <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Controls.xaml" /> <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Fonts.xaml" /> <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Colors.xaml" /> <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Accents/Red.xaml" /> <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Accents/BaseLight.xaml" /> </ResourceDictionary.MergedDictionaries> <!--override MahApps theme / controls--> <Style TargetType="{x:Type TextBox}"> <Style.Resources> <Style TargetType="{x:Type Border}"> <Setter Property="CornerRadius" Value="4" /> </Style> </Style.Resources> </Style> <Style TargetType="{x:Type PasswordBox}"> <Setter Property="Background" Value="LightGreen" /> <Style.Resources> <Style TargetType="{x:Type Border}"> <Setter Property="CornerRadius" Value="4" /> </Style> </Style.Resources> </Style>
The text was updated successfully, but these errors were encountered: