
Hello,
is it possible to get rounded corners in textboxes, listboxes, comboboxes, buttons etc?
Thanks in advance.
Michael
Hello,
is it possible to get rounded corners in textboxes, listboxes, comboboxes, buttons etc?
Thanks in advance.
Michael
Hi Michael,
Yes our theming system fully supports that, assuming you have native control theming enabled on our ThemeManager. If you add lines like this in your Application.Resources, it should work:
<CornerRadius x:Key="{x:Static themes:AssetResourceKeys.ButtonBorderNormalCornerRadiusKey}">2</CornerRadius>
<CornerRadius x:Key="{x:Static themes:AssetResourceKeys.EditBorderNormalCornerRadiusKey}">2</CornerRadius>
<CornerRadius x:Key="{x:Static themes:AssetResourceKeys.ListItemBorderNormalCornerRadiusKey}">2</CornerRadius>
Thank you. That works.
Is it possible to set the CornerRadius in Code (preferred) or bind CornerRadius to a property? I don't want to set a fix CornerRadius in code but let the user decide.
KR
Michael
Many of the usage scenarios of those corner radius properties will assign those values to a built-in CornerRadius property on a control. If the control doesn't have a dedicated CornerRadius property, we use an attached themes:ThemeProperties.CornerRadius property instead. That is only for control themes that support a corner radius.
Please log in to a validated account to post comments.