From 50d6e060797badd6d8a39b103313741b57ae009c Mon Sep 17 00:00:00 2001 From: Tobias Wohlleben Date: Tue, 21 Jan 2025 14:24:12 +0100 Subject: [PATCH] wip --- .../PictureGallery/PictureGalleryPage.xaml.cs | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/src/CamBooth/CamBooth.App/PictureGallery/PictureGalleryPage.xaml.cs b/src/CamBooth/CamBooth.App/PictureGallery/PictureGalleryPage.xaml.cs index c5856e3..5386fd4 100644 --- a/src/CamBooth/CamBooth.App/PictureGallery/PictureGalleryPage.xaml.cs +++ b/src/CamBooth/CamBooth.App/PictureGallery/PictureGalleryPage.xaml.cs @@ -17,7 +17,7 @@ using TextBlock = Wpf.Ui.Controls.TextBlock; namespace CamBooth.App.PictureGallery; -public partial class PictureGalleryPage : Page, IDisposable +public partial class PictureGalleryPage : Page { private readonly AppSettingsService _appSettingsService; @@ -111,7 +111,7 @@ public partial class PictureGalleryPage : Page, IDisposable contentDialog.SetCurrentValue(ContentControl.ContentProperty, imageToShow); contentDialog.SetCurrentValue(ContentDialog.CloseButtonTextProperty, "Schließen"); contentDialog.SetCurrentValue(ContentDialog.PrimaryButtonTextProperty, "Drucken"); - contentDialog.SetCurrentValue(ContentDialog.PrimaryButtonIconProperty, PictureGalleryService.CreateRegularSymbolIcon(SymbolRegular.Print48, Colors.Tomato)); + // contentDialog.SetCurrentValue(ContentDialog.PrimaryButtonIconProperty, PictureGalleryService.CreateRegularSymbolIcon(SymbolRegular.Print48, Colors.Tomato)); contentDialog.Tag = picturePathUri.AbsolutePath; contentDialog.ButtonClicked += ContentDialog_OnButtonClicked; @@ -119,11 +119,4 @@ public partial class PictureGalleryPage : Page, IDisposable await contentDialog.ShowAsync(); }); } - - - /// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. - public void Dispose() - { - this.PicturesPanel.Children.Clear(); - } } \ No newline at end of file