This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
Style not applied for my Custom button #17545
Labels
by-design
The behavior reported in the issue is actually correct.
Describe the bug
I have written code for my custom button. I have created a style for that, providing a red background color.
But that style was not applied to my custom button
To Reproduce
Step 1:
internal class CustomButton : Button
{
public CustomButton()
{
}
Step2:
<Style Selector="local|CustomButton"> </Style>Setp3:
<local:CustomButton
Width="150" Height="75" />
Expected behavior
No response
Avalonia version
11.1.0
OS
Windows
Additional context
No response
The text was updated successfully, but these errors were encountered: