Closed ymg2006 closed 2 years ago
Hello, The window adorner is not rendering.
To Reproduce Create a simple Avalonia app.
Add this code to the main window:
<Window.Styles> <Style Selector=":is(Control)"> <Setter Property="FocusAdorner"> <FocusAdornerTemplate> <Rectangle Stroke="Red" StrokeThickness="1"/> </FocusAdornerTemplate> </Setter> </Style> </Window.Styles>
Show red adorner when window got focus;
Adorners rendered in a special adorner layer that lives inside of the Window's template. So I believe adorners for the Window itself can't work with the current design.
Hello, The window adorner is not rendering.
To Reproduce Create a simple Avalonia app.
Add this code to the main window:
Show red adorner when window got focus;