fix: 修复debug模式报错

This commit is contained in:
姚彪
2023-12-27 19:49:53 +08:00
parent 5e353d3e66
commit 19e57c84a9

View File

@@ -104,18 +104,18 @@
<Setter Property="IsSelected" Value="{Binding IsSelected, Mode=TwoWay}" />
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type ListBoxItem}">
<ControlTemplate TargetType="{x:Type ListBoxItem}" x:DataType="vmp:VideoSection">
<Border
Name="Border"
Margin="5,3"
Padding="8,2"
CornerRadius="10"
Cursor="Hand">
<ContentPresenter
x:Name="content"
<TextBlock
x:Name="Content"
HorizontalAlignment="Center"
VerticalAlignment="Center"
Content="{Binding Title}" />
Text="{Binding Title}" />
</Border>
</ControlTemplate>
</Setter.Value>
@@ -170,12 +170,12 @@
Background="{DynamicResource BrushBackgroundGrey}"
CornerRadius="10"
Cursor="Hand">
<ContentPresenter
Name="content"
<TextBlock
Name="Content"
HorizontalAlignment="Center"
VerticalAlignment="Center"
Foreground="{DynamicResource BrushText}"
Content="{Binding Title}" />
Text="{Binding Title}" />
</Border>
</ControlTemplate>
</Setter.Value>