翼度科技»论坛 编程开发 .net 查看内容

WPF应用开发之控件动态内容展示

5

主题

5

帖子

15

积分

新手上路

Rank: 1

积分
15
在我们开发一些复杂信息的时候,由于需要动态展示一些相关信息,因此我们需要考虑一些控件内容的动态展示,可以通过动态构建控件的方式进行显示,如动态选项卡展示不同的信息,或者动态展示一个自定义控件的内容等等,目的就是能够减少一些硬编码的处理方式,以及能够灵活的展示数据。本篇随笔通过实际案例介绍WPF应用开发之控件动态内容展示。
1、选项卡TabControl的动态内容展示

在我们客户关系管理模块中,往往需要展示一个客户相关的很多数据,我们可以把它们放在多个选项卡中进行统一展示,如下界面所示。

由于客户的相关模块信息比较多,因此我们通过选项卡的展示是比较合理的一种界面组织方式,这里由于不同的客户信息,他们展示的内容不同(但结构相同),因此可以考虑动态的刷新选项卡项目TabItem的内容数据进行。
因此我们这里引入一个自定义的控件AllRelatedListControl,用来承载所有需要展示的模块一个组合。
因此在主页面上,我们可以通过一个Divider分隔控件隔开,展示客户相关的数据,如下XAML 代码所示。
  1. <hc:Divider
  2. <TabItem Header="客户跟进" Tag="FollowControl">
  3.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  4. </TabItem>Margin="0"
  5. <TabItem Header="客户跟进" Tag="FollowControl">
  6.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  7. </TabItem>LineStroke="{DynamicResource DarkPrimaryBrush}"
  8. <TabItem Header="客户跟进" Tag="FollowControl">
  9.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  10. </TabItem>LineStrokeThickness="2" />
  11. <Grid Margin="0,5,0,0" Background="{DynamicResource BackgroundBrush}">
  12. <TabItem Header="客户跟进" Tag="FollowControl">
  13.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  14. </TabItem>
  15. <TabItem Header="客户跟进" Tag="FollowControl">
  16.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  17. </TabItem><local:AllRelatedListControl x:Name="allRelatedList" CustomerId="{Binding SelectedItem.Id, ElementName=grid}" />
  18. </Grid>
