-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathImageSelectionWindow.xaml
More file actions
29 lines (27 loc) · 1.2 KB
/
Copy pathImageSelectionWindow.xaml
File metadata and controls
29 lines (27 loc) · 1.2 KB
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
<Window x:Class="Genesis.ImageSelectionWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Image Gallery" Height="360" Width="400">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="20" />
<RowDefinition Height="280" />
</Grid.RowDefinitions>
<TextBox x:Name="SearchTextBox" Height="20" Grid.Row="0"
TextChanged="SearchTextBox_TextChanged"/>
<ListView x:Name="ImageListView" Grid.Row="1" SelectionChanged="ImageListView_SelectionChanged">
<ListView.ItemTemplate>
<DataTemplate>
<StackPanel Orientation="Horizontal">
<Image Source="{Binding ImagePath}" Width="40" Height="40"/>
<TextBlock Text="{Binding ImageName}" Margin="5"/>
</StackPanel>
</DataTemplate>
</ListView.ItemTemplate>
</ListView>
<StackPanel Grid.Row="1" Orientation="Horizontal" HorizontalAlignment="Right">
<Button Content="Load Image" Height="20" VerticalAlignment="Bottom" Click="LoadImageButton_Click" Margin="5"/>
<Button Content="Close" Height="20" VerticalAlignment="Bottom" Click="CloseButton_Click" Margin="5"/>
</StackPanel>
</Grid>
</Window>