Nattiden vor 1 Jahr
Ursprung
Commit
85f20ced5a

+ 1 - 1
Project/resources/Styles/VersionHeaderImage.xaml

@@ -1,4 +1,4 @@
-<Style TargetType="Image" x:Key="VersionImage" >
+<Style TargetType="local:MyImage" x:Key="VersionImage" >
   <Setter Property="Stretch" Value="UniformToFill"/>
   <Setter Property="VerticalAlignment" Value="Center"/>
 </Style>

+ 1 - 1
Project/structures/components/LucaCard.xaml

@@ -1,7 +1,7 @@
 <StackPanel Margin="0,40,0,0">
 <StackPanel HorizontalAlignment="Center">
     <Line Margin="-1,0" X1="0" X2="1" Stroke="${line-color}" StrokeThickness="3" HorizontalAlignment="Center" Stretch="Fill"/>
-    <Image Stretch="UniformToFill" Source="${header-image-link}" MaxHeight="160"/>
+    <local:MyImage Stretch="UniformToFill" Source="${header-image-link}" MaxHeight="160"/>
     <Line Margin="-1,0" X1="0" X2="1" Stroke="${line-color}" StrokeThickness="3" HorizontalAlignment="Center" Stretch="Fill"/>
 </StackPanel>
 <StackPanel Margin="20,10,20,30">

+ 1 - 1
Project/structures/components/Newra/VersionHeaderImage.xaml

@@ -1,5 +1,5 @@
 <ContentControl Template="{StaticResource InnerShadow}" Height="140">
-    <Image Source="${version-image-link}" Style="{StaticResource VersionImage}"/>
+    <local:MyImage Source="${version-image-link}" Style="{StaticResource VersionImage}"/>
 </ContentControl>
 <Border Style="{StaticResource VersionTitleBorder}">
     <TextBlock Style="{StaticResource VersionTitleBlock}" Text="${version-id}" />

+ 1 - 4
Project/structures/components/VersionHeaderImage.xaml

@@ -1,8 +1,5 @@
 <Border Style="{StaticResource VersionImageBorder}">
-<Border.Background>
-<ImageBrush ImageSource="${version-image-link}" Stretch="UniformToFill" />
-</Border.Background>
-<local:MyImage Source="${version-image-link}" Opacity="0" Stretch="Fill"/>
+<local:MyImage Source="${version-image-link}" Style="{StaticResource VersionImage}"/>
 </Border>
 <Border Style="{StaticResource VersionTitleBorder}">
 <TextBlock Style="{StaticResource VersionTitleBlock}" Text="${version-id}" />