复制代码
这个自定义的控件,主要的作用是组合多个选项卡项目,减少主界面的代码,并增加一些共同的属性和方法来控制数据的更新显示的。
  1. <hc:Divider
  2. <TabItem Header="客户跟进" Tag="FollowControl">
  3.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  4. </TabItem>Margin="0"
  5. <TabItem Header="客户跟进" Tag="FollowControl">
  6.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  7. </TabItem>LineStroke="{DynamicResource DarkPrimaryBrush}"
  8. <TabItem Header="客户跟进" Tag="FollowControl">
  9.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  10. </TabItem>LineStrokeThickness="2" />
  11. <Grid Margin="0,5,0,0" Background="{DynamicResource BackgroundBrush}">
  12. <TabItem Header="客户跟进" Tag="FollowControl">
  13.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  14. </TabItem>
  15. <TabItem Header="客户跟进" Tag="FollowControl">
  16.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  17. </TabItem><local:AllRelatedListControl x:Name="allRelatedList" CustomerId="{Binding SelectedItem.Id, ElementName=grid}" />
  18. </Grid><hc:Divider
  19. <TabItem Header="客户跟进" Tag="FollowControl">
  20.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  21. </TabItem>Margin="0"
  22. <TabItem Header="客户跟进" Tag="FollowControl">
  23.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  24. </TabItem>LineStroke="{DynamicResource DarkPrimaryBrush}"
  25. <TabItem Header="客户跟进" Tag="FollowControl">
  26.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  27. </TabItem>LineStrokeThickness="2" />
  28. <Grid Margin="0,5,0,0" Background="{DynamicResource BackgroundBrush}">
  29. <TabItem Header="客户跟进" Tag="FollowControl">
  30.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  31. </TabItem>
  32. <TabItem Header="客户跟进" Tag="FollowControl">
  33.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  34. </TabItem><local:AllRelatedListControl x:Name="allRelatedList" CustomerId="{Binding SelectedItem.Id, ElementName=grid}" />
  35. </Grid><hc:Divider
  36. <TabItem Header="客户跟进" Tag="FollowControl">
  37.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  38. </TabItem>Margin="0"
  39. <TabItem Header="客户跟进" Tag="FollowControl">
  40.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  41. </TabItem>LineStroke="{DynamicResource DarkPrimaryBrush}"
  42. <TabItem Header="客户跟进" Tag="FollowControl">
  43.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  44. </TabItem>LineStrokeThickness="2" />
  45. <Grid Margin="0,5,0,0" Background="{DynamicResource BackgroundBrush}">
  46. <TabItem Header="客户跟进" Tag="FollowControl">
  47.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  48. </TabItem>
  49. <TabItem Header="客户跟进" Tag="FollowControl">
  50.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  51. </TabItem><local:AllRelatedListControl x:Name="allRelatedList" CustomerId="{Binding SelectedItem.Id, ElementName=grid}" />
  52. </Grid><hc:Divider
  53. <TabItem Header="客户跟进" Tag="FollowControl">
  54.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  55. </TabItem>Margin="0"
  56. <TabItem Header="客户跟进" Tag="FollowControl">
  57.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  58. </TabItem>LineStroke="{DynamicResource DarkPrimaryBrush}"
  59. <TabItem Header="客户跟进" Tag="FollowControl">
  60.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  61. </TabItem>LineStrokeThickness="2" />
  62. <Grid Margin="0,5,0,0" Background="{DynamicResource BackgroundBrush}">
  63. <TabItem Header="客户跟进" Tag="FollowControl">
  64.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  65. </TabItem>
  66. <TabItem Header="客户跟进" Tag="FollowControl">
  67.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  68. </TabItem><local:AllRelatedListControl x:Name="allRelatedList" CustomerId="{Binding SelectedItem.Id, ElementName=grid}" />
  69. </Grid><hc:Divider
  70. <TabItem Header="客户跟进" Tag="FollowControl">
  71.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  72. </TabItem>Margin="0"
  73. <TabItem Header="客户跟进" Tag="FollowControl">
  74.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  75. </TabItem>LineStroke="{DynamicResource DarkPrimaryBrush}"
  76. <TabItem Header="客户跟进" Tag="FollowControl">
  77.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  78. </TabItem>LineStrokeThickness="2" />
  79. <Grid Margin="0,5,0,0" Background="{DynamicResource BackgroundBrush}">
  80. <TabItem Header="客户跟进" Tag="FollowControl">
  81.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  82. </TabItem>
  83. <TabItem Header="客户跟进" Tag="FollowControl">
  84.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  85. </TabItem><local:AllRelatedListControl x:Name="allRelatedList" CustomerId="{Binding SelectedItem.Id, ElementName=grid}" />
  86. </Grid><hc:Divider
  87. <TabItem Header="客户跟进" Tag="FollowControl">
  88.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  89. </TabItem>Margin="0"
  90. <TabItem Header="客户跟进" Tag="FollowControl">
  91.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  92. </TabItem>LineStroke="{DynamicResource DarkPrimaryBrush}"
  93. <TabItem Header="客户跟进" Tag="FollowControl">
  94.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  95. </TabItem>LineStrokeThickness="2" />
  96. <Grid Margin="0,5,0,0" Background="{DynamicResource BackgroundBrush}">
  97. <TabItem Header="客户跟进" Tag="FollowControl">
  98.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  99. </TabItem>
  100. <TabItem Header="客户跟进" Tag="FollowControl">
  101.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  102. </TabItem><local:AllRelatedListControl x:Name="allRelatedList" CustomerId="{Binding SelectedItem.Id, ElementName=grid}" />
  103. </Grid><hc:Divider
  104. <TabItem Header="客户跟进" Tag="FollowControl">
  105.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  106. </TabItem>Margin="0"
  107. <TabItem Header="客户跟进" Tag="FollowControl">
  108.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  109. </TabItem>LineStroke="{DynamicResource DarkPrimaryBrush}"
  110. <TabItem Header="客户跟进" Tag="FollowControl">
  111.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  112. </TabItem>LineStrokeThickness="2" />
  113. <Grid Margin="0,5,0,0" Background="{DynamicResource BackgroundBrush}">
  114. <TabItem Header="客户跟进" Tag="FollowControl">
  115.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  116. </TabItem>
  117. <TabItem Header="客户跟进" Tag="FollowControl">
  118.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  119. </TabItem><local:AllRelatedListControl x:Name="allRelatedList" CustomerId="{Binding SelectedItem.Id, ElementName=grid}" />
  120. </Grid><hc:Divider
  121. <TabItem Header="客户跟进" Tag="FollowControl">
  122.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  123. </TabItem>Margin="0"
  124. <TabItem Header="客户跟进" Tag="FollowControl">
  125.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  126. </TabItem>LineStroke="{DynamicResource DarkPrimaryBrush}"
  127. <TabItem Header="客户跟进" Tag="FollowControl">
  128.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  129. </TabItem>LineStrokeThickness="2" />
  130. <Grid Margin="0,5,0,0" Background="{DynamicResource BackgroundBrush}">
  131. <TabItem Header="客户跟进" Tag="FollowControl">
  132.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  133. </TabItem>
  134. <TabItem Header="客户跟进" Tag="FollowControl">
  135.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  136. </TabItem><local:AllRelatedListControl x:Name="allRelatedList" CustomerId="{Binding SelectedItem.Id, ElementName=grid}" />
  137. </Grid><hc:Divider
  138. <TabItem Header="客户跟进" Tag="FollowControl">
  139.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  140. </TabItem>Margin="0"
  141. <TabItem Header="客户跟进" Tag="FollowControl">
  142.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  143. </TabItem>LineStroke="{DynamicResource DarkPrimaryBrush}"
  144. <TabItem Header="客户跟进" Tag="FollowControl">
  145.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  146. </TabItem>LineStrokeThickness="2" />
  147. <Grid Margin="0,5,0,0" Background="{DynamicResource BackgroundBrush}">
  148. <TabItem Header="客户跟进" Tag="FollowControl">
  149.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  150. </TabItem>
  151. <TabItem Header="客户跟进" Tag="FollowControl">
  152.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  153. </TabItem><local:AllRelatedListControl x:Name="allRelatedList" CustomerId="{Binding SelectedItem.Id, ElementName=grid}" />
  154. </Grid><hc:Divider
  155. <TabItem Header="客户跟进" Tag="FollowControl">
  156.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  157. </TabItem>Margin="0"
  158. <TabItem Header="客户跟进" Tag="FollowControl">
  159.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  160. </TabItem>LineStroke="{DynamicResource DarkPrimaryBrush}"
  161. <TabItem Header="客户跟进" Tag="FollowControl">
  162.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  163. </TabItem>LineStrokeThickness="2" />
  164. <Grid Margin="0,5,0,0" Background="{DynamicResource BackgroundBrush}">
  165. <TabItem Header="客户跟进" Tag="FollowControl">
  166.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  167. </TabItem>
  168. <TabItem Header="客户跟进" Tag="FollowControl">
  169.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  170. </TabItem><local:AllRelatedListControl x:Name="allRelatedList" CustomerId="{Binding SelectedItem.Id, ElementName=grid}" />
  171. </Grid><hc:Divider
  172. <TabItem Header="客户跟进" Tag="FollowControl">
  173.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  174. </TabItem>Margin="0"
  175. <TabItem Header="客户跟进" Tag="FollowControl">
  176.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  177. </TabItem>LineStroke="{DynamicResource DarkPrimaryBrush}"
  178. <TabItem Header="客户跟进" Tag="FollowControl">
  179.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  180. </TabItem>LineStrokeThickness="2" />
  181. <Grid Margin="0,5,0,0" Background="{DynamicResource BackgroundBrush}">
  182. <TabItem Header="客户跟进" Tag="FollowControl">
  183.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  184. </TabItem>
  185. <TabItem Header="客户跟进" Tag="FollowControl">
  186.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  187. </TabItem><local:AllRelatedListControl x:Name="allRelatedList" CustomerId="{Binding SelectedItem.Id, ElementName=grid}" />
  188. </Grid><hc:Divider
  189. <TabItem Header="客户跟进" Tag="FollowControl">
  190.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  191. </TabItem>Margin="0"
  192. <TabItem Header="客户跟进" Tag="FollowControl">
  193.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  194. </TabItem>LineStroke="{DynamicResource DarkPrimaryBrush}"
  195. <TabItem Header="客户跟进" Tag="FollowControl">
  196.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  197. </TabItem>LineStrokeThickness="2" />
  198. <Grid Margin="0,5,0,0" Background="{DynamicResource BackgroundBrush}">
  199. <TabItem Header="客户跟进" Tag="FollowControl">
  200.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  201. </TabItem>
  202. <TabItem Header="客户跟进" Tag="FollowControl">
  203.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  204. </TabItem><local:AllRelatedListControl x:Name="allRelatedList" CustomerId="{Binding SelectedItem.Id, ElementName=grid}" />
  205. </Grid><hc:Divider
  206. <TabItem Header="客户跟进" Tag="FollowControl">
  207.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  208. </TabItem>Margin="0"
  209. <TabItem Header="客户跟进" Tag="FollowControl">
  210.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  211. </TabItem>LineStroke="{DynamicResource DarkPrimaryBrush}"
  212. <TabItem Header="客户跟进" Tag="FollowControl">
  213.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  214. </TabItem>LineStrokeThickness="2" />
  215. <Grid Margin="0,5,0,0" Background="{DynamicResource BackgroundBrush}">
  216. <TabItem Header="客户跟进" Tag="FollowControl">
  217.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  218. </TabItem>
  219. <TabItem Header="客户跟进" Tag="FollowControl">
  220.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  221. </TabItem><local:AllRelatedListControl x:Name="allRelatedList" CustomerId="{Binding SelectedItem.Id, ElementName=grid}" />
  222. </Grid><hc:Divider
  223. <TabItem Header="客户跟进" Tag="FollowControl">
  224.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  225. </TabItem>Margin="0"
  226. <TabItem Header="客户跟进" Tag="FollowControl">
  227.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  228. </TabItem>LineStroke="{DynamicResource DarkPrimaryBrush}"
  229. <TabItem Header="客户跟进" Tag="FollowControl">
  230.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  231. </TabItem>LineStrokeThickness="2" />
  232. <Grid Margin="0,5,0,0" Background="{DynamicResource BackgroundBrush}">
  233. <TabItem Header="客户跟进" Tag="FollowControl">
  234.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  235. </TabItem>
  236. <TabItem Header="客户跟进" Tag="FollowControl">
  237.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  238. </TabItem><local:AllRelatedListControl x:Name="allRelatedList" CustomerId="{Binding SelectedItem.Id, ElementName=grid}" />
  239. </Grid><hc:Divider
  240. <TabItem Header="客户跟进" Tag="FollowControl">
  241.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  242. </TabItem>Margin="0"
  243. <TabItem Header="客户跟进" Tag="FollowControl">
  244.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  245. </TabItem>LineStroke="{DynamicResource DarkPrimaryBrush}"
  246. <TabItem Header="客户跟进" Tag="FollowControl">
  247.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  248. </TabItem>LineStrokeThickness="2" />
  249. <Grid Margin="0,5,0,0" Background="{DynamicResource BackgroundBrush}">
  250. <TabItem Header="客户跟进" Tag="FollowControl">
  251.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  252. </TabItem>
  253. <TabItem Header="客户跟进" Tag="FollowControl">
  254.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  255. </TabItem><local:AllRelatedListControl x:Name="allRelatedList" CustomerId="{Binding SelectedItem.Id, ElementName=grid}" />
  256. </Grid><hc:Divider
  257. <TabItem Header="客户跟进" Tag="FollowControl">
  258.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  259. </TabItem>Margin="0"
  260. <TabItem Header="客户跟进" Tag="FollowControl">
  261.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  262. </TabItem>LineStroke="{DynamicResource DarkPrimaryBrush}"
  263. <TabItem Header="客户跟进" Tag="FollowControl">
  264.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  265. </TabItem>LineStrokeThickness="2" />
  266. <Grid Margin="0,5,0,0" Background="{DynamicResource BackgroundBrush}">
  267. <TabItem Header="客户跟进" Tag="FollowControl">
  268.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  269. </TabItem>
  270. <TabItem Header="客户跟进" Tag="FollowControl">
  271.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  272. </TabItem><local:AllRelatedListControl x:Name="allRelatedList" CustomerId="{Binding SelectedItem.Id, ElementName=grid}" />
  273. </Grid><hc:Divider
  274. <TabItem Header="客户跟进" Tag="FollowControl">
  275.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  276. </TabItem>Margin="0"
  277. <TabItem Header="客户跟进" Tag="FollowControl">
  278.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  279. </TabItem>LineStroke="{DynamicResource DarkPrimaryBrush}"
  280. <TabItem Header="客户跟进" Tag="FollowControl">
  281.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  282. </TabItem>LineStrokeThickness="2" />
  283. <Grid Margin="0,5,0,0" Background="{DynamicResource BackgroundBrush}">
  284. <TabItem Header="客户跟进" Tag="FollowControl">
  285.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  286. </TabItem>
  287. <TabItem Header="客户跟进" Tag="FollowControl">
  288.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  289. </TabItem><local:AllRelatedListControl x:Name="allRelatedList" CustomerId="{Binding SelectedItem.Id, ElementName=grid}" />
  290. </Grid><hc:Divider
  291. <TabItem Header="客户跟进" Tag="FollowControl">
  292.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  293. </TabItem>Margin="0"
  294. <TabItem Header="客户跟进" Tag="FollowControl">
  295.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  296. </TabItem>LineStroke="{DynamicResource DarkPrimaryBrush}"
  297. <TabItem Header="客户跟进" Tag="FollowControl">
  298.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  299. </TabItem>LineStrokeThickness="2" />
  300. <Grid Margin="0,5,0,0" Background="{DynamicResource BackgroundBrush}">
  301. <TabItem Header="客户跟进" Tag="FollowControl">
  302.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  303. </TabItem>
  304. <TabItem Header="客户跟进" Tag="FollowControl">
  305.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  306. </TabItem><local:AllRelatedListControl x:Name="allRelatedList" CustomerId="{Binding SelectedItem.Id, ElementName=grid}" />
  307. </Grid><hc:Divider
  308. <TabItem Header="客户跟进" Tag="FollowControl">
  309.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  310. </TabItem>Margin="0"
  311. <TabItem Header="客户跟进" Tag="FollowControl">
  312.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  313. </TabItem>LineStroke="{DynamicResource DarkPrimaryBrush}"
  314. <TabItem Header="客户跟进" Tag="FollowControl">
  315.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  316. </TabItem>LineStrokeThickness="2" />
  317. <Grid Margin="0,5,0,0" Background="{DynamicResource BackgroundBrush}">
  318. <TabItem Header="客户跟进" Tag="FollowControl">
  319.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  320. </TabItem>
  321. <TabItem Header="客户跟进" Tag="FollowControl">
  322.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  323. </TabItem><local:AllRelatedListControl x:Name="allRelatedList" CustomerId="{Binding SelectedItem.Id, ElementName=grid}" />
  324. </Grid><hc:Divider
  325. <TabItem Header="客户跟进" Tag="FollowControl">
  326.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  327. </TabItem>Margin="0"
  328. <TabItem Header="客户跟进" Tag="FollowControl">
  329.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  330. </TabItem>LineStroke="{DynamicResource DarkPrimaryBrush}"
  331. <TabItem Header="客户跟进" Tag="FollowControl">
  332.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  333. </TabItem>LineStrokeThickness="2" />
  334. <Grid Margin="0,5,0,0" Background="{DynamicResource BackgroundBrush}">
  335. <TabItem Header="客户跟进" Tag="FollowControl">
  336.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  337. </TabItem>
  338. <TabItem Header="客户跟进" Tag="FollowControl">
  339.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  340. </TabItem><local:AllRelatedListControl x:Name="allRelatedList" CustomerId="{Binding SelectedItem.Id, ElementName=grid}" />
  341. </Grid><hc:Divider
  342. <TabItem Header="客户跟进" Tag="FollowControl">
  343.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  344. </TabItem>Margin="0"
  345. <TabItem Header="客户跟进" Tag="FollowControl">
  346.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  347. </TabItem>LineStroke="{DynamicResource DarkPrimaryBrush}"
  348. <TabItem Header="客户跟进" Tag="FollowControl">
  349.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  350. </TabItem>LineStrokeThickness="2" />
  351. <Grid Margin="0,5,0,0" Background="{DynamicResource BackgroundBrush}">
  352. <TabItem Header="客户跟进" Tag="FollowControl">
  353.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  354. </TabItem>
  355. <TabItem Header="客户跟进" Tag="FollowControl">
  356.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  357. </TabItem><local:AllRelatedListControl x:Name="allRelatedList" CustomerId="{Binding SelectedItem.Id, ElementName=grid}" />
  358. </Grid><hc:Divider
  359. <TabItem Header="客户跟进" Tag="FollowControl">
  360.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  361. </TabItem>Margin="0"
  362. <TabItem Header="客户跟进" Tag="FollowControl">
  363.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  364. </TabItem>LineStroke="{DynamicResource DarkPrimaryBrush}"
  365. <TabItem Header="客户跟进" Tag="FollowControl">
  366.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  367. </TabItem>LineStrokeThickness="2" />
  368. <Grid Margin="0,5,0,0" Background="{DynamicResource BackgroundBrush}">
  369. <TabItem Header="客户跟进" Tag="FollowControl">
  370.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  371. </TabItem>
  372. <TabItem Header="客户跟进" Tag="FollowControl">
  373.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  374. </TabItem><local:AllRelatedListControl x:Name="allRelatedList" CustomerId="{Binding SelectedItem.Id, ElementName=grid}" />
  375. </Grid><hc:Divider
  376. <TabItem Header="客户跟进" Tag="FollowControl">
  377.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  378. </TabItem>Margin="0"
  379. <TabItem Header="客户跟进" Tag="FollowControl">
  380.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  381. </TabItem>LineStroke="{DynamicResource DarkPrimaryBrush}"
  382. <TabItem Header="客户跟进" Tag="FollowControl">
  383.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  384. </TabItem>LineStrokeThickness="2" />
  385. <Grid Margin="0,5,0,0" Background="{DynamicResource BackgroundBrush}">
  386. <TabItem Header="客户跟进" Tag="FollowControl">
  387.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  388. </TabItem>
  389. <TabItem Header="客户跟进" Tag="FollowControl">
  390.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  391. </TabItem><local:AllRelatedListControl x:Name="allRelatedList" CustomerId="{Binding SelectedItem.Id, ElementName=grid}" />
  392. </Grid><hc:Divider
  393. <TabItem Header="客户跟进" Tag="FollowControl">
  394.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  395. </TabItem>Margin="0"
  396. <TabItem Header="客户跟进" Tag="FollowControl">
  397.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  398. </TabItem>LineStroke="{DynamicResource DarkPrimaryBrush}"
  399. <TabItem Header="客户跟进" Tag="FollowControl">
  400.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  401. </TabItem>LineStrokeThickness="2" />
  402. <Grid Margin="0,5,0,0" Background="{DynamicResource BackgroundBrush}">
  403. <TabItem Header="客户跟进" Tag="FollowControl">
  404.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  405. </TabItem>
  406. <TabItem Header="客户跟进" Tag="FollowControl">
  407.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  408. </TabItem><local:AllRelatedListControl x:Name="allRelatedList" CustomerId="{Binding SelectedItem.Id, ElementName=grid}" />
  409. </Grid><hc:Divider
  410. <TabItem Header="客户跟进" Tag="FollowControl">
  411.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  412. </TabItem>Margin="0"
  413. <TabItem Header="客户跟进" Tag="FollowControl">
  414.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  415. </TabItem>LineStroke="{DynamicResource DarkPrimaryBrush}"
  416. <TabItem Header="客户跟进" Tag="FollowControl">
  417.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  418. </TabItem>LineStrokeThickness="2" />
  419. <Grid Margin="0,5,0,0" Background="{DynamicResource BackgroundBrush}">
  420. <TabItem Header="客户跟进" Tag="FollowControl">
  421.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  422. </TabItem>
  423. <TabItem Header="客户跟进" Tag="FollowControl">
  424.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  425. </TabItem><local:AllRelatedListControl x:Name="allRelatedList" CustomerId="{Binding SelectedItem.Id, ElementName=grid}" />
  426. </Grid><hc:Divider
  427. <TabItem Header="客户跟进" Tag="FollowControl">
  428.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  429. </TabItem>Margin="0"
  430. <TabItem Header="客户跟进" Tag="FollowControl">
  431.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  432. </TabItem>LineStroke="{DynamicResource DarkPrimaryBrush}"
  433. <TabItem Header="客户跟进" Tag="FollowControl">
  434.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  435. </TabItem>LineStrokeThickness="2" />
  436. <Grid Margin="0,5,0,0" Background="{DynamicResource BackgroundBrush}">
  437. <TabItem Header="客户跟进" Tag="FollowControl">
  438.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  439. </TabItem>
  440. <TabItem Header="客户跟进" Tag="FollowControl">
  441.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  442. </TabItem><local:AllRelatedListControl x:Name="allRelatedList" CustomerId="{Binding SelectedItem.Id, ElementName=grid}" />
  443. </Grid><hc:Divider
  444. <TabItem Header="客户跟进" Tag="FollowControl">
  445.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  446. </TabItem>Margin="0"
  447. <TabItem Header="客户跟进" Tag="FollowControl">
  448.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  449. </TabItem>LineStroke="{DynamicResource DarkPrimaryBrush}"
  450. <TabItem Header="客户跟进" Tag="FollowControl">
  451.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  452. </TabItem>LineStrokeThickness="2" />
  453. <Grid Margin="0,5,0,0" Background="{DynamicResource BackgroundBrush}">
  454. <TabItem Header="客户跟进" Tag="FollowControl">
  455.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  456. </TabItem>
  457. <TabItem Header="客户跟进" Tag="FollowControl">
  458.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  459. </TabItem><local:AllRelatedListControl x:Name="allRelatedList" CustomerId="{Binding SelectedItem.Id, ElementName=grid}" />
  460. </Grid><hc:Divider
  461. <TabItem Header="客户跟进" Tag="FollowControl">
  462.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  463. </TabItem>Margin="0"
  464. <TabItem Header="客户跟进" Tag="FollowControl">
  465.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  466. </TabItem>LineStroke="{DynamicResource DarkPrimaryBrush}"
  467. <TabItem Header="客户跟进" Tag="FollowControl">
  468.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  469. </TabItem>LineStrokeThickness="2" />
  470. <Grid Margin="0,5,0,0" Background="{DynamicResource BackgroundBrush}">
  471. <TabItem Header="客户跟进" Tag="FollowControl">
  472.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  473. </TabItem>
  474. <TabItem Header="客户跟进" Tag="FollowControl">
  475.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  476. </TabItem><local:AllRelatedListControl x:Name="allRelatedList" CustomerId="{Binding SelectedItem.Id, ElementName=grid}" />
  477. </Grid><hc:Divider
  478. <TabItem Header="客户跟进" Tag="FollowControl">
  479.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  480. </TabItem>Margin="0"
  481. <TabItem Header="客户跟进" Tag="FollowControl">
  482.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  483. </TabItem>LineStroke="{DynamicResource DarkPrimaryBrush}"
  484. <TabItem Header="客户跟进" Tag="FollowControl">
  485.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  486. </TabItem>LineStrokeThickness="2" />
  487. <Grid Margin="0,5,0,0" Background="{DynamicResource BackgroundBrush}">
  488. <TabItem Header="客户跟进" Tag="FollowControl">
  489.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  490. </TabItem>
  491. <TabItem Header="客户跟进" Tag="FollowControl">
  492.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  493. </TabItem><local:AllRelatedListControl x:Name="allRelatedList" CustomerId="{Binding SelectedItem.Id, ElementName=grid}" />
  494. </Grid><hc:Divider
  495. <TabItem Header="客户跟进" Tag="FollowControl">
  496.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  497. </TabItem>Margin="0"
  498. <TabItem Header="客户跟进" Tag="FollowControl">
  499.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  500. </TabItem>LineStroke="{DynamicResource DarkPrimaryBrush}"
  501. <TabItem Header="客户跟进" Tag="FollowControl">
  502.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  503. </TabItem>LineStrokeThickness="2" />
  504. <Grid Margin="0,5,0,0" Background="{DynamicResource BackgroundBrush}">
  505. <TabItem Header="客户跟进" Tag="FollowControl">
  506.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  507. </TabItem>
  508. <TabItem Header="客户跟进" Tag="FollowControl">
  509.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  510. </TabItem><local:AllRelatedListControl x:Name="allRelatedList" CustomerId="{Binding SelectedItem.Id, ElementName=grid}" />
  511. </Grid><hc:Divider
  512. <TabItem Header="客户跟进" Tag="FollowControl">
  513.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  514. </TabItem>Margin="0"
  515. <TabItem Header="客户跟进" Tag="FollowControl">
  516.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  517. </TabItem>LineStroke="{DynamicResource DarkPrimaryBrush}"
  518. <TabItem Header="客户跟进" Tag="FollowControl">
  519.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  520. </TabItem>LineStrokeThickness="2" />
  521. <Grid Margin="0,5,0,0" Background="{DynamicResource BackgroundBrush}">
  522. <TabItem Header="客户跟进" Tag="FollowControl">
  523.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  524. </TabItem>
  525. <TabItem Header="客户跟进" Tag="FollowControl">
  526.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  527. </TabItem><local:AllRelatedListControl x:Name="allRelatedList" CustomerId="{Binding SelectedItem.Id, ElementName=grid}" />
  528. </Grid><hc:Divider
  529. <TabItem Header="客户跟进" Tag="FollowControl">
  530.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  531. </TabItem>Margin="0"
  532. <TabItem Header="客户跟进" Tag="FollowControl">
  533.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  534. </TabItem>LineStroke="{DynamicResource DarkPrimaryBrush}"
  535. <TabItem Header="客户跟进" Tag="FollowControl">
  536.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  537. </TabItem>LineStrokeThickness="2" />
  538. <Grid Margin="0,5,0,0" Background="{DynamicResource BackgroundBrush}">
  539. <TabItem Header="客户跟进" Tag="FollowControl">
  540.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  541. </TabItem>
  542. <TabItem Header="客户跟进" Tag="FollowControl">
  543.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  544. </TabItem><local:AllRelatedListControl x:Name="allRelatedList" CustomerId="{Binding SelectedItem.Id, ElementName=grid}" />
  545. </Grid><hc:Divider
  546. <TabItem Header="客户跟进" Tag="FollowControl">
  547.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  548. </TabItem>Margin="0"
  549. <TabItem Header="客户跟进" Tag="FollowControl">
  550.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  551. </TabItem>LineStroke="{DynamicResource DarkPrimaryBrush}"
  552. <TabItem Header="客户跟进" Tag="FollowControl">
  553.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  554. </TabItem>LineStrokeThickness="2" />
  555. <Grid Margin="0,5,0,0" Background="{DynamicResource BackgroundBrush}">
  556. <TabItem Header="客户跟进" Tag="FollowControl">
  557.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  558. </TabItem>
  559. <TabItem Header="客户跟进" Tag="FollowControl">
  560.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  561. </TabItem><local:AllRelatedListControl x:Name="allRelatedList" CustomerId="{Binding SelectedItem.Id, ElementName=grid}" />
  562. </Grid><hc:Divider
  563. <TabItem Header="客户跟进" Tag="FollowControl">
  564.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  565. </TabItem>Margin="0"
  566. <TabItem Header="客户跟进" Tag="FollowControl">
  567.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  568. </TabItem>LineStroke="{DynamicResource DarkPrimaryBrush}"
  569. <TabItem Header="客户跟进" Tag="FollowControl">
  570.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  571. </TabItem>LineStrokeThickness="2" />
  572. <Grid Margin="0,5,0,0" Background="{DynamicResource BackgroundBrush}">
  573. <TabItem Header="客户跟进" Tag="FollowControl">
  574.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  575. </TabItem>
  576. <TabItem Header="客户跟进" Tag="FollowControl">
  577.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  578. </TabItem><local:AllRelatedListControl x:Name="allRelatedList" CustomerId="{Binding SelectedItem.Id, ElementName=grid}" />
  579. </Grid><hc:Divider
  580. <TabItem Header="客户跟进" Tag="FollowControl">
  581.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  582. </TabItem>Margin="0"
  583. <TabItem Header="客户跟进" Tag="FollowControl">
  584.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  585. </TabItem>LineStroke="{DynamicResource DarkPrimaryBrush}"
  586. <TabItem Header="客户跟进" Tag="FollowControl">
  587.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  588. </TabItem>LineStrokeThickness="2" />
  589. <Grid Margin="0,5,0,0" Background="{DynamicResource BackgroundBrush}">
  590. <TabItem Header="客户跟进" Tag="FollowControl">
  591.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  592. </TabItem>
  593. <TabItem Header="客户跟进" Tag="FollowControl">
  594.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  595. </TabItem><local:AllRelatedListControl x:Name="allRelatedList" CustomerId="{Binding SelectedItem.Id, ElementName=grid}" />
  596. </Grid><hc:Divider
  597. <TabItem Header="客户跟进" Tag="FollowControl">
  598.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  599. </TabItem>Margin="0"
  600. <TabItem Header="客户跟进" Tag="FollowControl">
  601.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  602. </TabItem>LineStroke="{DynamicResource DarkPrimaryBrush}"
  603. <TabItem Header="客户跟进" Tag="FollowControl">
  604.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  605. </TabItem>LineStrokeThickness="2" />
  606. <Grid Margin="0,5,0,0" Background="{DynamicResource BackgroundBrush}">
  607. <TabItem Header="客户跟进" Tag="FollowControl">
  608.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  609. </TabItem>
  610. <TabItem Header="客户跟进" Tag="FollowControl">
  611.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  612. </TabItem><local:AllRelatedListControl x:Name="allRelatedList" CustomerId="{Binding SelectedItem.Id, ElementName=grid}" />
  613. </Grid><hc:Divider
  614. <TabItem Header="客户跟进" Tag="FollowControl">
  615.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  616. </TabItem>Margin="0"
  617. <TabItem Header="客户跟进" Tag="FollowControl">
  618.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  619. </TabItem>LineStroke="{DynamicResource DarkPrimaryBrush}"
  620. <TabItem Header="客户跟进" Tag="FollowControl">
  621.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  622. </TabItem>LineStrokeThickness="2" />
  623. <Grid Margin="0,5,0,0" Background="{DynamicResource BackgroundBrush}">
  624. <TabItem Header="客户跟进" Tag="FollowControl">
  625.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  626. </TabItem>
  627. <TabItem Header="客户跟进" Tag="FollowControl">
  628.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  629. </TabItem><local:AllRelatedListControl x:Name="allRelatedList" CustomerId="{Binding SelectedItem.Id, ElementName=grid}" />
  630. </Grid><hc:Divider
  631. <TabItem Header="客户跟进" Tag="FollowControl">
  632.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  633. </TabItem>Margin="0"
  634. <TabItem Header="客户跟进" Tag="FollowControl">
  635.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  636. </TabItem>LineStroke="{DynamicResource DarkPrimaryBrush}"
  637. <TabItem Header="客户跟进" Tag="FollowControl">
  638.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  639. </TabItem>LineStrokeThickness="2" />
  640. <Grid Margin="0,5,0,0" Background="{DynamicResource BackgroundBrush}">
  641. <TabItem Header="客户跟进" Tag="FollowControl">
  642.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  643. </TabItem>
  644. <TabItem Header="客户跟进" Tag="FollowControl">
  645.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  646. </TabItem><local:AllRelatedListControl x:Name="allRelatedList" CustomerId="{Binding SelectedItem.Id, ElementName=grid}" />
  647. </Grid><hc:Divider
  648. <TabItem Header="客户跟进" Tag="FollowControl">
  649.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  650. </TabItem>Margin="0"
  651. <TabItem Header="客户跟进" Tag="FollowControl">
  652.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  653. </TabItem>LineStroke="{DynamicResource DarkPrimaryBrush}"
  654. <TabItem Header="客户跟进" Tag="FollowControl">
  655.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  656. </TabItem>LineStrokeThickness="2" />
  657. <Grid Margin="0,5,0,0" Background="{DynamicResource BackgroundBrush}">
  658. <TabItem Header="客户跟进" Tag="FollowControl">
  659.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  660. </TabItem>
  661. <TabItem Header="客户跟进" Tag="FollowControl">
  662.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  663. </TabItem><local:AllRelatedListControl x:Name="allRelatedList" CustomerId="{Binding SelectedItem.Id, ElementName=grid}" />
  664. </Grid><hc:Divider
  665. <TabItem Header="客户跟进" Tag="FollowControl">
  666.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  667. </TabItem>Margin="0"
  668. <TabItem Header="客户跟进" Tag="FollowControl">
  669.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  670. </TabItem>LineStroke="{DynamicResource DarkPrimaryBrush}"
  671. <TabItem Header="客户跟进" Tag="FollowControl">
  672.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  673. </TabItem>LineStrokeThickness="2" />
  674. <Grid Margin="0,5,0,0" Background="{DynamicResource BackgroundBrush}">
  675. <TabItem Header="客户跟进" Tag="FollowControl">
  676.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  677. </TabItem>
  678. <TabItem Header="客户跟进" Tag="FollowControl">
  679.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  680. </TabItem><local:AllRelatedListControl x:Name="allRelatedList" CustomerId="{Binding SelectedItem.Id, ElementName=grid}" />
  681. </Grid><hc:Divider
  682. <TabItem Header="客户跟进" Tag="FollowControl">
  683.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  684. </TabItem>Margin="0"
  685. <TabItem Header="客户跟进" Tag="FollowControl">
  686.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  687. </TabItem>LineStroke="{DynamicResource DarkPrimaryBrush}"
  688. <TabItem Header="客户跟进" Tag="FollowControl">
  689.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  690. </TabItem>LineStrokeThickness="2" />
  691. <Grid Margin="0,5,0,0" Background="{DynamicResource BackgroundBrush}">
  692. <TabItem Header="客户跟进" Tag="FollowControl">
  693.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  694. </TabItem>
  695. <TabItem Header="客户跟进" Tag="FollowControl">
  696.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  697. </TabItem><local:AllRelatedListControl x:Name="allRelatedList" CustomerId="{Binding SelectedItem.Id, ElementName=grid}" />
  698. </Grid><hc:Divider
  699. <TabItem Header="客户跟进" Tag="FollowControl">
  700.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  701. </TabItem>Margin="0"
  702. <TabItem Header="客户跟进" Tag="FollowControl">
  703.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  704. </TabItem>LineStroke="{DynamicResource DarkPrimaryBrush}"
  705. <TabItem Header="客户跟进" Tag="FollowControl">
  706.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  707. </TabItem>LineStrokeThickness="2" />
  708. <Grid Margin="0,5,0,0" Background="{DynamicResource BackgroundBrush}">
  709. <TabItem Header="客户跟进" Tag="FollowControl">
  710.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  711. </TabItem>
  712. <TabItem Header="客户跟进" Tag="FollowControl">
  713.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  714. </TabItem><local:AllRelatedListControl x:Name="allRelatedList" CustomerId="{Binding SelectedItem.Id, ElementName=grid}" />
  715. </Grid><hc:Divider
  716. <TabItem Header="客户跟进" Tag="FollowControl">
  717.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  718. </TabItem>Margin="0"
  719. <TabItem Header="客户跟进" Tag="FollowControl">
  720.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  721. </TabItem>LineStroke="{DynamicResource DarkPrimaryBrush}"
  722. <TabItem Header="客户跟进" Tag="FollowControl">
  723.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  724. </TabItem>LineStrokeThickness="2" />
  725. <Grid Margin="0,5,0,0" Background="{DynamicResource BackgroundBrush}">
  726. <TabItem Header="客户跟进" Tag="FollowControl">
  727.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  728. </TabItem>
  729. <TabItem Header="客户跟进" Tag="FollowControl">
  730.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  731. </TabItem><local:AllRelatedListControl x:Name="allRelatedList" CustomerId="{Binding SelectedItem.Id, ElementName=grid}" />
  732. </Grid><hc:Divider
  733. <TabItem Header="客户跟进" Tag="FollowControl">
  734.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  735. </TabItem>Margin="0"
  736. <TabItem Header="客户跟进" Tag="FollowControl">
  737.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  738. </TabItem>LineStroke="{DynamicResource DarkPrimaryBrush}"
  739. <TabItem Header="客户跟进" Tag="FollowControl">
  740.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  741. </TabItem>LineStrokeThickness="2" />
  742. <Grid Margin="0,5,0,0" Background="{DynamicResource BackgroundBrush}">
  743. <TabItem Header="客户跟进" Tag="FollowControl">
  744.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  745. </TabItem>
  746. <TabItem Header="客户跟进" Tag="FollowControl">
  747.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  748. </TabItem><local:AllRelatedListControl x:Name="allRelatedList" CustomerId="{Binding SelectedItem.Id, ElementName=grid}" />
  749. </Grid><hc:Divider
  750. <TabItem Header="客户跟进" Tag="FollowControl">
  751.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  752. </TabItem>Margin="0"
  753. <TabItem Header="客户跟进" Tag="FollowControl">
  754.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  755. </TabItem>LineStroke="{DynamicResource DarkPrimaryBrush}"
  756. <TabItem Header="客户跟进" Tag="FollowControl">
  757.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  758. </TabItem>LineStrokeThickness="2" />
  759. <Grid Margin="0,5,0,0" Background="{DynamicResource BackgroundBrush}">
  760. <TabItem Header="客户跟进" Tag="FollowControl">
  761.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  762. </TabItem>
  763. <TabItem Header="客户跟进" Tag="FollowControl">
  764.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  765. </TabItem><local:AllRelatedListControl x:Name="allRelatedList" CustomerId="{Binding SelectedItem.Id, ElementName=grid}" />
  766. </Grid><hc:Divider
  767. <TabItem Header="客户跟进" Tag="FollowControl">
  768.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  769. </TabItem>Margin="0"
  770. <TabItem Header="客户跟进" Tag="FollowControl">
  771.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  772. </TabItem>LineStroke="{DynamicResource DarkPrimaryBrush}"
  773. <TabItem Header="客户跟进" Tag="FollowControl">
  774.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  775. </TabItem>LineStrokeThickness="2" />
  776. <Grid Margin="0,5,0,0" Background="{DynamicResource BackgroundBrush}">
  777. <TabItem Header="客户跟进" Tag="FollowControl">
  778.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  779. </TabItem>
  780. <TabItem Header="客户跟进" Tag="FollowControl">
  781.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  782. </TabItem><local:AllRelatedListControl x:Name="allRelatedList" CustomerId="{Binding SelectedItem.Id, ElementName=grid}" />
  783. </Grid><hc:Divider
  784. <TabItem Header="客户跟进" Tag="FollowControl">
  785.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  786. </TabItem>Margin="0"
  787. <TabItem Header="客户跟进" Tag="FollowControl">
  788.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  789. </TabItem>LineStroke="{DynamicResource DarkPrimaryBrush}"
  790. <TabItem Header="客户跟进" Tag="FollowControl">
  791.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  792. </TabItem>LineStrokeThickness="2" />
  793. <Grid Margin="0,5,0,0" Background="{DynamicResource BackgroundBrush}">
  794. <TabItem Header="客户跟进" Tag="FollowControl">
  795.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  796. </TabItem>
  797. <TabItem Header="客户跟进" Tag="FollowControl">
  798.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  799. </TabItem><local:AllRelatedListControl x:Name="allRelatedList" CustomerId="{Binding SelectedItem.Id, ElementName=grid}" />
  800. </Grid><hc:Divider
  801. <TabItem Header="客户跟进" Tag="FollowControl">
  802.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  803. </TabItem>Margin="0"
  804. <TabItem Header="客户跟进" Tag="FollowControl">
  805.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  806. </TabItem>LineStroke="{DynamicResource DarkPrimaryBrush}"
  807. <TabItem Header="客户跟进" Tag="FollowControl">
  808.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  809. </TabItem>LineStrokeThickness="2" />
  810. <Grid Margin="0,5,0,0" Background="{DynamicResource BackgroundBrush}">
  811. <TabItem Header="客户跟进" Tag="FollowControl">
  812.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  813. </TabItem>
  814. <TabItem Header="客户跟进" Tag="FollowControl">
  815.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  816. </TabItem><local:AllRelatedListControl x:Name="allRelatedList" CustomerId="{Binding SelectedItem.Id, ElementName=grid}" />
  817. </Grid><hc:Divider
  818. <TabItem Header="客户跟进" Tag="FollowControl">
  819.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  820. </TabItem>Margin="0"
  821. <TabItem Header="客户跟进" Tag="FollowControl">
  822.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  823. </TabItem>LineStroke="{DynamicResource DarkPrimaryBrush}"
  824. <TabItem Header="客户跟进" Tag="FollowControl">
  825.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  826. </TabItem>LineStrokeThickness="2" />
  827. <Grid Margin="0,5,0,0" Background="{DynamicResource BackgroundBrush}">
  828. <TabItem Header="客户跟进" Tag="FollowControl">
  829.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  830. </TabItem>
  831. <TabItem Header="客户跟进" Tag="FollowControl">
  832.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  833. </TabItem><local:AllRelatedListControl x:Name="allRelatedList" CustomerId="{Binding SelectedItem.Id, ElementName=grid}" />
  834. </Grid><hc:Divider
  835. <TabItem Header="客户跟进" Tag="FollowControl">
  836.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  837. </TabItem>Margin="0"
  838. <TabItem Header="客户跟进" Tag="FollowControl">
  839.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  840. </TabItem>LineStroke="{DynamicResource DarkPrimaryBrush}"
  841. <TabItem Header="客户跟进" Tag="FollowControl">
  842.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  843. </TabItem>LineStrokeThickness="2" />
  844. <Grid Margin="0,5,0,0" Background="{DynamicResource BackgroundBrush}">
  845. <TabItem Header="客户跟进" Tag="FollowControl">
  846.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  847. </TabItem>
  848. <TabItem Header="客户跟进" Tag="FollowControl">
  849.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  850. </TabItem><local:AllRelatedListControl x:Name="allRelatedList" CustomerId="{Binding SelectedItem.Id, ElementName=grid}" />
  851. </Grid><hc:Divider
  852. <TabItem Header="客户跟进" Tag="FollowControl">
  853.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  854. </TabItem>Margin="0"
  855. <TabItem Header="客户跟进" Tag="FollowControl">
  856.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  857. </TabItem>LineStroke="{DynamicResource DarkPrimaryBrush}"
  858. <TabItem Header="客户跟进" Tag="FollowControl">
  859.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  860. </TabItem>LineStrokeThickness="2" />
  861. <Grid Margin="0,5,0,0" Background="{DynamicResource BackgroundBrush}">
  862. <TabItem Header="客户跟进" Tag="FollowControl">
  863.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  864. </TabItem>
  865. <TabItem Header="客户跟进" Tag="FollowControl">
  866.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  867. </TabItem><local:AllRelatedListControl x:Name="allRelatedList" CustomerId="{Binding SelectedItem.Id, ElementName=grid}" />
  868. </Grid><hc:Divider
  869. <TabItem Header="客户跟进" Tag="FollowControl">
  870.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  871. </TabItem>Margin="0"
  872. <TabItem Header="客户跟进" Tag="FollowControl">
  873.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  874. </TabItem>LineStroke="{DynamicResource DarkPrimaryBrush}"
  875. <TabItem Header="客户跟进" Tag="FollowControl">
  876.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  877. </TabItem>LineStrokeThickness="2" />
  878. <Grid Margin="0,5,0,0" Background="{DynamicResource BackgroundBrush}">
  879. <TabItem Header="客户跟进" Tag="FollowControl">
  880.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  881. </TabItem>
  882. <TabItem Header="客户跟进" Tag="FollowControl">
  883.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  884. </TabItem><local:AllRelatedListControl x:Name="allRelatedList" CustomerId="{Binding SelectedItem.Id, ElementName=grid}" />
  885. </Grid><hc:Divider
  886. <TabItem Header="客户跟进" Tag="FollowControl">
  887.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  888. </TabItem>Margin="0"
  889. <TabItem Header="客户跟进" Tag="FollowControl">
  890.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  891. </TabItem>LineStroke="{DynamicResource DarkPrimaryBrush}"
  892. <TabItem Header="客户跟进" Tag="FollowControl">
  893.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  894. </TabItem>LineStrokeThickness="2" />
  895. <Grid Margin="0,5,0,0" Background="{DynamicResource BackgroundBrush}">
  896. <TabItem Header="客户跟进" Tag="FollowControl">
  897.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  898. </TabItem>
  899. <TabItem Header="客户跟进" Tag="FollowControl">
  900.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  901. </TabItem><local:AllRelatedListControl x:Name="allRelatedList" CustomerId="{Binding SelectedItem.Id, ElementName=grid}" />
  902. </Grid><hc:Divider
  903. <TabItem Header="客户跟进" Tag="FollowControl">
  904.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  905. </TabItem>Margin="0"
  906. <TabItem Header="客户跟进" Tag="FollowControl">
  907.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  908. </TabItem>LineStroke="{DynamicResource DarkPrimaryBrush}"
  909. <TabItem Header="客户跟进" Tag="FollowControl">
  910.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  911. </TabItem>LineStrokeThickness="2" />
  912. <Grid Margin="0,5,0,0" Background="{DynamicResource BackgroundBrush}">
  913. <TabItem Header="客户跟进" Tag="FollowControl">
  914.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  915. </TabItem>
  916. <TabItem Header="客户跟进" Tag="FollowControl">
  917.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  918. </TabItem><local:AllRelatedListControl x:Name="allRelatedList" CustomerId="{Binding SelectedItem.Id, ElementName=grid}" />
  919. </Grid><hc:Divider
  920. <TabItem Header="客户跟进" Tag="FollowControl">
  921.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  922. </TabItem>Margin="0"
  923. <TabItem Header="客户跟进" Tag="FollowControl">
  924.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  925. </TabItem>LineStroke="{DynamicResource DarkPrimaryBrush}"
  926. <TabItem Header="客户跟进" Tag="FollowControl">
  927.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  928. </TabItem>LineStrokeThickness="2" />
  929. <Grid Margin="0,5,0,0" Background="{DynamicResource BackgroundBrush}">
  930. <TabItem Header="客户跟进" Tag="FollowControl">
  931.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  932. </TabItem>
  933. <TabItem Header="客户跟进" Tag="FollowControl">
  934.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  935. </TabItem><local:AllRelatedListControl x:Name="allRelatedList" CustomerId="{Binding SelectedItem.Id, ElementName=grid}" />
  936. </Grid><hc:Divider
  937. <TabItem Header="客户跟进" Tag="FollowControl">
  938.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  939. </TabItem>Margin="0"
  940. <TabItem Header="客户跟进" Tag="FollowControl">
  941.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  942. </TabItem>LineStroke="{DynamicResource DarkPrimaryBrush}"
  943. <TabItem Header="客户跟进" Tag="FollowControl">
  944.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  945. </TabItem>LineStrokeThickness="2" />
  946. <Grid Margin="0,5,0,0" Background="{DynamicResource BackgroundBrush}">
  947. <TabItem Header="客户跟进" Tag="FollowControl">
  948.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  949. </TabItem>
  950. <TabItem Header="客户跟进" Tag="FollowControl">
  951.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  952. </TabItem><local:AllRelatedListControl x:Name="allRelatedList" CustomerId="{Binding SelectedItem.Id, ElementName=grid}" />
  953. </Grid><hc:Divider
  954. <TabItem Header="客户跟进" Tag="FollowControl">
  955.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  956. </TabItem>Margin="0"
  957. <TabItem Header="客户跟进" Tag="FollowControl">
  958.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  959. </TabItem>LineStroke="{DynamicResource DarkPrimaryBrush}"
  960. <TabItem Header="客户跟进" Tag="FollowControl">
  961.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  962. </TabItem>LineStrokeThickness="2" />
  963. <Grid Margin="0,5,0,0" Background="{DynamicResource BackgroundBrush}">
  964. <TabItem Header="客户跟进" Tag="FollowControl">
  965.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  966. </TabItem>
  967. <TabItem Header="客户跟进" Tag="FollowControl">
  968.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  969. </TabItem><local:AllRelatedListControl x:Name="allRelatedList" CustomerId="{Binding SelectedItem.Id, ElementName=grid}" />
  970. </Grid><hc:Divider
  971. <TabItem Header="客户跟进" Tag="FollowControl">
  972.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  973. </TabItem>Margin="0"
  974. <TabItem Header="客户跟进" Tag="FollowControl">
  975.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  976. </TabItem>LineStroke="{DynamicResource DarkPrimaryBrush}"
  977. <TabItem Header="客户跟进" Tag="FollowControl">
  978.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  979. </TabItem>LineStrokeThickness="2" />
  980. <Grid Margin="0,5,0,0" Background="{DynamicResource BackgroundBrush}">
  981. <TabItem Header="客户跟进" Tag="FollowControl">
  982.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  983. </TabItem>
  984. <TabItem Header="客户跟进" Tag="FollowControl">
  985.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  986. </TabItem><local:AllRelatedListControl x:Name="allRelatedList" CustomerId="{Binding SelectedItem.Id, ElementName=grid}" />
  987. </Grid><hc:Divider
  988. <TabItem Header="客户跟进" Tag="FollowControl">
  989.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  990. </TabItem>Margin="0"
  991. <TabItem Header="客户跟进" Tag="FollowControl">
  992.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  993. </TabItem>LineStroke="{DynamicResource DarkPrimaryBrush}"
  994. <TabItem Header="客户跟进" Tag="FollowControl">
  995.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  996. </TabItem>LineStrokeThickness="2" />
  997. <Grid Margin="0,5,0,0" Background="{DynamicResource BackgroundBrush}">
  998. <TabItem Header="客户跟进" Tag="FollowControl">
  999.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  1000. </TabItem>
  1001. <TabItem Header="客户跟进" Tag="FollowControl">
  1002.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  1003. </TabItem><local:AllRelatedListControl x:Name="allRelatedList" CustomerId="{Binding SelectedItem.Id, ElementName=grid}" />
  1004. </Grid><hc:Divider
  1005. <TabItem Header="客户跟进" Tag="FollowControl">
  1006.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  1007. </TabItem>Margin="0"
  1008. <TabItem Header="客户跟进" Tag="FollowControl">
  1009.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  1010. </TabItem>LineStroke="{DynamicResource DarkPrimaryBrush}"
  1011. <TabItem Header="客户跟进" Tag="FollowControl">
  1012.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  1013. </TabItem>LineStrokeThickness="2" />
  1014. <Grid Margin="0,5,0,0" Background="{DynamicResource BackgroundBrush}">
  1015. <TabItem Header="客户跟进" Tag="FollowControl">
  1016.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  1017. </TabItem>
  1018. <TabItem Header="客户跟进" Tag="FollowControl">
  1019.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  1020. </TabItem><local:AllRelatedListControl x:Name="allRelatedList" CustomerId="{Binding SelectedItem.Id, ElementName=grid}" />
  1021. </Grid><hc:Divider
  1022. <TabItem Header="客户跟进" Tag="FollowControl">
  1023.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  1024. </TabItem>Margin="0"
  1025. <TabItem Header="客户跟进" Tag="FollowControl">
  1026.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  1027. </TabItem>LineStroke="{DynamicResource DarkPrimaryBrush}"
  1028. <TabItem Header="客户跟进" Tag="FollowControl">
  1029.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  1030. </TabItem>LineStrokeThickness="2" />
  1031. <Grid Margin="0,5,0,0" Background="{DynamicResource BackgroundBrush}">
  1032. <TabItem Header="客户跟进" Tag="FollowControl">
  1033.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  1034. </TabItem>
  1035. <TabItem Header="客户跟进" Tag="FollowControl">
  1036.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  1037. </TabItem><local:AllRelatedListControl x:Name="allRelatedList" CustomerId="{Binding SelectedItem.Id, ElementName=grid}" />
  1038. </Grid><hc:Divider
  1039. <TabItem Header="客户跟进" Tag="FollowControl">
  1040.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  1041. </TabItem>Margin="0"
  1042. <TabItem Header="客户跟进" Tag="FollowControl">
  1043.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  1044. </TabItem>LineStroke="{DynamicResource DarkPrimaryBrush}"
  1045. <TabItem Header="客户跟进" Tag="FollowControl">
  1046.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  1047. </TabItem>LineStrokeThickness="2" />
  1048. <Grid Margin="0,5,0,0" Background="{DynamicResource BackgroundBrush}">
  1049. <TabItem Header="客户跟进" Tag="FollowControl">
  1050.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  1051. </TabItem>
  1052. <TabItem Header="客户跟进" Tag="FollowControl">
  1053.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  1054. </TabItem><local:AllRelatedListControl x:Name="allRelatedList" CustomerId="{Binding SelectedItem.Id, ElementName=grid}" />
  1055. </Grid><hc:Divider
  1056. <TabItem Header="客户跟进" Tag="FollowControl">
  1057.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  1058. </TabItem>Margin="0"
  1059. <TabItem Header="客户跟进" Tag="FollowControl">
  1060.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  1061. </TabItem>LineStroke="{DynamicResource DarkPrimaryBrush}"
  1062. <TabItem Header="客户跟进" Tag="FollowControl">
  1063.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  1064. </TabItem>LineStrokeThickness="2" />
  1065. <Grid Margin="0,5,0,0" Background="{DynamicResource BackgroundBrush}">
  1066. <TabItem Header="客户跟进" Tag="FollowControl">
  1067.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  1068. </TabItem>
  1069. <TabItem Header="客户跟进" Tag="FollowControl">
  1070.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  1071. </TabItem><local:AllRelatedListControl x:Name="allRelatedList" CustomerId="{Binding SelectedItem.Id, ElementName=grid}" />
  1072. </Grid><hc:Divider
  1073. <TabItem Header="客户跟进" Tag="FollowControl">
  1074.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  1075. </TabItem>Margin="0"
  1076. <TabItem Header="客户跟进" Tag="FollowControl">
  1077.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  1078. </TabItem>LineStroke="{DynamicResource DarkPrimaryBrush}"
  1079. <TabItem Header="客户跟进" Tag="FollowControl">
  1080.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  1081. </TabItem>LineStrokeThickness="2" />
  1082. <Grid Margin="0,5,0,0" Background="{DynamicResource BackgroundBrush}">
  1083. <TabItem Header="客户跟进" Tag="FollowControl">
  1084.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  1085. </TabItem>
  1086. <TabItem Header="客户跟进" Tag="FollowControl">
  1087.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  1088. </TabItem><local:AllRelatedListControl x:Name="allRelatedList" CustomerId="{Binding SelectedItem.Id, ElementName=grid}" />
  1089. </Grid><hc:Divider
  1090. <TabItem Header="客户跟进" Tag="FollowControl">
  1091.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  1092. </TabItem>Margin="0"
  1093. <TabItem Header="客户跟进" Tag="FollowControl">
  1094.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  1095. </TabItem>LineStroke="{DynamicResource DarkPrimaryBrush}"
  1096. <TabItem Header="客户跟进" Tag="FollowControl">
  1097.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  1098. </TabItem>LineStrokeThickness="2" />
  1099. <Grid Margin="0,5,0,0" Background="{DynamicResource BackgroundBrush}">
  1100. <TabItem Header="客户跟进" Tag="FollowControl">
  1101.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  1102. </TabItem>
  1103. <TabItem Header="客户跟进" Tag="FollowControl">
  1104.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  1105. </TabItem><local:AllRelatedListControl x:Name="allRelatedList" CustomerId="{Binding SelectedItem.Id, ElementName=grid}" />
  1106. </Grid><hc:Divider
  1107. <TabItem Header="客户跟进" Tag="FollowControl">
  1108.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  1109. </TabItem>Margin="0"
  1110. <TabItem Header="客户跟进" Tag="FollowControl">
  1111.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  1112. </TabItem>LineStroke="{DynamicResource DarkPrimaryBrush}"
  1113. <TabItem Header="客户跟进" Tag="FollowControl">
  1114.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  1115. </TabItem>LineStrokeThickness="2" />
  1116. <Grid Margin="0,5,0,0" Background="{DynamicResource BackgroundBrush}">
  1117. <TabItem Header="客户跟进" Tag="FollowControl">
  1118.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  1119. </TabItem>
  1120. <TabItem Header="客户跟进" Tag="FollowControl">
  1121.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  1122. </TabItem><local:AllRelatedListControl x:Name="allRelatedList" CustomerId="{Binding SelectedItem.Id, ElementName=grid}" />
  1123. </Grid><hc:Divider
  1124. <TabItem Header="客户跟进" Tag="FollowControl">
  1125.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  1126. </TabItem>Margin="0"
  1127. <TabItem Header="客户跟进" Tag="FollowControl">
  1128.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  1129. </TabItem>LineStroke="{DynamicResource DarkPrimaryBrush}"
  1130. <TabItem Header="客户跟进" Tag="FollowControl">
  1131.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  1132. </TabItem>LineStrokeThickness="2" />
  1133. <Grid Margin="0,5,0,0" Background="{DynamicResource BackgroundBrush}">
  1134. <TabItem Header="客户跟进" Tag="FollowControl">
  1135.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  1136. </TabItem>
  1137. <TabItem Header="客户跟进" Tag="FollowControl">
  1138.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  1139. </TabItem><local:AllRelatedListControl x:Name="allRelatedList" CustomerId="{Binding SelectedItem.Id, ElementName=grid}" />
  1140. </Grid><hc:Divider
  1141. <TabItem Header="客户跟进" Tag="FollowControl">
  1142.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  1143. </TabItem>Margin="0"
  1144. <TabItem Header="客户跟进" Tag="FollowControl">
  1145.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  1146. </TabItem>LineStroke="{DynamicResource DarkPrimaryBrush}"
  1147. <TabItem Header="客户跟进" Tag="FollowControl">
  1148.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  1149. </TabItem>LineStrokeThickness="2" />
  1150. <Grid Margin="0,5,0,0" Background="{DynamicResource BackgroundBrush}">
  1151. <TabItem Header="客户跟进" Tag="FollowControl">
  1152.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  1153. </TabItem>
  1154. <TabItem Header="客户跟进" Tag="FollowControl">
  1155.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  1156. </TabItem><local:AllRelatedListControl x:Name="allRelatedList" CustomerId="{Binding SelectedItem.Id, ElementName=grid}" />
  1157. </Grid><hc:Divider
  1158. <TabItem Header="客户跟进" Tag="FollowControl">
  1159.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  1160. </TabItem>Margin="0"
  1161. <TabItem Header="客户跟进" Tag="FollowControl">
  1162.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  1163. </TabItem>LineStroke="{DynamicResource DarkPrimaryBrush}"
  1164. <TabItem Header="客户跟进" Tag="FollowControl">
  1165.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  1166. </TabItem>LineStrokeThickness="2" />
  1167. <Grid Margin="0,5,0,0" Background="{DynamicResource BackgroundBrush}">
  1168. <TabItem Header="客户跟进" Tag="FollowControl">
  1169.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  1170. </TabItem>
  1171. <TabItem Header="客户跟进" Tag="FollowControl">
  1172.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  1173. </TabItem><local:AllRelatedListControl x:Name="allRelatedList" CustomerId="{Binding SelectedItem.Id, ElementName=grid}" />
  1174. </Grid><hc:Divider
  1175. <TabItem Header="客户跟进" Tag="FollowControl">
  1176.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  1177. </TabItem>Margin="0"
  1178. <TabItem Header="客户跟进" Tag="FollowControl">
  1179.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  1180. </TabItem>LineStroke="{DynamicResource DarkPrimaryBrush}"
  1181. <TabItem Header="客户跟进" Tag="FollowControl">
  1182.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  1183. </TabItem>LineStrokeThickness="2" />
  1184. <Grid Margin="0,5,0,0" Background="{DynamicResource BackgroundBrush}">
  1185. <TabItem Header="客户跟进" Tag="FollowControl">
  1186.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  1187. </TabItem>
  1188. <TabItem Header="客户跟进" Tag="FollowControl">
  1189.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  1190. </TabItem><local:AllRelatedListControl x:Name="allRelatedList" CustomerId="{Binding SelectedItem.Id, ElementName=grid}" />
  1191. </Grid><hc:Divider
  1192. <TabItem Header="客户跟进" Tag="FollowControl">
  1193.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  1194. </TabItem>Margin="0"
  1195. <TabItem Header="客户跟进" Tag="FollowControl">
  1196.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  1197. </TabItem>LineStroke="{DynamicResource DarkPrimaryBrush}"
  1198. <TabItem Header="客户跟进" Tag="FollowControl">
  1199.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  1200. </TabItem>LineStrokeThickness="2" />
  1201. <Grid Margin="0,5,0,0" Background="{DynamicResource BackgroundBrush}">
  1202. <TabItem Header="客户跟进" Tag="FollowControl">
  1203.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  1204. </TabItem>
  1205. <TabItem Header="客户跟进" Tag="FollowControl">
  1206.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  1207. </TabItem><local:AllRelatedListControl x:Name="allRelatedList" CustomerId="{Binding SelectedItem.Id, ElementName=grid}" />
  1208. </Grid><hc:Divider
  1209. <TabItem Header="客户跟进" Tag="FollowControl">
  1210.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  1211. </TabItem>Margin="0"
  1212. <TabItem Header="客户跟进" Tag="FollowControl">
  1213.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  1214. </TabItem>LineStroke="{DynamicResource DarkPrimaryBrush}"
  1215. <TabItem Header="客户跟进" Tag="FollowControl">
  1216.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  1217. </TabItem>LineStrokeThickness="2" />
  1218. <Grid Margin="0,5,0,0" Background="{DynamicResource BackgroundBrush}">
  1219. <TabItem Header="客户跟进" Tag="FollowControl">
  1220.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  1221. </TabItem>
  1222. <TabItem Header="客户跟进" Tag="FollowControl">
  1223.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  1224. </TabItem><local:AllRelatedListControl x:Name="allRelatedList" CustomerId="{Binding SelectedItem.Id, ElementName=grid}" />
  1225. </Grid><hc:Divider
  1226. <TabItem Header="客户跟进" Tag="FollowControl">
  1227.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  1228. </TabItem>Margin="0"
  1229. <TabItem Header="客户跟进" Tag="FollowControl">
  1230.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  1231. </TabItem>LineStroke="{DynamicResource DarkPrimaryBrush}"
  1232. <TabItem Header="客户跟进" Tag="FollowControl">
  1233.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  1234. </TabItem>LineStrokeThickness="2" />
  1235. <Grid Margin="0,5,0,0" Background="{DynamicResource BackgroundBrush}">
  1236. <TabItem Header="客户跟进" Tag="FollowControl">
  1237.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  1238. </TabItem>
  1239. <TabItem Header="客户跟进" Tag="FollowControl">
  1240.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  1241. </TabItem><local:AllRelatedListControl x:Name="allRelatedList" CustomerId="{Binding SelectedItem.Id, ElementName=grid}" />
  1242. </Grid><hc:Divider
  1243. <TabItem Header="客户跟进" Tag="FollowControl">
  1244.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  1245. </TabItem>Margin="0"
  1246. <TabItem Header="客户跟进" Tag="FollowControl">
  1247.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  1248. </TabItem>LineStroke="{DynamicResource DarkPrimaryBrush}"
  1249. <TabItem Header="客户跟进" Tag="FollowControl">
  1250.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  1251. </TabItem>LineStrokeThickness="2" />
  1252. <Grid Margin="0,5,0,0" Background="{DynamicResource BackgroundBrush}">
  1253. <TabItem Header="客户跟进" Tag="FollowControl">
  1254.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  1255. </TabItem>
  1256. <TabItem Header="客户跟进" Tag="FollowControl">
  1257.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  1258. </TabItem><local:AllRelatedListControl x:Name="allRelatedList" CustomerId="{Binding SelectedItem.Id, ElementName=grid}" />
  1259. </Grid>
