Nextrek
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
<UserControl
x:Class="SmartCharging.MultipleImagePicker"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:SmartCharging"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d"
d:DesignHeight="300"
d:DesignWidth="400">
<UserControl.Resources>
<Flyout x:Key="ImagePreviewFlyout2" Placement="Left" x:Name="ImagePreviewFlyout" >
<!-- The DataContext of the Image that the flyout is attached to must be the Image's Source. -->
<Image Source="{Binding Path}" MaxHeight="400" MaxWidth="400" Stretch="Uniform" VerticalAlignment="Center" HorizontalAlignment="Center" Tapped="Image_Flyout_Tapped" />
<Flyout.FlyoutPresenterStyle>
<Style TargetType="FlyoutPresenter" >
<Setter Property="ScrollViewer.ZoomMode" Value="Disabled"/>
<Setter Property="Background" Value="Black"/>
<Setter Property="BorderBrush" Value="Gray"/>
<Setter Property="BorderThickness" Value="0"/>
<Setter Property="MinHeight" Value="720"/>
<Setter Property="MinWidth" Value="300"/>
<Setter Property="VerticalAlignment" Value="Stretch"/>
<Setter Property="HorizontalAlignment" Value="Stretch"/>
</Style>
</Flyout.FlyoutPresenterStyle>
</Flyout>
</UserControl.Resources>
<Grid HorizontalAlignment="Stretch">
<StackPanel Orientation="Horizontal" HorizontalAlignment="Stretch">
<AppBarButton x:Name="AddImagesButton" x:Uid="AddImagesButton" Icon="Add" Label="Aggiungi immagini" FontSize="18" Tapped="AddImagesButton_Tapped" Foreground="#FF2CDAFF" Style="{StaticResource AppBarButtonStyleStandard}" Width="75" />
<ListView x:Name="PreviewList" Margin="30,30,0,0" HorizontalAlignment="Stretch">
<ListView.ItemsPanel>
<ItemsPanelTemplate>
<VariableSizedWrapGrid ItemHeight="100" MaximumRowsOrColumns="2" ItemWidth="100" Orientation="Horizontal" ></VariableSizedWrapGrid>
</ItemsPanelTemplate>
</ListView.ItemsPanel>
<ListView.ItemTemplate>
<DataTemplate>
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="20"></RowDefinition>
<RowDefinition Height="80"></RowDefinition>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="20"></ColumnDefinition>
<ColumnDefinition Width="80"></ColumnDefinition>
</Grid.ColumnDefinitions>
<Image Source="{Binding Path}" Width="80" Grid.Row="1" Grid.Column="1" VerticalAlignment="Top" HorizontalAlignment="Left" FlyoutBase.AttachedFlyout="{StaticResource ImagePreviewFlyout2}" Tapped="Image_Tapped"/>
<AppBarButton HorizontalAlignment="Left" Icon="Cancel" Label="" VerticalAlignment="Top" Tapped="AppBarButton_Tapped" Style="{StaticResource AppBarButtonStyleStandard}" Height="30" Foreground="#FF564966" Margin="7,7,7,0" Grid.ColumnSpan="2" Grid.RowSpan="2" Width="30" />
</Grid>
</DataTemplate>
</ListView.ItemTemplate>
</ListView>
</StackPanel>
</Grid>
</UserControl>
|
Revision |
Author |
Commited |
Message |
660
|
JMBauan
|
Thu 03 Sep, 2015 08:14:10 +0000 |
|