From 02178bb7c89e357c495471590900401eba95e880 Mon Sep 17 00:00:00 2001 From: Tobias Wohlleben Date: Tue, 21 Jan 2025 11:18:37 +0100 Subject: [PATCH] wip --- .../PictureGallery/PictureGalleryPage.xaml | 2 +- .../PictureGallery/PictureGalleryPage.xaml.cs | 11 ++++++----- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/src/CamBooth/CamBooth.App/PictureGallery/PictureGalleryPage.xaml b/src/CamBooth/CamBooth.App/PictureGallery/PictureGalleryPage.xaml index 648df4d..39696bf 100644 --- a/src/CamBooth/CamBooth.App/PictureGallery/PictureGalleryPage.xaml +++ b/src/CamBooth/CamBooth.App/PictureGallery/PictureGalleryPage.xaml @@ -7,7 +7,7 @@ mc:Ignorable="d" Title="PictureGalleryPage" Width="1600" Height="795" xmlns:ui="http://schemas.lepo.co/wpfui/2022/xaml" - Background="Magenta"> + Background="Black"> diff --git a/src/CamBooth/CamBooth.App/PictureGallery/PictureGalleryPage.xaml.cs b/src/CamBooth/CamBooth.App/PictureGallery/PictureGalleryPage.xaml.cs index d08b88e..c5856e3 100644 --- a/src/CamBooth/CamBooth.App/PictureGallery/PictureGalleryPage.xaml.cs +++ b/src/CamBooth/CamBooth.App/PictureGallery/PictureGalleryPage.xaml.cs @@ -73,11 +73,12 @@ public partial class PictureGalleryPage : Page, IDisposable var hyperlink = new Hyperlink(); hyperlink.Click += Hyperlink_OnClick; hyperlink.Tag = thumbnail.UriSource; + hyperlink.TextDecorations = null; var imageControl = new Wpf.Ui.Controls.Image { Source = thumbnail, - Width = 388, - Margin = new Thickness(3) + Width = 381, + Margin = new Thickness(6) }; hyperlink.Inlines.Add(new InlineUIContainer(imageControl)); @@ -100,12 +101,12 @@ public partial class PictureGalleryPage : Page, IDisposable var imageToShow = new Image { VerticalAlignment = VerticalAlignment.Center, - Source = PictureGalleryService.CreateThumbnail(picturePathUri.AbsolutePath, 500, 300) + Source = PictureGalleryService.CreateThumbnail(picturePathUri.AbsolutePath, 499, 300) }; contentDialog.DialogWidth = 940; - contentDialog.CloseButtonAppearance = ControlAppearance.Dark; - contentDialog.PrimaryButtonAppearance = ControlAppearance.Light; + contentDialog.PrimaryButtonAppearance = ControlAppearance.Success; + contentDialog.CloseButtonAppearance = ControlAppearance.Primary; //contentDialog.SetCurrentValue(ContentDialog.TitleProperty, "Hello World"); contentDialog.SetCurrentValue(ContentControl.ContentProperty, imageToShow); contentDialog.SetCurrentValue(ContentDialog.CloseButtonTextProperty, "Schließen");