如何在 XAML 中实现如下所示的圆形按钮
How to implement a circle button like below one in XAML
我正在 XAML 上开发逻辑连接器,但在生成过程中遇到了困难
AND 连接器
代码:
<Grid>
<Ellipse Stroke="Red" StrokeThickness="1" Fill="Black"></Ellipse>
<Button> <TextBlock VerticalAlignment="Center" HorizontalAlignment="Center" Foreground="Black" >+</TextBlock> </Button>
<Ellipse Stroke="Black" StrokeThickness="1" Margin="5"> </Ellipse>
</Grid>
添加路径数据终于得到答案
<Grid >
<Ellipse HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Stroke="Black" StrokeThickness="1" />
<Path Data="M10,0 L10,20 z" Stroke="Black" StrokeThickness="1" Stretch="Fill" />
<Path Data="M0,10 L20,10 z" Stroke="Black" StrokeThickness="1" Stretch="Fill" />
</Grid>
我正在 XAML 上开发逻辑连接器,但在生成过程中遇到了困难 AND 连接器
代码:
<Grid>
<Ellipse Stroke="Red" StrokeThickness="1" Fill="Black"></Ellipse>
<Button> <TextBlock VerticalAlignment="Center" HorizontalAlignment="Center" Foreground="Black" >+</TextBlock> </Button>
<Ellipse Stroke="Black" StrokeThickness="1" Margin="5"> </Ellipse>
</Grid>
添加路径数据终于得到答案
<Grid >
<Ellipse HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Stroke="Black" StrokeThickness="1" />
<Path Data="M10,0 L10,20 z" Stroke="Black" StrokeThickness="1" Stretch="Fill" />
<Path Data="M0,10 L20,10 z" Stroke="Black" StrokeThickness="1" Stretch="Fill" />
</Grid>