Files
WpfExtended/WpfExtended.Test/TestApplication/Controls/PropertyList.xaml
T

24 lines
1.2 KiB
XML

<UserControl x:Class="WpfExtended.Tests.TestApplication.Controls.PropertyList"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:WpfExtended.Tests.TestApplication.Controls"
DataContextChanged="PropertyList_DataContextChanged"
mc:Ignorable="d"
x:Name="_this"
d:DesignHeight="450" d:DesignWidth="800">
<Grid>
<ListView ItemsSource="{Binding ElementName=_this, Path=EffectProperties, Mode=OneWay}">
<ListView.ItemTemplate>
<DataTemplate>
<StackPanel>
<TextBlock Text="{Binding Name}"></TextBlock>
<TextBox Text="{Binding Value, Mode=OneWay}" KeyDown="TextBox_KeyDown"></TextBox>
</StackPanel>
</DataTemplate>
</ListView.ItemTemplate>
</ListView>
</Grid>
</UserControl>