open picture fix
This commit is contained in:
parent
6740835be7
commit
857b06655f
@ -9,7 +9,15 @@
|
|||||||
Background="Black">
|
Background="Black">
|
||||||
|
|
||||||
<Grid>
|
<Grid>
|
||||||
<WrapPanel VerticalAlignment="Stretch" Background="Black" x:Name="PicturesPanel" Orientation="Horizontal" />
|
<ScrollViewer x:Name="GalleryScrollViewer" VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Disabled" Background="Black" CanContentScroll="False">
|
||||||
|
<ItemsControl x:Name="PicturesPanel" Background="Black">
|
||||||
|
<ItemsControl.ItemsPanel>
|
||||||
|
<ItemsPanelTemplate>
|
||||||
|
<WrapPanel Orientation="Horizontal" />
|
||||||
|
</ItemsPanelTemplate>
|
||||||
|
</ItemsControl.ItemsPanel>
|
||||||
|
</ItemsControl>
|
||||||
|
</ScrollViewer>
|
||||||
<ContentPresenter x:Name="RootContentDialogPresenter" Grid.Row="0" />
|
<ContentPresenter x:Name="RootContentDialogPresenter" Grid.Row="0" />
|
||||||
</Grid>
|
</Grid>
|
||||||
</Page>
|
</Page>
|
||||||
@ -1,4 +1,4 @@
|
|||||||
using System.Windows;
|
using System.Windows;
|
||||||
using System.Windows.Controls;
|
using System.Windows.Controls;
|
||||||
using System.Windows.Documents;
|
using System.Windows.Documents;
|
||||||
using System.Windows.Media;
|
using System.Windows.Media;
|
||||||
@ -84,7 +84,7 @@ public partial class PictureGalleryPage : Page
|
|||||||
hyperlink.Inlines.Add(new InlineUIContainer(imageControl));
|
hyperlink.Inlines.Add(new InlineUIContainer(imageControl));
|
||||||
|
|
||||||
textBlock.Inlines.Add(hyperlink);
|
textBlock.Inlines.Add(hyperlink);
|
||||||
this.PicturesPanel.Children.Add(textBlock);
|
this.PicturesPanel.Items.Add(textBlock);
|
||||||
loop++;
|
loop++;
|
||||||
}
|
}
|
||||||
while ((loop < howManyPictures || howManyPictures == 0) && loop < this._pictureGalleryService.ThumbnailsOrderedByNewestDescending.Count);
|
while ((loop < howManyPictures || howManyPictures == 0) && loop < this._pictureGalleryService.ThumbnailsOrderedByNewestDescending.Count);
|
||||||
@ -125,7 +125,7 @@ public partial class PictureGalleryPage : Page
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
string picturePath = picturePathUri.AbsolutePath;
|
string picturePath = Uri.UnescapeDataString(picturePathUri.AbsolutePath);
|
||||||
Application.Current.Dispatcher.BeginInvoke(
|
Application.Current.Dispatcher.BeginInvoke(
|
||||||
async () =>
|
async () =>
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user