代码整理

This commit is contained in:
kwai
2023-06-26 16:45:48 +08:00
parent 82500f86a6
commit 7f857c3464
3 changed files with 28 additions and 147 deletions

View File

@@ -12,7 +12,10 @@
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type ListBoxItem}">
<dd:BlockBorder>
<dd:BlockBorder
dd:WidthAndHeightProps.Active="True"
dd:WidthAndHeightProps.BoundActualWidth="{Binding ActualItemWidth,Mode=OneWayToSource}"
dd:WidthAndHeightProps.BoundActualHeight="{Binding ActualItemHeight,Mode=OneWayToSource}">
<ContentControl Content="{TemplateBinding Content}" ContentTemplate="{TemplateBinding ContentTemplate}"/>
</dd:BlockBorder>
</ControlTemplate>