<Window x:Class="InfoManager.Presentation_Layer.WindowProperty" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="WindowProperty" Height="278" Width="480"> <Grid> <ListView ItemsSource="{Binding PropertyCollection}" Margin="12,86,12,12" Name="listView1"> <ListView.View> <GridView> <GridViewColumn Header="Name" DisplayMemberBinding="{Binding Name}" Width="140"/> <GridViewColumn Header="Type" Width="140"> <GridViewColumn.CellTemplate> <DataTemplate> <ComboBox ItemsSource="{Binding Path=PropertyCollection}" Text="{Binding Path=PropertyTypeText}" DisplayMemberPath="Value" SelectedValuePath="Key" /> </DataTemplate> </GridViewColumn.CellTemplate> </GridViewColumn> <GridViewColumn Header="Value" DisplayMemberBinding="{Binding Value}" Width="140"/> </GridView> </ListView.View> </ListView> <Button Content="Button" Height="23" Margin="0,26,37,0" Name="buttonAdd" VerticalAlignment="Top" HorizontalAlignment="Right" Width="53" Click="buttonAdd_Click" /> <TextBlock Height="23" HorizontalAlignment="Left" Margin="12,30,0,0" Name="textBlock1" Text="Add new property:" VerticalAlignment="Top" /> <TextBox Height="23" Margin="116,27,96,0" Name="textBoxNewProperty" VerticalAlignment="Top" /> </Grid> </Window>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)