0
我给错误属性内容设置更多一次。属性内容设置更多一次
如何将堆栈面板和列表视图放置在一个页面中?
我要放置在DDL StackPanel中
<UserControl x:Class="D.O.L.U.U"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
<StackPanel Orientation="Horizontal" Margin="0,0,0,17">
</StackPanel>
<ListView ItemsSource="{Binding DataContext, RelativeSource={RelativeSource Self}}" SelectionChanged="Changed">
<ListView.ItemContainerStyle>
<Style TargetType="ListViewItem">
<EventSetter Event="PreviewMouseLeftButtonUp" Handler="Click" />
</Style>
</ListView.ItemContainerStyle>
<ListView.ItemTemplate>
<DataTemplate>
<Grid>
<TextBlock Text="{Binding Path=Name}"/>
</Grid>
</DataTemplate>
</ListView.ItemTemplate>
</ListView>