复制代码
上面的用户控件的界面效果如下所示,它的作用就是组合多个不同的页面。

 和其他自定义控件一样,我们增加一些自定义的属性,如这里是客户的ID,用于赋值后刷新相关的数据的。
  1. <hc:Divider
  2. <TabItem Header="客户跟进" Tag="FollowControl">
  3.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  4. </TabItem>Margin="0"
  5. <TabItem Header="客户跟进" Tag="FollowControl">
  6.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  7. </TabItem>LineStroke="{DynamicResource DarkPrimaryBrush}"
  8. <TabItem Header="客户跟进" Tag="FollowControl">
  9.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  10. </TabItem>LineStrokeThickness="2" />
  11. <Grid Margin="0,5,0,0" Background="{DynamicResource BackgroundBrush}">
  12. <TabItem Header="客户跟进" Tag="FollowControl">
  13.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  14. </TabItem>
  15. <TabItem Header="客户跟进" Tag="FollowControl">
  16.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  17. </TabItem><local:AllRelatedListControl x:Name="allRelatedList" CustomerId="{Binding SelectedItem.Id, ElementName=grid}" />
  18. </Grid>///<hc:Divider
  19. <TabItem Header="客户跟进" Tag="FollowControl">
  20.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  21. </TabItem>Margin="0"
  22. <TabItem Header="客户跟进" Tag="FollowControl">
  23.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  24. </TabItem>LineStroke="{DynamicResource DarkPrimaryBrush}"
  25. <TabItem Header="客户跟进" Tag="FollowControl">
  26.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  27. </TabItem>LineStrokeThickness="2" />
  28. <Grid Margin="0,5,0,0" Background="{DynamicResource BackgroundBrush}">
  29. <TabItem Header="客户跟进" Tag="FollowControl">
  30.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  31. </TabItem>
  32. <TabItem Header="客户跟进" Tag="FollowControl">
  33.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  34. </TabItem><local:AllRelatedListControl x:Name="allRelatedList" CustomerId="{Binding SelectedItem.Id, ElementName=grid}" />
  35. </Grid> /// 客户ID<hc:Divider
  36. <TabItem Header="客户跟进" Tag="FollowControl">
  37.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  38. </TabItem>Margin="0"
  39. <TabItem Header="客户跟进" Tag="FollowControl">
  40.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  41. </TabItem>LineStroke="{DynamicResource DarkPrimaryBrush}"
  42. <TabItem Header="客户跟进" Tag="FollowControl">
  43.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  44. </TabItem>LineStrokeThickness="2" />
  45. <Grid Margin="0,5,0,0" Background="{DynamicResource BackgroundBrush}">
  46. <TabItem Header="客户跟进" Tag="FollowControl">
  47.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  48. </TabItem>
  49. <TabItem Header="客户跟进" Tag="FollowControl">
  50.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  51. </TabItem><local:AllRelatedListControl x:Name="allRelatedList" CustomerId="{Binding SelectedItem.Id, ElementName=grid}" />
  52. </Grid>///<hc:Divider
  53. <TabItem Header="客户跟进" Tag="FollowControl">
  54.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  55. </TabItem>Margin="0"
  56. <TabItem Header="客户跟进" Tag="FollowControl">
  57.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  58. </TabItem>LineStroke="{DynamicResource DarkPrimaryBrush}"
  59. <TabItem Header="客户跟进" Tag="FollowControl">
  60.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  61. </TabItem>LineStrokeThickness="2" />
  62. <Grid Margin="0,5,0,0" Background="{DynamicResource BackgroundBrush}">
  63. <TabItem Header="客户跟进" Tag="FollowControl">
  64.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  65. </TabItem>
  66. <TabItem Header="客户跟进" Tag="FollowControl">
  67.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  68. </TabItem><local:AllRelatedListControl x:Name="allRelatedList" CustomerId="{Binding SelectedItem.Id, ElementName=grid}" />
  69. </Grid> public string?[b] CustomerId[/b]<hc:Divider
  70. <TabItem Header="客户跟进" Tag="FollowControl">
  71.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  72. </TabItem>Margin="0"
  73. <TabItem Header="客户跟进" Tag="FollowControl">
  74.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  75. </TabItem>LineStroke="{DynamicResource DarkPrimaryBrush}"
  76. <TabItem Header="客户跟进" Tag="FollowControl">
  77.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  78. </TabItem>LineStrokeThickness="2" />
  79. <Grid Margin="0,5,0,0" Background="{DynamicResource BackgroundBrush}">
  80. <TabItem Header="客户跟进" Tag="FollowControl">
  81.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  82. </TabItem>
  83. <TabItem Header="客户跟进" Tag="FollowControl">
  84.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  85. </TabItem><local:AllRelatedListControl x:Name="allRelatedList" CustomerId="{Binding SelectedItem.Id, ElementName=grid}" />
  86. </Grid>{<hc:Divider
  87. <TabItem Header="客户跟进" Tag="FollowControl">
  88.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  89. </TabItem>Margin="0"
  90. <TabItem Header="客户跟进" Tag="FollowControl">
  91.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  92. </TabItem>LineStroke="{DynamicResource DarkPrimaryBrush}"
  93. <TabItem Header="客户跟进" Tag="FollowControl">
  94.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  95. </TabItem>LineStrokeThickness="2" />
  96. <Grid Margin="0,5,0,0" Background="{DynamicResource BackgroundBrush}">
  97. <TabItem Header="客户跟进" Tag="FollowControl">
  98.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  99. </TabItem>
  100. <TabItem Header="客户跟进" Tag="FollowControl">
  101.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  102. </TabItem><local:AllRelatedListControl x:Name="allRelatedList" CustomerId="{Binding SelectedItem.Id, ElementName=grid}" />
  103. </Grid><TabItem Header="客户跟进" Tag="FollowControl">
  104.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  105. </TabItem>get { return (string?)GetValue(CustomerIdProperty); }<hc:Divider
  106. <TabItem Header="客户跟进" Tag="FollowControl">
  107.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  108. </TabItem>Margin="0"
  109. <TabItem Header="客户跟进" Tag="FollowControl">
  110.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  111. </TabItem>LineStroke="{DynamicResource DarkPrimaryBrush}"
  112. <TabItem Header="客户跟进" Tag="FollowControl">
  113.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  114. </TabItem>LineStrokeThickness="2" />
  115. <Grid Margin="0,5,0,0" Background="{DynamicResource BackgroundBrush}">
  116. <TabItem Header="客户跟进" Tag="FollowControl">
  117.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  118. </TabItem>
  119. <TabItem Header="客户跟进" Tag="FollowControl">
  120.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  121. </TabItem><local:AllRelatedListControl x:Name="allRelatedList" CustomerId="{Binding SelectedItem.Id, ElementName=grid}" />
  122. </Grid><TabItem Header="客户跟进" Tag="FollowControl">
  123.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  124. </TabItem>set { SetValue(CustomerIdProperty, value); }<hc:Divider
  125. <TabItem Header="客户跟进" Tag="FollowControl">
  126.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  127. </TabItem>Margin="0"
  128. <TabItem Header="客户跟进" Tag="FollowControl">
  129.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  130. </TabItem>LineStroke="{DynamicResource DarkPrimaryBrush}"
  131. <TabItem Header="客户跟进" Tag="FollowControl">
  132.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  133. </TabItem>LineStrokeThickness="2" />
  134. <Grid Margin="0,5,0,0" Background="{DynamicResource BackgroundBrush}">
  135. <TabItem Header="客户跟进" Tag="FollowControl">
  136.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  137. </TabItem>
  138. <TabItem Header="客户跟进" Tag="FollowControl">
  139.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  140. </TabItem><local:AllRelatedListControl x:Name="allRelatedList" CustomerId="{Binding SelectedItem.Id, ElementName=grid}" />
  141. </Grid>}<hc:Divider
  142. <TabItem Header="客户跟进" Tag="FollowControl">
  143.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  144. </TabItem>Margin="0"
  145. <TabItem Header="客户跟进" Tag="FollowControl">
  146.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  147. </TabItem>LineStroke="{DynamicResource DarkPrimaryBrush}"
  148. <TabItem Header="客户跟进" Tag="FollowControl">
  149.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  150. </TabItem>LineStrokeThickness="2" />
  151. <Grid Margin="0,5,0,0" Background="{DynamicResource BackgroundBrush}">
  152. <TabItem Header="客户跟进" Tag="FollowControl">
  153.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  154. </TabItem>
  155. <TabItem Header="客户跟进" Tag="FollowControl">
  156.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  157. </TabItem><local:AllRelatedListControl x:Name="allRelatedList" CustomerId="{Binding SelectedItem.Id, ElementName=grid}" />
  158. </Grid>public static readonly DependencyProperty [b]CustomerIdProperty[/b] = DependencyProperty.Register(<hc:Divider
  159. <TabItem Header="客户跟进" Tag="FollowControl">
  160.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  161. </TabItem>Margin="0"
  162. <TabItem Header="客户跟进" Tag="FollowControl">
  163.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  164. </TabItem>LineStroke="{DynamicResource DarkPrimaryBrush}"
  165. <TabItem Header="客户跟进" Tag="FollowControl">
  166.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  167. </TabItem>LineStrokeThickness="2" />
  168. <Grid Margin="0,5,0,0" Background="{DynamicResource BackgroundBrush}">
  169. <TabItem Header="客户跟进" Tag="FollowControl">
  170.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  171. </TabItem>
  172. <TabItem Header="客户跟进" Tag="FollowControl">
  173.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  174. </TabItem><local:AllRelatedListControl x:Name="allRelatedList" CustomerId="{Binding SelectedItem.Id, ElementName=grid}" />
  175. </Grid><TabItem Header="客户跟进" Tag="FollowControl">
  176.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  177. </TabItem>nameof(CustomerId), typeof(string), typeof(AllRelatedListControl),<hc:Divider
  178. <TabItem Header="客户跟进" Tag="FollowControl">
  179.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  180. </TabItem>Margin="0"
  181. <TabItem Header="客户跟进" Tag="FollowControl">
  182.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  183. </TabItem>LineStroke="{DynamicResource DarkPrimaryBrush}"
  184. <TabItem Header="客户跟进" Tag="FollowControl">
  185.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  186. </TabItem>LineStrokeThickness="2" />
  187. <Grid Margin="0,5,0,0" Background="{DynamicResource BackgroundBrush}">
  188. <TabItem Header="客户跟进" Tag="FollowControl">
  189.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  190. </TabItem>
  191. <TabItem Header="客户跟进" Tag="FollowControl">
  192.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  193. </TabItem><local:AllRelatedListControl x:Name="allRelatedList" CustomerId="{Binding SelectedItem.Id, ElementName=grid}" />
  194. </Grid><TabItem Header="客户跟进" Tag="FollowControl">
  195.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  196. </TabItem>new FrameworkPropertyMetadata("-1", FrameworkPropertyMetadataOptions.BindsTwoWayByDefault, new PropertyChangedCallback(OnCustomerIdPropertyChanged)));<hc:Divider
  197. <TabItem Header="客户跟进" Tag="FollowControl">
  198.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  199. </TabItem>Margin="0"
  200. <TabItem Header="客户跟进" Tag="FollowControl">
  201.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  202. </TabItem>LineStroke="{DynamicResource DarkPrimaryBrush}"
  203. <TabItem Header="客户跟进" Tag="FollowControl">
  204.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  205. </TabItem>LineStrokeThickness="2" />
  206. <Grid Margin="0,5,0,0" Background="{DynamicResource BackgroundBrush}">
  207. <TabItem Header="客户跟进" Tag="FollowControl">
  208.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  209. </TabItem>
  210. <TabItem Header="客户跟进" Tag="FollowControl">
  211.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  212. </TabItem><local:AllRelatedListControl x:Name="allRelatedList" CustomerId="{Binding SelectedItem.Id, ElementName=grid}" />
  213. </Grid>private static async void OnCustomerIdPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)<hc:Divider
  214. <TabItem Header="客户跟进" Tag="FollowControl">
  215.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  216. </TabItem>Margin="0"
  217. <TabItem Header="客户跟进" Tag="FollowControl">
  218.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  219. </TabItem>LineStroke="{DynamicResource DarkPrimaryBrush}"
  220. <TabItem Header="客户跟进" Tag="FollowControl">
  221.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  222. </TabItem>LineStrokeThickness="2" />
  223. <Grid Margin="0,5,0,0" Background="{DynamicResource BackgroundBrush}">
  224. <TabItem Header="客户跟进" Tag="FollowControl">
  225.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  226. </TabItem>
  227. <TabItem Header="客户跟进" Tag="FollowControl">
  228.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  229. </TabItem><local:AllRelatedListControl x:Name="allRelatedList" CustomerId="{Binding SelectedItem.Id, ElementName=grid}" />
  230. </Grid>{<hc:Divider
  231. <TabItem Header="客户跟进" Tag="FollowControl">
  232.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  233. </TabItem>Margin="0"
  234. <TabItem Header="客户跟进" Tag="FollowControl">
  235.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  236. </TabItem>LineStroke="{DynamicResource DarkPrimaryBrush}"
  237. <TabItem Header="客户跟进" Tag="FollowControl">
  238.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  239. </TabItem>LineStrokeThickness="2" />
  240. <Grid Margin="0,5,0,0" Background="{DynamicResource BackgroundBrush}">
  241. <TabItem Header="客户跟进" Tag="FollowControl">
  242.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  243. </TabItem>
  244. <TabItem Header="客户跟进" Tag="FollowControl">
  245.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  246. </TabItem><local:AllRelatedListControl x:Name="allRelatedList" CustomerId="{Binding SelectedItem.Id, ElementName=grid}" />
  247. </Grid><TabItem Header="客户跟进" Tag="FollowControl">
  248.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  249. </TabItem>if (d is not AllRelatedListControl control)<hc:Divider
  250. <TabItem Header="客户跟进" Tag="FollowControl">
  251.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  252. </TabItem>Margin="0"
  253. <TabItem Header="客户跟进" Tag="FollowControl">
  254.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  255. </TabItem>LineStroke="{DynamicResource DarkPrimaryBrush}"
  256. <TabItem Header="客户跟进" Tag="FollowControl">
  257.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  258. </TabItem>LineStrokeThickness="2" />
  259. <Grid Margin="0,5,0,0" Background="{DynamicResource BackgroundBrush}">
  260. <TabItem Header="客户跟进" Tag="FollowControl">
  261.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  262. </TabItem>
  263. <TabItem Header="客户跟进" Tag="FollowControl">
  264.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  265. </TabItem><local:AllRelatedListControl x:Name="allRelatedList" CustomerId="{Binding SelectedItem.Id, ElementName=grid}" />
  266. </Grid><hc:Divider
  267. <TabItem Header="客户跟进" Tag="FollowControl">
  268.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  269. </TabItem>Margin="0"
  270. <TabItem Header="客户跟进" Tag="FollowControl">
  271.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  272. </TabItem>LineStroke="{DynamicResource DarkPrimaryBrush}"
  273. <TabItem Header="客户跟进" Tag="FollowControl">
  274.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  275. </TabItem>LineStrokeThickness="2" />
  276. <Grid Margin="0,5,0,0" Background="{DynamicResource BackgroundBrush}">
  277. <TabItem Header="客户跟进" Tag="FollowControl">
  278.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  279. </TabItem>
  280. <TabItem Header="客户跟进" Tag="FollowControl">
  281.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  282. </TabItem><local:AllRelatedListControl x:Name="allRelatedList" CustomerId="{Binding SelectedItem.Id, ElementName=grid}" />
  283. </Grid>return;<hc:Divider
  284. <TabItem Header="客户跟进" Tag="FollowControl">
  285.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  286. </TabItem>Margin="0"
  287. <TabItem Header="客户跟进" Tag="FollowControl">
  288.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  289. </TabItem>LineStroke="{DynamicResource DarkPrimaryBrush}"
  290. <TabItem Header="客户跟进" Tag="FollowControl">
  291.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  292. </TabItem>LineStrokeThickness="2" />
  293. <Grid Margin="0,5,0,0" Background="{DynamicResource BackgroundBrush}">
  294. <TabItem Header="客户跟进" Tag="FollowControl">
  295.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  296. </TabItem>
  297. <TabItem Header="客户跟进" Tag="FollowControl">
  298.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  299. </TabItem><local:AllRelatedListControl x:Name="allRelatedList" CustomerId="{Binding SelectedItem.Id, ElementName=grid}" />
  300. </Grid><TabItem Header="客户跟进" Tag="FollowControl">
  301.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  302. </TabItem>if (control != null)<hc:Divider
  303. <TabItem Header="客户跟进" Tag="FollowControl">
  304.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  305. </TabItem>Margin="0"
  306. <TabItem Header="客户跟进" Tag="FollowControl">
  307.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  308. </TabItem>LineStroke="{DynamicResource DarkPrimaryBrush}"
  309. <TabItem Header="客户跟进" Tag="FollowControl">
  310.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  311. </TabItem>LineStrokeThickness="2" />
  312. <Grid Margin="0,5,0,0" Background="{DynamicResource BackgroundBrush}">
  313. <TabItem Header="客户跟进" Tag="FollowControl">
  314.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  315. </TabItem>
  316. <TabItem Header="客户跟进" Tag="FollowControl">
  317.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  318. </TabItem><local:AllRelatedListControl x:Name="allRelatedList" CustomerId="{Binding SelectedItem.Id, ElementName=grid}" />
  319. </Grid><TabItem Header="客户跟进" Tag="FollowControl">
  320.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  321. </TabItem>{<hc:Divider
  322. <TabItem Header="客户跟进" Tag="FollowControl">
  323.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  324. </TabItem>Margin="0"
  325. <TabItem Header="客户跟进" Tag="FollowControl">
  326.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  327. </TabItem>LineStroke="{DynamicResource DarkPrimaryBrush}"
  328. <TabItem Header="客户跟进" Tag="FollowControl">
  329.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  330. </TabItem>LineStrokeThickness="2" />
  331. <Grid Margin="0,5,0,0" Background="{DynamicResource BackgroundBrush}">
  332. <TabItem Header="客户跟进" Tag="FollowControl">
  333.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  334. </TabItem>
  335. <TabItem Header="客户跟进" Tag="FollowControl">
  336.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  337. </TabItem><local:AllRelatedListControl x:Name="allRelatedList" CustomerId="{Binding SelectedItem.Id, ElementName=grid}" />
  338. </Grid><hc:Divider
  339. <TabItem Header="客户跟进" Tag="FollowControl">
  340.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  341. </TabItem>Margin="0"
  342. <TabItem Header="客户跟进" Tag="FollowControl">
  343.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  344. </TabItem>LineStroke="{DynamicResource DarkPrimaryBrush}"
  345. <TabItem Header="客户跟进" Tag="FollowControl">
  346.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  347. </TabItem>LineStrokeThickness="2" />
  348. <Grid Margin="0,5,0,0" Background="{DynamicResource BackgroundBrush}">
  349. <TabItem Header="客户跟进" Tag="FollowControl">
  350.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  351. </TabItem>
  352. <TabItem Header="客户跟进" Tag="FollowControl">
  353.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  354. </TabItem><local:AllRelatedListControl x:Name="allRelatedList" CustomerId="{Binding SelectedItem.Id, ElementName=grid}" />
  355. </Grid>var oldValue = (string?)e.OldValue;  // 旧的值<hc:Divider
  356. <TabItem Header="客户跟进" Tag="FollowControl">
  357.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  358. </TabItem>Margin="0"
  359. <TabItem Header="客户跟进" Tag="FollowControl">
  360.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  361. </TabItem>LineStroke="{DynamicResource DarkPrimaryBrush}"
  362. <TabItem Header="客户跟进" Tag="FollowControl">
  363.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  364. </TabItem>LineStrokeThickness="2" />
  365. <Grid Margin="0,5,0,0" Background="{DynamicResource BackgroundBrush}">
  366. <TabItem Header="客户跟进" Tag="FollowControl">
  367.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  368. </TabItem>
  369. <TabItem Header="客户跟进" Tag="FollowControl">
  370.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  371. </TabItem><local:AllRelatedListControl x:Name="allRelatedList" CustomerId="{Binding SelectedItem.Id, ElementName=grid}" />
  372. </Grid><hc:Divider
  373. <TabItem Header="客户跟进" Tag="FollowControl">
  374.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  375. </TabItem>Margin="0"
  376. <TabItem Header="客户跟进" Tag="FollowControl">
  377.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  378. </TabItem>LineStroke="{DynamicResource DarkPrimaryBrush}"
  379. <TabItem Header="客户跟进" Tag="FollowControl">
  380.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  381. </TabItem>LineStrokeThickness="2" />
  382. <Grid Margin="0,5,0,0" Background="{DynamicResource BackgroundBrush}">
  383. <TabItem Header="客户跟进" Tag="FollowControl">
  384.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  385. </TabItem>
  386. <TabItem Header="客户跟进" Tag="FollowControl">
  387.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  388. </TabItem><local:AllRelatedListControl x:Name="allRelatedList" CustomerId="{Binding SelectedItem.Id, ElementName=grid}" />
  389. </Grid>var newValue = (string?)e.NewValue; // 更新的新的值<hc:Divider
  390. <TabItem Header="客户跟进" Tag="FollowControl">
  391.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  392. </TabItem>Margin="0"
  393. <TabItem Header="客户跟进" Tag="FollowControl">
  394.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  395. </TabItem>LineStroke="{DynamicResource DarkPrimaryBrush}"
  396. <TabItem Header="客户跟进" Tag="FollowControl">
  397.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  398. </TabItem>LineStrokeThickness="2" />
  399. <Grid Margin="0,5,0,0" Background="{DynamicResource BackgroundBrush}">
  400. <TabItem Header="客户跟进" Tag="FollowControl">
  401.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  402. </TabItem>
  403. <TabItem Header="客户跟进" Tag="FollowControl">
  404.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  405. </TabItem><local:AllRelatedListControl x:Name="allRelatedList" CustomerId="{Binding SelectedItem.Id, ElementName=grid}" />
  406. </Grid><hc:Divider
  407. <TabItem Header="客户跟进" Tag="FollowControl">
  408.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  409. </TabItem>Margin="0"
  410. <TabItem Header="客户跟进" Tag="FollowControl">
  411.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  412. </TabItem>LineStroke="{DynamicResource DarkPrimaryBrush}"
  413. <TabItem Header="客户跟进" Tag="FollowControl">
  414.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  415. </TabItem>LineStrokeThickness="2" />
  416. <Grid Margin="0,5,0,0" Background="{DynamicResource BackgroundBrush}">
  417. <TabItem Header="客户跟进" Tag="FollowControl">
  418.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  419. </TabItem>
  420. <TabItem Header="客户跟进" Tag="FollowControl">
  421.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  422. </TabItem><local:AllRelatedListControl x:Name="allRelatedList" CustomerId="{Binding SelectedItem.Id, ElementName=grid}" />
  423. </Grid>//更新数据源<hc:Divider
  424. <TabItem Header="客户跟进" Tag="FollowControl">
  425.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  426. </TabItem>Margin="0"
  427. <TabItem Header="客户跟进" Tag="FollowControl">
  428.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  429. </TabItem>LineStroke="{DynamicResource DarkPrimaryBrush}"
  430. <TabItem Header="客户跟进" Tag="FollowControl">
  431.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  432. </TabItem>LineStrokeThickness="2" />
  433. <Grid Margin="0,5,0,0" Background="{DynamicResource BackgroundBrush}">
  434. <TabItem Header="客户跟进" Tag="FollowControl">
  435.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  436. </TabItem>
  437. <TabItem Header="客户跟进" Tag="FollowControl">
  438.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  439. </TabItem><local:AllRelatedListControl x:Name="allRelatedList" CustomerId="{Binding SelectedItem.Id, ElementName=grid}" />
  440. </Grid><hc:Divider
  441. <TabItem Header="客户跟进" Tag="FollowControl">
  442.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  443. </TabItem>Margin="0"
  444. <TabItem Header="客户跟进" Tag="FollowControl">
  445.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  446. </TabItem>LineStroke="{DynamicResource DarkPrimaryBrush}"
  447. <TabItem Header="客户跟进" Tag="FollowControl">
  448.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  449. </TabItem>LineStrokeThickness="2" />
  450. <Grid Margin="0,5,0,0" Background="{DynamicResource BackgroundBrush}">
  451. <TabItem Header="客户跟进" Tag="FollowControl">
  452.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  453. </TabItem>
  454. <TabItem Header="客户跟进" Tag="FollowControl">
  455.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  456. </TabItem><local:AllRelatedListControl x:Name="allRelatedList" CustomerId="{Binding SelectedItem.Id, ElementName=grid}" />
  457. </Grid>await control.InitData(newValue);<hc:Divider
  458. <TabItem Header="客户跟进" Tag="FollowControl">
  459.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  460. </TabItem>Margin="0"
  461. <TabItem Header="客户跟进" Tag="FollowControl">
  462.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  463. </TabItem>LineStroke="{DynamicResource DarkPrimaryBrush}"
  464. <TabItem Header="客户跟进" Tag="FollowControl">
  465.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  466. </TabItem>LineStrokeThickness="2" />
  467. <Grid Margin="0,5,0,0" Background="{DynamicResource BackgroundBrush}">
  468. <TabItem Header="客户跟进" Tag="FollowControl">
  469.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  470. </TabItem>
  471. <TabItem Header="客户跟进" Tag="FollowControl">
  472.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  473. </TabItem><local:AllRelatedListControl x:Name="allRelatedList" CustomerId="{Binding SelectedItem.Id, ElementName=grid}" />
  474. </Grid><TabItem Header="客户跟进" Tag="FollowControl">
  475.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  476. </TabItem>}<hc:Divider
  477. <TabItem Header="客户跟进" Tag="FollowControl">
  478.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  479. </TabItem>Margin="0"
  480. <TabItem Header="客户跟进" Tag="FollowControl">
  481.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  482. </TabItem>LineStroke="{DynamicResource DarkPrimaryBrush}"
  483. <TabItem Header="客户跟进" Tag="FollowControl">
  484.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  485. </TabItem>LineStrokeThickness="2" />
  486. <Grid Margin="0,5,0,0" Background="{DynamicResource BackgroundBrush}">
  487. <TabItem Header="客户跟进" Tag="FollowControl">
  488.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  489. </TabItem>
  490. <TabItem Header="客户跟进" Tag="FollowControl">
  491.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  492. </TabItem><local:AllRelatedListControl x:Name="allRelatedList" CustomerId="{Binding SelectedItem.Id, ElementName=grid}" />
  493. </Grid>}
