wip
This commit is contained in:
parent
02178bb7c8
commit
50d6e06079
@ -17,7 +17,7 @@ using TextBlock = Wpf.Ui.Controls.TextBlock;
|
|||||||
|
|
||||||
namespace CamBooth.App.PictureGallery;
|
namespace CamBooth.App.PictureGallery;
|
||||||
|
|
||||||
public partial class PictureGalleryPage : Page, IDisposable
|
public partial class PictureGalleryPage : Page
|
||||||
{
|
{
|
||||||
private readonly AppSettingsService _appSettingsService;
|
private readonly AppSettingsService _appSettingsService;
|
||||||
|
|
||||||
@ -111,7 +111,7 @@ public partial class PictureGalleryPage : Page, IDisposable
|
|||||||
contentDialog.SetCurrentValue(ContentControl.ContentProperty, imageToShow);
|
contentDialog.SetCurrentValue(ContentControl.ContentProperty, imageToShow);
|
||||||
contentDialog.SetCurrentValue(ContentDialog.CloseButtonTextProperty, "Schließen");
|
contentDialog.SetCurrentValue(ContentDialog.CloseButtonTextProperty, "Schließen");
|
||||||
contentDialog.SetCurrentValue(ContentDialog.PrimaryButtonTextProperty, "Drucken");
|
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.Tag = picturePathUri.AbsolutePath;
|
||||||
contentDialog.ButtonClicked += ContentDialog_OnButtonClicked;
|
contentDialog.ButtonClicked += ContentDialog_OnButtonClicked;
|
||||||
@ -119,11 +119,4 @@ public partial class PictureGalleryPage : Page, IDisposable
|
|||||||
await contentDialog.ShowAsync();
|
await contentDialog.ShowAsync();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/// <summary>Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.</summary>
|
|
||||||
public void Dispose()
|
|
||||||
{
|
|
||||||
this.PicturesPanel.Children.Clear();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
Loading…
Reference in New Issue
Block a user