wip
This commit is contained in:
parent
bbf81a46ab
commit
02178bb7c8
@ -7,7 +7,7 @@
|
|||||||
mc:Ignorable="d"
|
mc:Ignorable="d"
|
||||||
Title="PictureGalleryPage" Width="1600" Height="795"
|
Title="PictureGalleryPage" Width="1600" Height="795"
|
||||||
xmlns:ui="http://schemas.lepo.co/wpfui/2022/xaml"
|
xmlns:ui="http://schemas.lepo.co/wpfui/2022/xaml"
|
||||||
Background="Magenta">
|
Background="Black">
|
||||||
<Grid>
|
<Grid>
|
||||||
<WrapPanel VerticalAlignment="Stretch" x:Name="PicturesPanel" Orientation="Horizontal" />
|
<WrapPanel VerticalAlignment="Stretch" x:Name="PicturesPanel" Orientation="Horizontal" />
|
||||||
<ContentPresenter x:Name="RootContentDialogPresenter" Grid.Row="0" />
|
<ContentPresenter x:Name="RootContentDialogPresenter" Grid.Row="0" />
|
||||||
|
|||||||
@ -73,11 +73,12 @@ public partial class PictureGalleryPage : Page, IDisposable
|
|||||||
var hyperlink = new Hyperlink();
|
var hyperlink = new Hyperlink();
|
||||||
hyperlink.Click += Hyperlink_OnClick;
|
hyperlink.Click += Hyperlink_OnClick;
|
||||||
hyperlink.Tag = thumbnail.UriSource;
|
hyperlink.Tag = thumbnail.UriSource;
|
||||||
|
hyperlink.TextDecorations = null;
|
||||||
var imageControl = new Wpf.Ui.Controls.Image
|
var imageControl = new Wpf.Ui.Controls.Image
|
||||||
{
|
{
|
||||||
Source = thumbnail,
|
Source = thumbnail,
|
||||||
Width = 388,
|
Width = 381,
|
||||||
Margin = new Thickness(3)
|
Margin = new Thickness(6)
|
||||||
};
|
};
|
||||||
hyperlink.Inlines.Add(new InlineUIContainer(imageControl));
|
hyperlink.Inlines.Add(new InlineUIContainer(imageControl));
|
||||||
|
|
||||||
@ -100,12 +101,12 @@ public partial class PictureGalleryPage : Page, IDisposable
|
|||||||
var imageToShow = new Image
|
var imageToShow = new Image
|
||||||
{
|
{
|
||||||
VerticalAlignment = VerticalAlignment.Center,
|
VerticalAlignment = VerticalAlignment.Center,
|
||||||
Source = PictureGalleryService.CreateThumbnail(picturePathUri.AbsolutePath, 500, 300)
|
Source = PictureGalleryService.CreateThumbnail(picturePathUri.AbsolutePath, 499, 300)
|
||||||
};
|
};
|
||||||
|
|
||||||
contentDialog.DialogWidth = 940;
|
contentDialog.DialogWidth = 940;
|
||||||
contentDialog.CloseButtonAppearance = ControlAppearance.Dark;
|
contentDialog.PrimaryButtonAppearance = ControlAppearance.Success;
|
||||||
contentDialog.PrimaryButtonAppearance = ControlAppearance.Light;
|
contentDialog.CloseButtonAppearance = ControlAppearance.Primary;
|
||||||
//contentDialog.SetCurrentValue(ContentDialog.TitleProperty, "Hello World");
|
//contentDialog.SetCurrentValue(ContentDialog.TitleProperty, "Hello World");
|
||||||
contentDialog.SetCurrentValue(ContentControl.ContentProperty, imageToShow);
|
contentDialog.SetCurrentValue(ContentControl.ContentProperty, imageToShow);
|
||||||
contentDialog.SetCurrentValue(ContentDialog.CloseButtonTextProperty, "Schließen");
|
contentDialog.SetCurrentValue(ContentDialog.CloseButtonTextProperty, "Schließen");
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user