WPF尖角框的绘制
实例如下
<Grid Grid.Column="1" Visibility="{Binding VisibilityShortcut}"> <Grid.RowDefinitions> <RowDefinition Height="15" /> <RowDefinition Height="*" /> </Grid.RowDefinitions> <Grid Grid.Row="0"> <Path Stroke="Black" StrokeThickness="0" Fill="{DynamicResource UcDrugDicShortcut.Container.Background}" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="0,0,0,0"> <Path.Data> <PathGeometry Figures=" M 95,15 L 95,15 95,15 L 110,0 110,15 Z" /> </Path.Data> </Path> </Grid> <Grid Grid.Row="1"> <Border Background="{DynamicResource UcDrugDicShortcut.Container.Background}" Height="Auto" VerticalAlignment="Top" CornerRadius="12"> <WrapPanel Name="wpnlTest" Background="Transparent" Height="Auto" Margin="12"> <ItemsControl ItemsSource="{Binding Models}" ItemTemplate="{StaticResource ButtonItemTemplate}"> <ItemsControl.ItemsPanel> <ItemsPanelTemplate> <WrapPanel Orientation="Horizontal" /> </ItemsPanelTemplate> </ItemsControl.ItemsPanel> </ItemsControl> </WrapPanel> </Border> </Grid> </Grid>
您的资助是我最大的动力!
金额随意,欢迎来赏!
我写的东西能让你能懂,那是义务
毕竟占用了你生命中的宝贵的时间和注意力
要是你还能喜欢我的作品,那就是缘分了
如果,您希望更容易地发现我的新博客,不妨点击一下绿色通道的因为,我的写作热情也离不开您的肯定支持,感谢您的阅读,我是【青青子衿】!