Files
BeWoPlaner/BeWo/View/Detail/Wohneinheit/WohneinheitGrundrissControl.xaml

57 lines
2.4 KiB
XML

<UserControl
x:Class="BeWo.View.Detail.Wohneinheit.WohneinheitGrundrissControl"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:BeWo.View.Detail.Wohneinheit"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
d:DesignHeight="450"
d:DesignWidth="800"
mc:Ignorable="d">
<UserControl.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="..\..\..\Styles\ModernOrangeBlack.xaml" />
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</UserControl.Resources>
<Grid>
<GroupBox
Margin="10"
Header="Grundrissverwaltung"
Style="{StaticResource ObjectEditGroupBox}">
<ListBox
Name="PhotosListBox"
ContextMenuOpening="PhotosListBox_ContextMenuOpening"
ItemsSource="{Binding VMList}"
ScrollViewer.HorizontalScrollBarVisibility="Disabled"
ScrollViewer.VerticalScrollBarVisibility="Auto"
SelectedIndex="0"
Style="{StaticResource PhotoListBox}">
<ListBox.ContextMenu>
<ContextMenu>
<MenuItem Click="MenuItem_Add_Click" Header="Hinzufügen" />
<MenuItem Click="MenuItem_Del_Click" Header="Löschen" />
</ContextMenu>
</ListBox.ContextMenu>
<ListBox.ItemsPanel>
<ItemsPanelTemplate>
<UniformGrid Columns="3" />
</ItemsPanelTemplate>
</ListBox.ItemsPanel>
<ListBox.ItemTemplate>
<DataTemplate>
<StackPanel MouseDown="StackPanel_MouseDown">
<Image
Height="150"
Source="{Binding Original}"
Stretch="Uniform" />
<Label HorizontalAlignment="Center" Content="{Binding Filename}" />
</StackPanel>
</DataTemplate>
</ListBox.ItemTemplate>
</ListBox>
</GroupBox>
</Grid>
</UserControl>