复制代码
而我们每个子控件里面,其实也是已经根据父控件的客户ID进行了绑定属性了,如下所示。
  1. <TabItem Header="客户跟进" Tag="FollowControl">
  2.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  3. </TabItem>
复制代码
如果我们要根据数据库的配置信息,用来判断哪个选项卡显示或者隐藏,那么可以进一步进行处理每个TabItem的Visibility即可
  1. //判断是否显示foreach (TabItem item in this.tabControl.Items){<TabItem Header="客户跟进" Tag="FollowControl">
  2.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  3. </TabItem>if (!item.Tag.IsEmpty())<TabItem Header="客户跟进" Tag="FollowControl">
  4.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  5. </TabItem>{<hc:Divider
  6. <TabItem Header="客户跟进" Tag="FollowControl">
  7.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  8. </TabItem>Margin="0"
  9. <TabItem Header="客户跟进" Tag="FollowControl">
  10.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  11. </TabItem>LineStroke="{DynamicResource DarkPrimaryBrush}"
  12. <TabItem Header="客户跟进" Tag="FollowControl">
  13.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  14. </TabItem>LineStrokeThickness="2" />
  15. <Grid Margin="0,5,0,0" Background="{DynamicResource BackgroundBrush}">
  16. <TabItem Header="客户跟进" Tag="FollowControl">
  17.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  18. </TabItem>
  19. <TabItem Header="客户跟进" Tag="FollowControl">
  20.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  21. </TabItem><local:AllRelatedListControl x:Name="allRelatedList" CustomerId="{Binding SelectedItem.Id, ElementName=grid}" />
  22. </Grid>item.Visibility = [b]CustomerTabItems.Contains(item.Tag.ToString()!)[/b] ? Visibility.Visible : Visibility.Collapsed;<TabItem Header="客户跟进" Tag="FollowControl">
  23.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  24. </TabItem>}}
