<Grid Height="628" Width="758" Name="grid1" VerticalAlignment="Top">
<ItemsControl x:Name="_board" ItemsSource="{Binding VideoList}" Margin="0">
<ItemsControl.ItemsPanel>
<ItemsPanelTemplate>
<UniformGrid Columns="{Binding ColumnsCount}" />
</ItemsPanelTemplate>
</ItemsControl.ItemsPanel>
<ItemsControl.ItemTemplate>
<DataTemplate>
<Border BorderBrush="Blue" Margin="0" BorderThickness="1">
<Grid>
<my:MainWindow></my:MainWindow>这个地方报错 :无法将Window放入Style
</Grid>
</Border>
<DataTemplate.Triggers>
<DataTrigger Binding="{Binding}" Value="Empty">
<Setter Property="Opacity" Value="0" />
</DataTrigger>
</DataTemplate.Triggers>
</DataTemplate>
</ItemsControl.ItemTemplate>
</ItemsControl>
</Grid>
大家有知道 <DataTemplate>
中怎么放入window吗?????