WPF之模仿Visual Studio效果的框架界面

方式:使用AvalonDock.dll控件。


AvalonDock有如下主要元素:

1.DockingManager: DockingManager是AvalonDock中最核心的控件标签,容纳所有AvalonDock标签。

2.ResizingPanel: 用于整体界面布局,方向有横向和纵向。

3.DocumentPane:通常用于包含文字编辑的标签,也可以包含DockableContents标签,DocumentPane不能被拖动

4.DocumentContent:包含在DocumentPane里面,一般用于文本编辑的功能,类似vs2010的代码编辑框部分。

4.DockablePane:能够类似vs2010的工具箱面板,能够吸附在边框上的效果。

5.DockableContent:包含在DockablePane里面,下方显示DockableContent的Title


下面来实现一个类似vs2010的界面,先贴上效果图:




       
           
           
           
       

       


           
               
               
           

       

       
           
               
                   
                       
                           
                       

                   

                   
                       
                           
                               
                               
                           

                       

                       
                           
                               
                               
                               
                           

                       

                   

               

               
                   
                       
                           
                               
                                   
                                       
                                       


                                       
                                   

                               

                           

                       

                   

                   
                       
                   

               

               

       

       
           
       

   

你可能感兴趣的:(WPF)