复制代码
在DataGrid的鼠标键按下左键的时候,我们刷新对应自定义控件的属性CustomerId,就可以刷新相关的客户数据了。
  1. <TabItem Header="客户跟进" Tag="FollowControl">
  2.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  3. </TabItem>///<TabItem Header="客户跟进" Tag="FollowControl">
  4.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  5. </TabItem> /// 选中每个客户记录的时候,触发更新客户相关信息<TabItem Header="客户跟进" Tag="FollowControl">
  6.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  7. </TabItem>///<TabItem Header="客户跟进" Tag="FollowControl">
  8.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  9. </TabItem> private async void grid_MouseLeftButtonUp(object sender, System.Windows.Input.MouseButtonEventArgs e)<TabItem Header="客户跟进" Tag="FollowControl">
  10.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  11. </TabItem>{<hc:Divider
  12. <TabItem Header="客户跟进" Tag="FollowControl">
  13.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  14. </TabItem>Margin="0"
  15. <TabItem Header="客户跟进" Tag="FollowControl">
  16.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  17. </TabItem>LineStroke="{DynamicResource DarkPrimaryBrush}"
  18. <TabItem Header="客户跟进" Tag="FollowControl">
  19.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  20. </TabItem>LineStrokeThickness="2" />
  21. <Grid Margin="0,5,0,0" Background="{DynamicResource BackgroundBrush}">
  22. <TabItem Header="客户跟进" Tag="FollowControl">
  23.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  24. </TabItem>
  25. <TabItem Header="客户跟进" Tag="FollowControl">
  26.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  27. </TabItem><local:AllRelatedListControl x:Name="allRelatedList" CustomerId="{Binding SelectedItem.Id, ElementName=grid}" />
  28. </Grid>if (this.grid.SelectedItem is CustomerInfo selectItem)<hc:Divider
  29. <TabItem Header="客户跟进" Tag="FollowControl">
  30.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  31. </TabItem>Margin="0"
  32. <TabItem Header="客户跟进" Tag="FollowControl">
  33.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  34. </TabItem>LineStroke="{DynamicResource DarkPrimaryBrush}"
  35. <TabItem Header="客户跟进" Tag="FollowControl">
  36.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  37. </TabItem>LineStrokeThickness="2" />
  38. <Grid Margin="0,5,0,0" Background="{DynamicResource BackgroundBrush}">
  39. <TabItem Header="客户跟进" Tag="FollowControl">
  40.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  41. </TabItem>
  42. <TabItem Header="客户跟进" Tag="FollowControl">
  43.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  44. </TabItem><local:AllRelatedListControl x:Name="allRelatedList" CustomerId="{Binding SelectedItem.Id, ElementName=grid}" />
  45. </Grid>{<hc:Divider
  46. <TabItem Header="客户跟进" Tag="FollowControl">
  47.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  48. </TabItem>Margin="0"
  49. <TabItem Header="客户跟进" Tag="FollowControl">
  50.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  51. </TabItem>LineStroke="{DynamicResource DarkPrimaryBrush}"
  52. <TabItem Header="客户跟进" Tag="FollowControl">
  53.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  54. </TabItem>LineStrokeThickness="2" />
  55. <Grid Margin="0,5,0,0" Background="{DynamicResource BackgroundBrush}">
  56. <TabItem Header="客户跟进" Tag="FollowControl">
  57.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  58. </TabItem>
  59. <TabItem Header="客户跟进" Tag="FollowControl">
  60.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  61. </TabItem><local:AllRelatedListControl x:Name="allRelatedList" CustomerId="{Binding SelectedItem.Id, ElementName=grid}" />
  62. </Grid><TabItem Header="客户跟进" Tag="FollowControl">
  63.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  64. </TabItem>[b]allRelatedList.CustomerId [/b][b]= selectItem.Id;<hc:Divider
  65. <TabItem Header="客户跟进" Tag="FollowControl">
  66.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  67. </TabItem>Margin="0"
  68. <TabItem Header="客户跟进" Tag="FollowControl">
  69.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  70. </TabItem>LineStroke="{DynamicResource DarkPrimaryBrush}"
  71. <TabItem Header="客户跟进" Tag="FollowControl">
  72.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  73. </TabItem>LineStrokeThickness="2" />
  74. <Grid Margin="0,5,0,0" Background="{DynamicResource BackgroundBrush}">
  75. <TabItem Header="客户跟进" Tag="FollowControl">
  76.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  77. </TabItem>
  78. <TabItem Header="客户跟进" Tag="FollowControl">
  79.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  80. </TabItem><local:AllRelatedListControl x:Name="allRelatedList" CustomerId="{Binding SelectedItem.Id, ElementName=grid}" />
  81. </Grid>   [/b][b] await[/b][b] allRelatedList.InitData(selectItem.Id);[/b]<hc:Divider
  82. <TabItem Header="客户跟进" Tag="FollowControl">
  83.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  84. </TabItem>Margin="0"
  85. <TabItem Header="客户跟进" Tag="FollowControl">
  86.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  87. </TabItem>LineStroke="{DynamicResource DarkPrimaryBrush}"
  88. <TabItem Header="客户跟进" Tag="FollowControl">
  89.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  90. </TabItem>LineStrokeThickness="2" />
  91. <Grid Margin="0,5,0,0" Background="{DynamicResource BackgroundBrush}">
  92. <TabItem Header="客户跟进" Tag="FollowControl">
  93.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  94. </TabItem>
  95. <TabItem Header="客户跟进" Tag="FollowControl">
  96.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  97. </TabItem><local:AllRelatedListControl x:Name="allRelatedList" CustomerId="{Binding SelectedItem.Id, ElementName=grid}" />
  98. </Grid>}<TabItem Header="客户跟进" Tag="FollowControl">
  99.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  100. </TabItem>}
