Advertisement
Guest User

Untitled

a guest
Jul 31st, 2015
225
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. <ad:LayoutAnchorablePane DockHeight="Auto" x:Name="LeftTools">
  2. </ad:LayoutAnchorablePane>
  3.  
  4. dockSite = new LayoutAnchorable();
  5. LeftTools.Children.Add((LayoutAnchorable)dockSite);
  6.  
  7. // In Constructor
  8. ObservableCollection<LayoutAnchorable> LeftToolList = new ObservableCollection<LayoutAnchorable>();
  9.  
  10. // Property
  11. public ObservableCollection<LayoutAnchorable> LeftToolList { get; set; }
  12.  
  13. <ItemsControl ItemsSource="{Binding LeftToolList}">
  14. <ItemsControl.ItemsPanel>
  15. <ItemsPanelTemplate>
  16. <ad:LayoutAnchorablePane/>
  17. </ItemsPanelTemplate>
  18. </ItemsControl.ItemsPanel>
  19. </ItemsControl>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement