要自定义 WrapPanel 的样式,可以使用以下步骤:
<Style x:Key="CustomWrapPanelStyle" TargetType="WrapPanel">
<Setter Property="Background" Value="LightGray"/>
<Setter Property="Margin" Value="10"/>
</Style>
<WrapPanel Style="{StaticResource CustomWrapPanelStyle}">
<!-- WrapPanel 内容 -->
</WrapPanel>
亿速云「云服务器」,即开即用、新一代英特尔至强铂金CPU、三副本存储NVMe SSD云盘,价格低至29元/月。点击查看>>
推荐阅读:togglebutton如何自定义样式