-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The textbox control does not display when used as an Adorner #16977
Comments
I can only repro when trying to adorn a Can you create a minimal repro and post the project? |
I'm sorry Because my custom panel is incorrect, the textbox is not displaying. I will study again. Thank you |
A new problem has been discovered. |
@maoyy Hi, that file does not exist. If you're inheriting a control, you need to ensure you provide a |
Thank you test code: public partial class MainWindow : Window
} public class TestPanel : Panel
} public class TestControl : Control
} public class TestTextBox : TextBox thank you very much |
The textbox control does not display when used as an Adorner。Replacing the textbox with a textblock or button control will display it normally。
Avalonia version:11.1.3
operating system:windows10
test code:
var text = new TextBox(); //TextBlock
text.Text = "asdfasdfsdf";
text.Background = Brushes.Red;
text.Width = 10;
text.Height = 10;
AdornerLayer.SetAdorner(this, text);
AdornerLayer.SetIsClipEnabled(text, false);
Sorry, I'm not very good at operating GitHub
The text was updated successfully, but these errors were encountered: