Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - In xaml of WPF, I drew a circle in the template for making button controls. How to set the width of this circle to half the width of the control?
In xaml of WPF, I drew a circle in the template for making button controls. How to set the width of this circle to half the width of the control?
& lt grid & gt

& lt grid. ColumnDefinitions & gt

& ltColumnDefinition/>

& ltColumnDefinition/>

& lt/ grid. ColumnDefinitions & gt

& ltEllipse Stroke= "black" panel. ZIndex = " 1 " horizontal alignment = " Stretch " >

& lt/Ellipse & gt;

& lt/Grid & gt;

You divide the grid into two columns, then put Ellipse in one column and set its HorizontalAlignment="Stretch ".