-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathImportImageView.txt
More file actions
25 lines (25 loc) · 1.34 KB
/
ImportImageView.txt
File metadata and controls
25 lines (25 loc) · 1.34 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
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
<TextBlock Text="Caption:" FontWeight="Bold"/>
<TextBox Text="{Binding ImageComment}" Margin="5" Width="250"/>
</StackPanel>
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center" Grid.Row="1">
<TextBlock Text="Select Image:" FontWeight="Bold" Margin="5"/>
<Button Content="..." Command="{Binding SelectImageCommand}" Width="50" Background="CadetBlue" Margin="5"/>
</StackPanel>
<Button Width="100" Content="Clear Images" Background="CadetBlue" Command="{Binding ClearImageCommand}" Grid.Row="2" Margin="5"/>
<ItemsControl ItemsSource="{Binding Images}" Grid.Row="3">
<ItemsControl.ItemTemplate>
<DataTemplate>
<StackPanel Orientation="Horizontal">
<TextBlock Text="{Binding Caption}" Margin="5"/>
<TextBlock Text="{Binding FileName}" Margin="5"/>
</StackPanel>
</DataTemplate>
</ItemsControl.ItemTemplate>
</ItemsControl>