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>