复制代码
以上就是对于复杂的客户信息内容,使用选项卡动态组合的方式,实现内容的动态展示处理操作。
 
2、动态自定义表单内容的展示

有时候,我们在工作流表单中,需要展示一些固定的申请单信息,以及根据不同流程的表单数据(结构也不同)进行展示,如工作流中,不同的表单数据结构是不同的。

 明细展示效果如下所示。

或者

可以看出不同的流程类型表单,它们的表单结构是不同的,如果我们在一个固定的页面里面展示数据,那么这块表单的数据展示,就需要用到动态控件的展示方式。
我们采用Grid布局排版方式,grid.row=0为固定表单(这里不再赘述),grid.row=1为动态表单内容,如下所示。
  1. <TabItem Header="客户跟进" Tag="FollowControl">
  2.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  3. </TabItem>   
复制代码
其中里面 就是我们根据实际表单的内容进行动态展示的地方。
  1. /// /// 该事件在loaded之后执行,也是在所有元素渲染结束之后执行/// /// protected override async void OnContentRendered(EventArgs e){<TabItem Header="客户跟进" Tag="FollowControl">
  2.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  3. </TabItem>base.OnContentRendered(e);<TabItem Header="客户跟进" Tag="FollowControl">
  4.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  5. </TabItem>//动态构建表单内容展示 formContent<TabItem Header="客户跟进" Tag="FollowControl">
  6.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  7. </TabItem>var formId = this.ViewModel.Item.FormId;<TabItem Header="客户跟进" Tag="FollowControl">
  8.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  9. </TabItem>if(!formId.IsNullOrEmpty())<TabItem Header="客户跟进" Tag="FollowControl">
  10.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  11. </TabItem>{<hc:Divider
  12. <TabItem Header="客户跟进" Tag="FollowControl">
  13.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  14. </TabItem>Margin="0"
  15. <TabItem Header="客户跟进" Tag="FollowControl">
  16.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  17. </TabItem>LineStroke="{DynamicResource DarkPrimaryBrush}"
  18. <TabItem Header="客户跟进" Tag="FollowControl">
  19.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  20. </TabItem>LineStrokeThickness="2" />
  21. <Grid Margin="0,5,0,0" Background="{DynamicResource BackgroundBrush}">
  22. <TabItem Header="客户跟进" Tag="FollowControl">
  23.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  24. </TabItem>
  25. <TabItem Header="客户跟进" Tag="FollowControl">
  26.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  27. </TabItem><local:AllRelatedListControl x:Name="allRelatedList" CustomerId="{Binding SelectedItem.Id, ElementName=grid}" />
  28. </Grid>var formInfo = await BLLFactory.Instance.GetAsync(formId);<hc:Divider
  29. <TabItem Header="客户跟进" Tag="FollowControl">
  30.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  31. </TabItem>Margin="0"
  32. <TabItem Header="客户跟进" Tag="FollowControl">
  33.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  34. </TabItem>LineStroke="{DynamicResource DarkPrimaryBrush}"
  35. <TabItem Header="客户跟进" Tag="FollowControl">
  36.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  37. </TabItem>LineStrokeThickness="2" />
  38. <Grid Margin="0,5,0,0" Background="{DynamicResource BackgroundBrush}">
  39. <TabItem Header="客户跟进" Tag="FollowControl">
  40.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  41. </TabItem>
  42. <TabItem Header="客户跟进" Tag="FollowControl">
  43.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  44. </TabItem><local:AllRelatedListControl x:Name="allRelatedList" CustomerId="{Binding SelectedItem.Id, ElementName=grid}" />
  45. </Grid>if(formInfo != null && !formInfo.ApplyWpfview.IsNullOrEmpty())<hc:Divider
  46. <TabItem Header="客户跟进" Tag="FollowControl">
  47.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  48. </TabItem>Margin="0"
  49. <TabItem Header="客户跟进" Tag="FollowControl">
  50.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  51. </TabItem>LineStroke="{DynamicResource DarkPrimaryBrush}"
  52. <TabItem Header="客户跟进" Tag="FollowControl">
  53.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  54. </TabItem>LineStrokeThickness="2" />
  55. <Grid Margin="0,5,0,0" Background="{DynamicResource BackgroundBrush}">
  56. <TabItem Header="客户跟进" Tag="FollowControl">
  57.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  58. </TabItem>
  59. <TabItem Header="客户跟进" Tag="FollowControl">
  60.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  61. </TabItem><local:AllRelatedListControl x:Name="allRelatedList" CustomerId="{Binding SelectedItem.Id, ElementName=grid}" />
  62. </Grid>{<hc:Divider
  63. <TabItem Header="客户跟进" Tag="FollowControl">
  64.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  65. </TabItem>Margin="0"
  66. <TabItem Header="客户跟进" Tag="FollowControl">
  67.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  68. </TabItem>LineStroke="{DynamicResource DarkPrimaryBrush}"
  69. <TabItem Header="客户跟进" Tag="FollowControl">
  70.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  71. </TabItem>LineStrokeThickness="2" />
  72. <Grid Margin="0,5,0,0" Background="{DynamicResource BackgroundBrush}">
  73. <TabItem Header="客户跟进" Tag="FollowControl">
  74.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  75. </TabItem>
  76. <TabItem Header="客户跟进" Tag="FollowControl">
  77.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  78. </TabItem><local:AllRelatedListControl x:Name="allRelatedList" CustomerId="{Binding SelectedItem.Id, ElementName=grid}" />
  79. </Grid><TabItem Header="客户跟进" Tag="FollowControl">
  80.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  81. </TabItem>var control = ReflectionUtil.CreateInstance([b]formInfo.ApplyWpfview[/b]);<hc:Divider
  82. <TabItem Header="客户跟进" Tag="FollowControl">
  83.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  84. </TabItem>Margin="0"
  85. <TabItem Header="客户跟进" Tag="FollowControl">
  86.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  87. </TabItem>LineStroke="{DynamicResource DarkPrimaryBrush}"
  88. <TabItem Header="客户跟进" Tag="FollowControl">
  89.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  90. </TabItem>LineStrokeThickness="2" />
  91. <Grid Margin="0,5,0,0" Background="{DynamicResource BackgroundBrush}">
  92. <TabItem Header="客户跟进" Tag="FollowControl">
  93.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  94. </TabItem>
  95. <TabItem Header="客户跟进" Tag="FollowControl">
  96.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  97. </TabItem><local:AllRelatedListControl x:Name="allRelatedList" CustomerId="{Binding SelectedItem.Id, ElementName=grid}" />
  98. </Grid><TabItem Header="客户跟进" Tag="FollowControl">
  99.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  100. </TabItem>var data = control as IApplyInit;<hc:Divider
  101. <TabItem Header="客户跟进" Tag="FollowControl">
  102.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  103. </TabItem>Margin="0"
  104. <TabItem Header="客户跟进" Tag="FollowControl">
  105.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  106. </TabItem>LineStroke="{DynamicResource DarkPrimaryBrush}"
  107. <TabItem Header="客户跟进" Tag="FollowControl">
  108.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  109. </TabItem>LineStrokeThickness="2" />
  110. <Grid Margin="0,5,0,0" Background="{DynamicResource BackgroundBrush}">
  111. <TabItem Header="客户跟进" Tag="FollowControl">
  112.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  113. </TabItem>
  114. <TabItem Header="客户跟进" Tag="FollowControl">
  115.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  116. </TabItem><local:AllRelatedListControl x:Name="allRelatedList" CustomerId="{Binding SelectedItem.Id, ElementName=grid}" />
  117. </Grid><TabItem Header="客户跟进" Tag="FollowControl">
  118.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  119. </TabItem>if(data != null)<hc:Divider
  120. <TabItem Header="客户跟进" Tag="FollowControl">
  121.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  122. </TabItem>Margin="0"
  123. <TabItem Header="客户跟进" Tag="FollowControl">
  124.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  125. </TabItem>LineStroke="{DynamicResource DarkPrimaryBrush}"
  126. <TabItem Header="客户跟进" Tag="FollowControl">
  127.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  128. </TabItem>LineStrokeThickness="2" />
  129. <Grid Margin="0,5,0,0" Background="{DynamicResource BackgroundBrush}">
  130. <TabItem Header="客户跟进" Tag="FollowControl">
  131.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  132. </TabItem>
  133. <TabItem Header="客户跟进" Tag="FollowControl">
  134.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  135. </TabItem><local:AllRelatedListControl x:Name="allRelatedList" CustomerId="{Binding SelectedItem.Id, ElementName=grid}" />
  136. </Grid><TabItem Header="客户跟进" Tag="FollowControl">
  137.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  138. </TabItem>{<hc:Divider
  139. <TabItem Header="客户跟进" Tag="FollowControl">
  140.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  141. </TabItem>Margin="0"
  142. <TabItem Header="客户跟进" Tag="FollowControl">
  143.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  144. </TabItem>LineStroke="{DynamicResource DarkPrimaryBrush}"
  145. <TabItem Header="客户跟进" Tag="FollowControl">
  146.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  147. </TabItem>LineStrokeThickness="2" />
  148. <Grid Margin="0,5,0,0" Background="{DynamicResource BackgroundBrush}">
  149. <TabItem Header="客户跟进" Tag="FollowControl">
  150.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  151. </TabItem>
  152. <TabItem Header="客户跟进" Tag="FollowControl">
  153.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  154. </TabItem><local:AllRelatedListControl x:Name="allRelatedList" CustomerId="{Binding SelectedItem.Id, ElementName=grid}" />
  155. </Grid><hc:Divider
  156. <TabItem Header="客户跟进" Tag="FollowControl">
  157.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  158. </TabItem>Margin="0"
  159. <TabItem Header="客户跟进" Tag="FollowControl">
  160.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  161. </TabItem>LineStroke="{DynamicResource DarkPrimaryBrush}"
  162. <TabItem Header="客户跟进" Tag="FollowControl">
  163.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  164. </TabItem>LineStrokeThickness="2" />
  165. <Grid Margin="0,5,0,0" Background="{DynamicResource BackgroundBrush}">
  166. <TabItem Header="客户跟进" Tag="FollowControl">
  167.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  168. </TabItem>
  169. <TabItem Header="客户跟进" Tag="FollowControl">
  170.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  171. </TabItem><local:AllRelatedListControl x:Name="allRelatedList" CustomerId="{Binding SelectedItem.Id, ElementName=grid}" />
  172. </Grid>await data.InitData(this.ViewModel.Item.Id);<hc:Divider
  173. <TabItem Header="客户跟进" Tag="FollowControl">
  174.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  175. </TabItem>Margin="0"
  176. <TabItem Header="客户跟进" Tag="FollowControl">
  177.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  178. </TabItem>LineStroke="{DynamicResource DarkPrimaryBrush}"
  179. <TabItem Header="客户跟进" Tag="FollowControl">
  180.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  181. </TabItem>LineStrokeThickness="2" />
  182. <Grid Margin="0,5,0,0" Background="{DynamicResource BackgroundBrush}">
  183. <TabItem Header="客户跟进" Tag="FollowControl">
  184.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  185. </TabItem>
  186. <TabItem Header="客户跟进" Tag="FollowControl">
  187.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  188. </TabItem><local:AllRelatedListControl x:Name="allRelatedList" CustomerId="{Binding SelectedItem.Id, ElementName=grid}" />
  189. </Grid><TabItem Header="客户跟进" Tag="FollowControl">
  190.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  191. </TabItem>}<hc:Divider
  192. <TabItem Header="客户跟进" Tag="FollowControl">
  193.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  194. </TabItem>Margin="0"
  195. <TabItem Header="客户跟进" Tag="FollowControl">
  196.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  197. </TabItem>LineStroke="{DynamicResource DarkPrimaryBrush}"
  198. <TabItem Header="客户跟进" Tag="FollowControl">
  199.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  200. </TabItem>LineStrokeThickness="2" />
  201. <Grid Margin="0,5,0,0" Background="{DynamicResource BackgroundBrush}">
  202. <TabItem Header="客户跟进" Tag="FollowControl">
  203.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  204. </TabItem>
  205. <TabItem Header="客户跟进" Tag="FollowControl">
  206.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  207. </TabItem><local:AllRelatedListControl x:Name="allRelatedList" CustomerId="{Binding SelectedItem.Id, ElementName=grid}" />
  208. </Grid><TabItem Header="客户跟进" Tag="FollowControl">
  209.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  210. </TabItem>formContent.Content = control;<hc:Divider
  211. <TabItem Header="客户跟进" Tag="FollowControl">
  212.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  213. </TabItem>Margin="0"
  214. <TabItem Header="客户跟进" Tag="FollowControl">
  215.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  216. </TabItem>LineStroke="{DynamicResource DarkPrimaryBrush}"
  217. <TabItem Header="客户跟进" Tag="FollowControl">
  218.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  219. </TabItem>LineStrokeThickness="2" />
  220. <Grid Margin="0,5,0,0" Background="{DynamicResource BackgroundBrush}">
  221. <TabItem Header="客户跟进" Tag="FollowControl">
  222.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  223. </TabItem>
  224. <TabItem Header="客户跟进" Tag="FollowControl">
  225.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  226. </TabItem><local:AllRelatedListControl x:Name="allRelatedList" CustomerId="{Binding SelectedItem.Id, ElementName=grid}" />
  227. </Grid>}<TabItem Header="客户跟进" Tag="FollowControl">
  228.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  229. </TabItem>}<TabItem Header="客户跟进" Tag="FollowControl">
  230.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  231. </TabItem>//初始化工具栏<TabItem Header="客户跟进" Tag="FollowControl">
  232.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  233. </TabItem>await InitToolBar();}
