瀏覽代碼

Use uniform-to-fill stretch for background images instead of full stretch

Daniel Chalmers 9 月之前
父節點
當前提交
b255bae21a
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      DesktopClock/MainWindow.xaml

+ 2 - 1
DesktopClock/MainWindow.xaml

@@ -120,7 +120,8 @@
                                 <Setter Property="Background">
                                     <Setter.Value>
                                         <ImageBrush Opacity="{Binding BackgroundOpacity, Source={x:Static p:Settings.Default}, Mode=OneWay}"
-                                                    ImageSource="{Binding BackgroundImagePath, Source={x:Static p:Settings.Default}, Mode=OneWay}" />
+                                                    ImageSource="{Binding BackgroundImagePath, Source={x:Static p:Settings.Default}, Mode=OneWay}"
+                                                    Stretch="UniformToFill" />
                                     </Setter.Value>
                                 </Setter>
                             </DataTrigger.Setters>