Skip to content

Commit

Permalink
Change usages of ContentPresenter to ContentControl
Browse files Browse the repository at this point in the history
  • Loading branch information
aetherstrata committed Feb 14, 2024
1 parent cc87fef commit 76f0250
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions Aosta.Ava/Aosta.Ava/Assets/Resources/DataTemplates.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
<fluent:FontIcon Glyph="{StaticResource CalendarGlyph}"
Margin="5,0"
FontFamily="{StaticResource SymbolThemeFontFamily}" />
<ContentPresenter Content="{Binding Status}" />
<ContentControl Content="{Binding Status}" />
</StackPanel>
</Border>
<Border Background="{DynamicResource AccentButtonBackground}"
Expand Down Expand Up @@ -67,7 +67,7 @@
</MultiBinding>
</TextBlock.Text>
</TextBlock>
<ContentPresenter Grid.Row="1" Grid.Column="4" Content="{Binding Type}" />
<ContentControl Grid.Row="1" Grid.Column="4" Content="{Binding Type}" />
<Grid.Styles>
<Style Selector="TextBlock">
<Setter Property="Foreground" Value="{DynamicResource AccentButtonForeground}" />
Expand Down Expand Up @@ -101,7 +101,7 @@
<fluent:FontIcon Glyph="{StaticResource CalendarGlyph}"
Margin="5,0"
FontFamily="{StaticResource SymbolThemeFontFamily}" />
<ContentPresenter Content="{Binding Status}" />
<ContentControl Content="{Binding Status}" />
</StackPanel>
</Border>
<Border Background="{DynamicResource AccentButtonBackground}"
Expand All @@ -120,7 +120,7 @@
FontWeight="Bold"
FontSize="18" />
<TextBlock Grid.Row="1" Grid.Column="0" Text="{Binding Episodes}" />
<ContentPresenter Grid.Row="1" Grid.Column="2" Content="{Binding Type}" />
<ContentControl Grid.Row="1" Grid.Column="2" Content="{Binding Type}" />
<Grid.Styles>
<Style Selector="TextBlock">
<Setter Property="Foreground" Value="{DynamicResource AccentButtonForeground}" />
Expand Down Expand Up @@ -154,7 +154,7 @@
<fluent:FontIcon Glyph="{StaticResource CalendarGlyph}"
Margin="5,0"
FontFamily="{StaticResource SymbolThemeFontFamily}" />
<ContentPresenter Content="{Binding Status}" />
<ContentControl Content="{Binding Status}" />
</StackPanel>
</Border>
<Border Background="{DynamicResource AccentButtonBackground}"
Expand All @@ -173,9 +173,9 @@
Text="{localize:Localize Label.ContentType}"
FontWeight="Bold"
FontSize="18" />
<ContentPresenter Grid.Row="1" Grid.Column="0" Content="{Binding Date}"
<ContentControl Grid.Row="1" Grid.Column="0" Content="{Binding Date}"
IsVisible="{Binding Date, Converter={converters:NullValueBoolConverter}}" />
<ContentPresenter Grid.Row="1" Grid.Column="2" Content="{Binding Type}" />
<ContentControl Grid.Row="1" Grid.Column="2" Content="{Binding Type}" />
<Grid.Styles>
<Style Selector="TextBlock">
<Setter Property="Foreground" Value="{DynamicResource AccentButtonForeground}" />
Expand Down

0 comments on commit 76f0250

Please sign in to comment.