1 public partial class AnalysisPage : LayoutDocument, IComponentConnector
1 <ld:LayoutDocument FloatingWidth="300" Closing="DocumentContent_Closing" xmlns:ld="clr-namespace:AvalonDock.Layout;assembly=AvalonDock" > 2 <Grid Margin="0" HorizontalAlignment="Stretch" VerticalAlignment="Stretch"> 3 <Grid.ContextMenu> 4 <ContextMenu> 5 <MenuItem Height="25" Header="刷新列表" Click="MenuItem_Click"> 6 <MenuItem.Icon> 7 <Image Source="/Images/shuaxin.png" Width="15" Height="16" /> 8 </MenuItem.Icon> 9 </MenuItem> 10 </ContextMenu> 11 </Grid.ContextMenu> 12 <Grid.RowDefinitions> 13 <RowDefinition /> 14 <RowDefinition Height="0" /> 15 </Grid.RowDefinitions> 16 <ListBox Name="List" BorderThickness="0" MouseDoubleClick="list_MouseDoubleClick" /> 17 </Grid> 18 </ld:LayoutDocument>
这样子不行呀,加x:Class提示我说LayoutDocument这个没有这个属性,应该怎么做的,刚学习wfp,感觉还是个文盲,分不多了,帮帮忙百度越来越烂了,找点问题都不能解决的