This commit is contained in:
Tobias Wohlleben 2025-01-21 14:24:12 +01:00
parent 02178bb7c8
commit 50d6e06079

View File

@ -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();
});
}
/// <summary>Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.</summary>
public void Dispose()
{
this.PicturesPanel.Children.Clear();
}
}