Service
IService
DataItem作为IService,Service的参数
根据不同的VM注入不同的Service
菜单
http://wpftutorial.net/Menus.html
状态栏
http://stackoverflow.com/questions/1373529/how-do-i-customize-the-wpf-statusbar-layout
颜色选择器
http://bbs.csdn.net/topics/390306458
布局
<Window x:Class="WpfApplication1.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="MainWindow" Height="350" Width="525">
<Grid>
<Grid VerticalAlignment="Top">
<Grid.RowDefinitions>
<RowDefinition Height="*" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<ScrollViewer HorizontalAlignment="Stretch" VerticalAlignment="Top" >
<!--<Grid>-->
<TreeView>
<TreeViewItem>adfsfd</TreeViewItem>
<TreeViewItem>adfsfd</TreeViewItem>
<TreeViewItem>adfsfd</TreeViewItem>
<TreeViewItem>adfsfd</TreeViewItem>
<TreeViewItem>adfsfd</TreeViewItem>
<TreeViewItem>adfsfd</TreeViewItem>
<TreeViewItem>adfsfd</TreeViewItem>
<TreeViewItem>adfsfd</TreeViewItem>
<TreeViewItem>adfsfd</TreeViewItem>
<TreeViewItem>adfsfd</TreeViewItem>
<TreeViewItem>adfsfd</TreeViewItem>
<TreeViewItem>adfsfd</TreeViewItem>
<TreeViewItem>adfsfd</TreeViewItem>
<TreeViewItem>adfsfd</TreeViewItem>
<TreeViewItem>adfsfd</TreeViewItem>
<TreeViewItem>adfsfd</TreeViewItem>
<TreeViewItem>adfsfd</TreeViewItem>
<TreeViewItem>adfsfd</TreeViewItem>
<TreeViewItem>adfsfd</TreeViewItem>
<TreeViewItem>adfsfd</TreeViewItem>
<TreeViewItem>adfsfd</TreeViewItem>
<TreeViewItem>adfsfd</TreeViewItem>
<TreeViewItem>adfsfd</TreeViewItem>
<TreeViewItem>adfsfd</TreeViewItem>
<TreeViewItem>adfsfd</TreeViewItem>
<TreeViewItem>adfsfd</TreeViewItem>
<TreeViewItem>adfsfd</TreeViewItem>
<TreeViewItem>adfsfd</TreeViewItem>
<TreeViewItem>adfsfd</TreeViewItem>
<TreeViewItem>adfsfd</TreeViewItem>
<TreeViewItem>adfsfd</TreeViewItem>
<TreeViewItem>adfsfd</TreeViewItem>
<TreeViewItem>adfsfd</TreeViewItem>
<TreeViewItem>adfsfd</TreeViewItem>
</TreeView>
<!--</Grid>-->
</ScrollViewer>
<Button Content="+ 添加新章节" Height="30" Background="Transparent" HorizontalAlignment="Left" VerticalAlignment="Top" Grid.Row="1"/>
</Grid>
</Grid>
</Window>
关闭TabItem:http://www.codeproject.com/Articles/84213/How-to-add-a-Close-button-to-a-WPF-TabItem
自适应tabitem的宽度http://stackoverflow.com/questions/17846988/how-to-autoresize-tabitems-header-width
http://social.msdn.microsoft.com/Forums/windows/en-US/7807f5a3-e82a-4821-86f3-ef8cf1b59c93/tab-page-header-width-and-order-when-clicking-on-them
模板http://wpftutorial.net/templates.html
当接受缩进时,记得加上accessTab=true
复制uicontainer
http://stackoverflow.com/questions/1611552/how-can-i-copy-wpf-flowdocument-inlineuicontainer-contents
FlowDocumentReader流文件
http://www.cnblogs.com/zlgcool/archive/2008/11/17/1335456.html