复制代码
我们根据表单ID获取对应的formInfo.ApplyWpfview 属性配置,他就是一个具体的控件的名称路径,因此我们根据这个来进行反射构建一个实例,并把它转换为 IApplyInit 的接口实例,进行调用控件初始化即可。
生成的控件当做Frame控件的Content,从而实现动态内容的展示了。
我们以第一个表单【故障维修】的自定义控件定义来看看
  1. public partial class MaintenanceViewControl : INavigableView<MaintenanceEditViewModel>, <strong>IApplyInit</strong>
复制代码
它实现了 IApplyInit 接口,因此我们可以在动态控件的时候,把它转换为接口实例进行调用,这也是我们约束动态控件实例的一个规则。
不同的控件,他们的数据模型肯定不同,因此由它们自己本身实现具体的获取数据即可。
  1. /// /// 初始化相关业务表单数据/// /// 申请单Id/// public async Task InitData(string applyId){<TabItem Header="客户跟进" Tag="FollowControl">
  2.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  3. </TabItem>[b]this.ViewModel.Item = await BLLFactory.Instance.FindByApplyId(applyId);<TabItem Header="客户跟进" Tag="FollowControl">
  4.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  5. </TabItem>[/b]this.ViewModel.NotifyChanged();}
复制代码
这样我们自定义控件的XAML就可以顺利绑定对应的数据展示了,这些控件的内容,可以根据数据库接口,使用我们的代码生成工具进行快速生成,然后进行一定的裁剪调整即可,不必要一个个来编写代码。
  1. <hc:Divider
  2. <TabItem Header="客户跟进" Tag="FollowControl">
  3.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  4. </TabItem>Margin="0"
  5. <TabItem Header="客户跟进" Tag="FollowControl">
  6.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  7. </TabItem>LineStroke="{DynamicResource DarkPrimaryBrush}"
  8. <TabItem Header="客户跟进" Tag="FollowControl">
  9.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  10. </TabItem>LineStrokeThickness="2" />
  11. <Grid Margin="0,5,0,0" Background="{DynamicResource BackgroundBrush}">
  12. <TabItem Header="客户跟进" Tag="FollowControl">
  13.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  14. </TabItem>
  15. <TabItem Header="客户跟进" Tag="FollowControl">
  16.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  17. </TabItem><local:AllRelatedListControl x:Name="allRelatedList" CustomerId="{Binding SelectedItem.Id, ElementName=grid}" />
  18. </Grid><hc:Divider
  19. <TabItem Header="客户跟进" Tag="FollowControl">
  20.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  21. </TabItem>Margin="0"
  22. <TabItem Header="客户跟进" Tag="FollowControl">
  23.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  24. </TabItem>LineStroke="{DynamicResource DarkPrimaryBrush}"
  25. <TabItem Header="客户跟进" Tag="FollowControl">
  26.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  27. </TabItem>LineStrokeThickness="2" />
  28. <Grid Margin="0,5,0,0" Background="{DynamicResource BackgroundBrush}">
  29. <TabItem Header="客户跟进" Tag="FollowControl">
  30.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  31. </TabItem>
  32. <TabItem Header="客户跟进" Tag="FollowControl">
  33.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  34. </TabItem><local:AllRelatedListControl x:Name="allRelatedList" CustomerId="{Binding SelectedItem.Id, ElementName=grid}" />
  35. </Grid><hc:Divider
  36. <TabItem Header="客户跟进" Tag="FollowControl">
  37.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  38. </TabItem>Margin="0"
  39. <TabItem Header="客户跟进" Tag="FollowControl">
  40.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  41. </TabItem>LineStroke="{DynamicResource DarkPrimaryBrush}"
  42. <TabItem Header="客户跟进" Tag="FollowControl">
  43.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  44. </TabItem>LineStrokeThickness="2" />
  45. <Grid Margin="0,5,0,0" Background="{DynamicResource BackgroundBrush}">
  46. <TabItem Header="客户跟进" Tag="FollowControl">
  47.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  48. </TabItem>
  49. <TabItem Header="客户跟进" Tag="FollowControl">
  50.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  51. </TabItem><local:AllRelatedListControl x:Name="allRelatedList" CustomerId="{Binding SelectedItem.Id, ElementName=grid}" />
  52. </Grid><hc:Divider
  53. <TabItem Header="客户跟进" Tag="FollowControl">
  54.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  55. </TabItem>Margin="0"
  56. <TabItem Header="客户跟进" Tag="FollowControl">
  57.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  58. </TabItem>LineStroke="{DynamicResource DarkPrimaryBrush}"
  59. <TabItem Header="客户跟进" Tag="FollowControl">
  60.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  61. </TabItem>LineStrokeThickness="2" />
  62. <Grid Margin="0,5,0,0" Background="{DynamicResource BackgroundBrush}">
  63. <TabItem Header="客户跟进" Tag="FollowControl">
  64.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  65. </TabItem>
  66. <TabItem Header="客户跟进" Tag="FollowControl">
  67.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  68. </TabItem><local:AllRelatedListControl x:Name="allRelatedList" CustomerId="{Binding SelectedItem.Id, ElementName=grid}" />
  69. </Grid><hc:Divider
  70. <TabItem Header="客户跟进" Tag="FollowControl">
  71.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  72. </TabItem>Margin="0"
  73. <TabItem Header="客户跟进" Tag="FollowControl">
  74.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  75. </TabItem>LineStroke="{DynamicResource DarkPrimaryBrush}"
  76. <TabItem Header="客户跟进" Tag="FollowControl">
  77.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  78. </TabItem>LineStrokeThickness="2" />
  79. <Grid Margin="0,5,0,0" Background="{DynamicResource BackgroundBrush}">
  80. <TabItem Header="客户跟进" Tag="FollowControl">
  81.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  82. </TabItem>
  83. <TabItem Header="客户跟进" Tag="FollowControl">
  84.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  85. </TabItem><local:AllRelatedListControl x:Name="allRelatedList" CustomerId="{Binding SelectedItem.Id, ElementName=grid}" />
  86. </Grid><hc:Divider
  87. <TabItem Header="客户跟进" Tag="FollowControl">
  88.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  89. </TabItem>Margin="0"
  90. <TabItem Header="客户跟进" Tag="FollowControl">
  91.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  92. </TabItem>LineStroke="{DynamicResource DarkPrimaryBrush}"
  93. <TabItem Header="客户跟进" Tag="FollowControl">
  94.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  95. </TabItem>LineStrokeThickness="2" />
  96. <Grid Margin="0,5,0,0" Background="{DynamicResource BackgroundBrush}">
  97. <TabItem Header="客户跟进" Tag="FollowControl">
  98.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  99. </TabItem>
  100. <TabItem Header="客户跟进" Tag="FollowControl">
  101.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  102. </TabItem><local:AllRelatedListControl x:Name="allRelatedList" CustomerId="{Binding SelectedItem.Id, ElementName=grid}" />
  103. </Grid><hc:Divider
  104. <TabItem Header="客户跟进" Tag="FollowControl">
  105.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  106. </TabItem>Margin="0"
  107. <TabItem Header="客户跟进" Tag="FollowControl">
  108.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  109. </TabItem>LineStroke="{DynamicResource DarkPrimaryBrush}"
  110. <TabItem Header="客户跟进" Tag="FollowControl">
  111.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  112. </TabItem>LineStrokeThickness="2" />
  113. <Grid Margin="0,5,0,0" Background="{DynamicResource BackgroundBrush}">
  114. <TabItem Header="客户跟进" Tag="FollowControl">
  115.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  116. </TabItem>
  117. <TabItem Header="客户跟进" Tag="FollowControl">
  118.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  119. </TabItem><local:AllRelatedListControl x:Name="allRelatedList" CustomerId="{Binding SelectedItem.Id, ElementName=grid}" />
  120. </Grid><hc:Divider
  121. <TabItem Header="客户跟进" Tag="FollowControl">
  122.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  123. </TabItem>Margin="0"
  124. <TabItem Header="客户跟进" Tag="FollowControl">
  125.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  126. </TabItem>LineStroke="{DynamicResource DarkPrimaryBrush}"
  127. <TabItem Header="客户跟进" Tag="FollowControl">
  128.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  129. </TabItem>LineStrokeThickness="2" />
  130. <Grid Margin="0,5,0,0" Background="{DynamicResource BackgroundBrush}">
  131. <TabItem Header="客户跟进" Tag="FollowControl">
  132.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  133. </TabItem>
  134. <TabItem Header="客户跟进" Tag="FollowControl">
  135.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  136. </TabItem><local:AllRelatedListControl x:Name="allRelatedList" CustomerId="{Binding SelectedItem.Id, ElementName=grid}" />
  137. </Grid><hc:Divider
  138. <TabItem Header="客户跟进" Tag="FollowControl">
  139.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  140. </TabItem>Margin="0"
  141. <TabItem Header="客户跟进" Tag="FollowControl">
  142.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  143. </TabItem>LineStroke="{DynamicResource DarkPrimaryBrush}"
  144. <TabItem Header="客户跟进" Tag="FollowControl">
  145.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  146. </TabItem>LineStrokeThickness="2" />
  147. <Grid Margin="0,5,0,0" Background="{DynamicResource BackgroundBrush}">
  148. <TabItem Header="客户跟进" Tag="FollowControl">
  149.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  150. </TabItem>
  151. <TabItem Header="客户跟进" Tag="FollowControl">
  152.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  153. </TabItem><local:AllRelatedListControl x:Name="allRelatedList" CustomerId="{Binding SelectedItem.Id, ElementName=grid}" />
  154. </Grid><hc:Divider
  155. <TabItem Header="客户跟进" Tag="FollowControl">
  156.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  157. </TabItem>Margin="0"
  158. <TabItem Header="客户跟进" Tag="FollowControl">
  159.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  160. </TabItem>LineStroke="{DynamicResource DarkPrimaryBrush}"
  161. <TabItem Header="客户跟进" Tag="FollowControl">
  162.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  163. </TabItem>LineStrokeThickness="2" />
  164. <Grid Margin="0,5,0,0" Background="{DynamicResource BackgroundBrush}">
  165. <TabItem Header="客户跟进" Tag="FollowControl">
  166.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  167. </TabItem>
  168. <TabItem Header="客户跟进" Tag="FollowControl">
  169.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  170. </TabItem><local:AllRelatedListControl x:Name="allRelatedList" CustomerId="{Binding SelectedItem.Id, ElementName=grid}" />
  171. </Grid><hc:Divider
  172. <TabItem Header="客户跟进" Tag="FollowControl">
  173.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  174. </TabItem>Margin="0"
  175. <TabItem Header="客户跟进" Tag="FollowControl">
  176.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  177. </TabItem>LineStroke="{DynamicResource DarkPrimaryBrush}"
  178. <TabItem Header="客户跟进" Tag="FollowControl">
  179.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  180. </TabItem>LineStrokeThickness="2" />
  181. <Grid Margin="0,5,0,0" Background="{DynamicResource BackgroundBrush}">
  182. <TabItem Header="客户跟进" Tag="FollowControl">
  183.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  184. </TabItem>
  185. <TabItem Header="客户跟进" Tag="FollowControl">
  186.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  187. </TabItem><local:AllRelatedListControl x:Name="allRelatedList" CustomerId="{Binding SelectedItem.Id, ElementName=grid}" />
  188. </Grid><hc:Divider
  189. <TabItem Header="客户跟进" Tag="FollowControl">
  190.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  191. </TabItem>Margin="0"
  192. <TabItem Header="客户跟进" Tag="FollowControl">
  193.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  194. </TabItem>LineStroke="{DynamicResource DarkPrimaryBrush}"
  195. <TabItem Header="客户跟进" Tag="FollowControl">
  196.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  197. </TabItem>LineStrokeThickness="2" />
  198. <Grid Margin="0,5,0,0" Background="{DynamicResource BackgroundBrush}">
  199. <TabItem Header="客户跟进" Tag="FollowControl">
  200.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  201. </TabItem>
  202. <TabItem Header="客户跟进" Tag="FollowControl">
  203.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  204. </TabItem><local:AllRelatedListControl x:Name="allRelatedList" CustomerId="{Binding SelectedItem.Id, ElementName=grid}" />
  205. </Grid><hc:Divider
  206. <TabItem Header="客户跟进" Tag="FollowControl">
  207.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  208. </TabItem>Margin="0"
  209. <TabItem Header="客户跟进" Tag="FollowControl">
  210.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  211. </TabItem>LineStroke="{DynamicResource DarkPrimaryBrush}"
  212. <TabItem Header="客户跟进" Tag="FollowControl">
  213.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  214. </TabItem>LineStrokeThickness="2" />
  215. <Grid Margin="0,5,0,0" Background="{DynamicResource BackgroundBrush}">
  216. <TabItem Header="客户跟进" Tag="FollowControl">
  217.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  218. </TabItem>
  219. <TabItem Header="客户跟进" Tag="FollowControl">
  220.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  221. </TabItem><local:AllRelatedListControl x:Name="allRelatedList" CustomerId="{Binding SelectedItem.Id, ElementName=grid}" />
  222. </Grid><hc:Divider
  223. <TabItem Header="客户跟进" Tag="FollowControl">
  224.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  225. </TabItem>Margin="0"
  226. <TabItem Header="客户跟进" Tag="FollowControl">
  227.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  228. </TabItem>LineStroke="{DynamicResource DarkPrimaryBrush}"
  229. <TabItem Header="客户跟进" Tag="FollowControl">
  230.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  231. </TabItem>LineStrokeThickness="2" />
  232. <Grid Margin="0,5,0,0" Background="{DynamicResource BackgroundBrush}">
  233. <TabItem Header="客户跟进" Tag="FollowControl">
  234.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  235. </TabItem>
  236. <TabItem Header="客户跟进" Tag="FollowControl">
  237.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  238. </TabItem><local:AllRelatedListControl x:Name="allRelatedList" CustomerId="{Binding SelectedItem.Id, ElementName=grid}" />
  239. </Grid><hc:Divider
  240. <TabItem Header="客户跟进" Tag="FollowControl">
  241.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  242. </TabItem>Margin="0"
  243. <TabItem Header="客户跟进" Tag="FollowControl">
  244.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  245. </TabItem>LineStroke="{DynamicResource DarkPrimaryBrush}"
  246. <TabItem Header="客户跟进" Tag="FollowControl">
  247.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  248. </TabItem>LineStrokeThickness="2" />
  249. <Grid Margin="0,5,0,0" Background="{DynamicResource BackgroundBrush}">
  250. <TabItem Header="客户跟进" Tag="FollowControl">
  251.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  252. </TabItem>
  253. <TabItem Header="客户跟进" Tag="FollowControl">
  254.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  255. </TabItem><local:AllRelatedListControl x:Name="allRelatedList" CustomerId="{Binding SelectedItem.Id, ElementName=grid}" />
  256. </Grid><hc:Divider
  257. <TabItem Header="客户跟进" Tag="FollowControl">
  258.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  259. </TabItem>Margin="0"
  260. <TabItem Header="客户跟进" Tag="FollowControl">
  261.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  262. </TabItem>LineStroke="{DynamicResource DarkPrimaryBrush}"
  263. <TabItem Header="客户跟进" Tag="FollowControl">
  264.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  265. </TabItem>LineStrokeThickness="2" />
  266. <Grid Margin="0,5,0,0" Background="{DynamicResource BackgroundBrush}">
  267. <TabItem Header="客户跟进" Tag="FollowControl">
  268.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  269. </TabItem>
  270. <TabItem Header="客户跟进" Tag="FollowControl">
  271.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  272. </TabItem><local:AllRelatedListControl x:Name="allRelatedList" CustomerId="{Binding SelectedItem.Id, ElementName=grid}" />
  273. </Grid><hc:Divider
  274. <TabItem Header="客户跟进" Tag="FollowControl">
  275.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  276. </TabItem>Margin="0"
  277. <TabItem Header="客户跟进" Tag="FollowControl">
  278.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  279. </TabItem>LineStroke="{DynamicResource DarkPrimaryBrush}"
  280. <TabItem Header="客户跟进" Tag="FollowControl">
  281.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  282. </TabItem>LineStrokeThickness="2" />
  283. <Grid Margin="0,5,0,0" Background="{DynamicResource BackgroundBrush}">
  284. <TabItem Header="客户跟进" Tag="FollowControl">
  285.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  286. </TabItem>
  287. <TabItem Header="客户跟进" Tag="FollowControl">
  288.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  289. </TabItem><local:AllRelatedListControl x:Name="allRelatedList" CustomerId="{Binding SelectedItem.Id, ElementName=grid}" />
  290. </Grid><hc:Divider
  291. <TabItem Header="客户跟进" Tag="FollowControl">
  292.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  293. </TabItem>Margin="0"
  294. <TabItem Header="客户跟进" Tag="FollowControl">
  295.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  296. </TabItem>LineStroke="{DynamicResource DarkPrimaryBrush}"
  297. <TabItem Header="客户跟进" Tag="FollowControl">
  298.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  299. </TabItem>LineStrokeThickness="2" />
  300. <Grid Margin="0,5,0,0" Background="{DynamicResource BackgroundBrush}">
  301. <TabItem Header="客户跟进" Tag="FollowControl">
  302.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  303. </TabItem>
  304. <TabItem Header="客户跟进" Tag="FollowControl">
  305.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  306. </TabItem><local:AllRelatedListControl x:Name="allRelatedList" CustomerId="{Binding SelectedItem.Id, ElementName=grid}" />
  307. </Grid><hc:Divider
  308. <TabItem Header="客户跟进" Tag="FollowControl">
  309.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  310. </TabItem>Margin="0"
  311. <TabItem Header="客户跟进" Tag="FollowControl">
  312.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  313. </TabItem>LineStroke="{DynamicResource DarkPrimaryBrush}"
  314. <TabItem Header="客户跟进" Tag="FollowControl">
  315.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  316. </TabItem>LineStrokeThickness="2" />
  317. <Grid Margin="0,5,0,0" Background="{DynamicResource BackgroundBrush}">
  318. <TabItem Header="客户跟进" Tag="FollowControl">
  319.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  320. </TabItem>
  321. <TabItem Header="客户跟进" Tag="FollowControl">
  322.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  323. </TabItem><local:AllRelatedListControl x:Name="allRelatedList" CustomerId="{Binding SelectedItem.Id, ElementName=grid}" />
  324. </Grid><hc:Divider
  325. <TabItem Header="客户跟进" Tag="FollowControl">
  326.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  327. </TabItem>Margin="0"
  328. <TabItem Header="客户跟进" Tag="FollowControl">
  329.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  330. </TabItem>LineStroke="{DynamicResource DarkPrimaryBrush}"
  331. <TabItem Header="客户跟进" Tag="FollowControl">
  332.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  333. </TabItem>LineStrokeThickness="2" />
  334. <Grid Margin="0,5,0,0" Background="{DynamicResource BackgroundBrush}">
  335. <TabItem Header="客户跟进" Tag="FollowControl">
  336.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  337. </TabItem>
  338. <TabItem Header="客户跟进" Tag="FollowControl">
  339.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  340. </TabItem><local:AllRelatedListControl x:Name="allRelatedList" CustomerId="{Binding SelectedItem.Id, ElementName=grid}" />
  341. </Grid><hc:Divider
  342. <TabItem Header="客户跟进" Tag="FollowControl">
  343.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  344. </TabItem>Margin="0"
  345. <TabItem Header="客户跟进" Tag="FollowControl">
  346.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  347. </TabItem>LineStroke="{DynamicResource DarkPrimaryBrush}"
  348. <TabItem Header="客户跟进" Tag="FollowControl">
  349.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  350. </TabItem>LineStrokeThickness="2" />
  351. <Grid Margin="0,5,0,0" Background="{DynamicResource BackgroundBrush}">
  352. <TabItem Header="客户跟进" Tag="FollowControl">
  353.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  354. </TabItem>
  355. <TabItem Header="客户跟进" Tag="FollowControl">
  356.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  357. </TabItem><local:AllRelatedListControl x:Name="allRelatedList" CustomerId="{Binding SelectedItem.Id, ElementName=grid}" />
  358. </Grid><hc:Divider
  359. <TabItem Header="客户跟进" Tag="FollowControl">
  360.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  361. </TabItem>Margin="0"
  362. <TabItem Header="客户跟进" Tag="FollowControl">
  363.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  364. </TabItem>LineStroke="{DynamicResource DarkPrimaryBrush}"
  365. <TabItem Header="客户跟进" Tag="FollowControl">
  366.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  367. </TabItem>LineStrokeThickness="2" />
  368. <Grid Margin="0,5,0,0" Background="{DynamicResource BackgroundBrush}">
  369. <TabItem Header="客户跟进" Tag="FollowControl">
  370.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  371. </TabItem>
  372. <TabItem Header="客户跟进" Tag="FollowControl">
  373.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  374. </TabItem><local:AllRelatedListControl x:Name="allRelatedList" CustomerId="{Binding SelectedItem.Id, ElementName=grid}" />
  375. </Grid><hc:Divider
  376. <TabItem Header="客户跟进" Tag="FollowControl">
  377.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  378. </TabItem>Margin="0"
  379. <TabItem Header="客户跟进" Tag="FollowControl">
  380.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  381. </TabItem>LineStroke="{DynamicResource DarkPrimaryBrush}"
  382. <TabItem Header="客户跟进" Tag="FollowControl">
  383.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  384. </TabItem>LineStrokeThickness="2" />
  385. <Grid Margin="0,5,0,0" Background="{DynamicResource BackgroundBrush}">
  386. <TabItem Header="客户跟进" Tag="FollowControl">
  387.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  388. </TabItem>
  389. <TabItem Header="客户跟进" Tag="FollowControl">
  390.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  391. </TabItem><local:AllRelatedListControl x:Name="allRelatedList" CustomerId="{Binding SelectedItem.Id, ElementName=grid}" />
  392. </Grid><hc:Divider
  393. <TabItem Header="客户跟进" Tag="FollowControl">
  394.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  395. </TabItem>Margin="0"
  396. <TabItem Header="客户跟进" Tag="FollowControl">
  397.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  398. </TabItem>LineStroke="{DynamicResource DarkPrimaryBrush}"
  399. <TabItem Header="客户跟进" Tag="FollowControl">
  400.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  401. </TabItem>LineStrokeThickness="2" />
  402. <Grid Margin="0,5,0,0" Background="{DynamicResource BackgroundBrush}">
  403. <TabItem Header="客户跟进" Tag="FollowControl">
  404.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  405. </TabItem>
  406. <TabItem Header="客户跟进" Tag="FollowControl">
  407.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  408. </TabItem><local:AllRelatedListControl x:Name="allRelatedList" CustomerId="{Binding SelectedItem.Id, ElementName=grid}" />
  409. </Grid><hc:Divider
  410. <TabItem Header="客户跟进" Tag="FollowControl">
  411.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  412. </TabItem>Margin="0"
  413. <TabItem Header="客户跟进" Tag="FollowControl">
  414.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  415. </TabItem>LineStroke="{DynamicResource DarkPrimaryBrush}"
  416. <TabItem Header="客户跟进" Tag="FollowControl">
  417.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  418. </TabItem>LineStrokeThickness="2" />
  419. <Grid Margin="0,5,0,0" Background="{DynamicResource BackgroundBrush}">
  420. <TabItem Header="客户跟进" Tag="FollowControl">
  421.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  422. </TabItem>
  423. <TabItem Header="客户跟进" Tag="FollowControl">
  424.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  425. </TabItem><local:AllRelatedListControl x:Name="allRelatedList" CustomerId="{Binding SelectedItem.Id, ElementName=grid}" />
  426. </Grid><hc:Divider
  427. <TabItem Header="客户跟进" Tag="FollowControl">
  428.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  429. </TabItem>Margin="0"
  430. <TabItem Header="客户跟进" Tag="FollowControl">
  431.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  432. </TabItem>LineStroke="{DynamicResource DarkPrimaryBrush}"
  433. <TabItem Header="客户跟进" Tag="FollowControl">
  434.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  435. </TabItem>LineStrokeThickness="2" />
  436. <Grid Margin="0,5,0,0" Background="{DynamicResource BackgroundBrush}">
  437. <TabItem Header="客户跟进" Tag="FollowControl">
  438.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  439. </TabItem>
  440. <TabItem Header="客户跟进" Tag="FollowControl">
  441.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  442. </TabItem><local:AllRelatedListControl x:Name="allRelatedList" CustomerId="{Binding SelectedItem.Id, ElementName=grid}" />
  443. </Grid><hc:Divider
  444. <TabItem Header="客户跟进" Tag="FollowControl">
  445.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  446. </TabItem>Margin="0"
  447. <TabItem Header="客户跟进" Tag="FollowControl">
  448.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  449. </TabItem>LineStroke="{DynamicResource DarkPrimaryBrush}"
  450. <TabItem Header="客户跟进" Tag="FollowControl">
  451.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  452. </TabItem>LineStrokeThickness="2" />
  453. <Grid Margin="0,5,0,0" Background="{DynamicResource BackgroundBrush}">
  454. <TabItem Header="客户跟进" Tag="FollowControl">
  455.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  456. </TabItem>
  457. <TabItem Header="客户跟进" Tag="FollowControl">
  458.     <local:FollowListControl <strong>CustomerId</strong>="{Binding <strong>CustomerId</strong>, ElementName=allList}" />
  459. </TabItem><local:AllRelatedListControl x:Name="allRelatedList" CustomerId="{Binding SelectedItem.Id, ElementName=grid}" />
  460. </Grid>
复制代码
可以看到这部分的代码,和我们生成的编辑界面的内容是相似的,只是进行了适量的裁剪处理,以及增加一些自定义控件,统一界面效果(如附件控件的展示)。
 
以上就是两种不同方式,动态构建不同的内容展示的处理,动态内容可以带来很好的处理便利,不过也不要滥用,比较反射太多还是会牺牲一些UI的性能,不过总体来说肯定是值得的,而且这也是一种UI的处理模式。

来源:https://www.cnblogs.com/wuhuacong/archive/2023/11/30/17866762.html
免责声明:由于采集信息均来自互联网,如果侵犯了您的权益,请联系我们【E-Mail:cb@itdo.tech】 我们会及时删除侵权内容,谢谢合作!

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

x

举报 回复 使用道具