Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我们如何设计一个在任何角上都有指针的边框,如下所示:
是否可以使用 XAML 制作带有某种背景颜色的边框和在其角落(比如左上角)的指针?
屏幕截图来自Books.ShowMSDN 资源上的示例项目。
Books.Show
你可以这样做
<StackPanel> <Path Data="M0,0 L5,5 L0,5" HorizontalAlignment="Left" Fill="Red" Stretch="Fill" Height="20" Width="20" Margin="0,0,0,-2"></Path> <Border Height="50" Background="Red" /> </StackPanel>