FinanceSample.xaml
上传用户:szled88
上传日期:2015-04-09
资源大小:43957k
文件大小:13k
源码类别:

对话框与窗口

开发平台:

Visual C++

  1. <ScrollViewer xmlns='http://schemas.microsoft.com/winfx/2006/xaml/presentation' xmlns:x='http://schemas.microsoft.com/winfx/2006/xaml'>
  2. <Grid TextElement.FontSize="13" VerticalAlignment="Top" Margin="5">
  3. <Grid.ColumnDefinitions >
  4. <ColumnDefinition Width="2*"/>
  5. <ColumnDefinition Width="3*"/>
  6. <ColumnDefinition Width="2*"/>
  7. </Grid.ColumnDefinitions>
  8. <Grid.RowDefinitions>
  9. <RowDefinition Height="Auto"/>
  10. <RowDefinition/>
  11. </Grid.RowDefinitions>
  12. <StackPanel Margin="5, 5, 5, 5">
  13. <TextBlock Background="#e5ecf9" Padding="7"  FontSize="17" FontWeight="Bold">
  14. Recent quotes | <Hyperlink>Portfolios</Hyperlink>
  15. </TextBlock>
  16. <Grid  Margin="5">
  17. <Grid.ColumnDefinitions>
  18. <ColumnDefinition Width="*"/>
  19. <ColumnDefinition Width="*"/>
  20. <ColumnDefinition Width="2.5*"/>
  21. <ColumnDefinition Width="1.5*"/>
  22. </Grid.ColumnDefinitions>
  23. <StackPanel>
  24. <TextBlock Foreground="Gray" Text="Symbol"/>
  25. <TextBlock>
  26. <Hyperlink>CSCO</Hyperlink>
  27. </TextBlock>
  28. <TextBlock>
  29. <Hyperlink>EWJ</Hyperlink>
  30. </TextBlock>
  31. <TextBlock>
  32. <Hyperlink>F</Hyperlink>
  33. </TextBlock>
  34. <TextBlock>
  35. <Hyperlink>INTC</Hyperlink>
  36. </TextBlock>
  37. <TextBlock>
  38. <Hyperlink>IWM</Hyperlink>
  39. </TextBlock>
  40. <TextBlock>
  41. <Hyperlink>JPM</Hyperlink>
  42. </TextBlock>
  43. <TextBlock>
  44. <Hyperlink>MSFT</Hyperlink>
  45. </TextBlock>
  46. <TextBlock>
  47. <Hyperlink>SPY</Hyperlink>
  48. </TextBlock>
  49. </StackPanel>
  50. <StackPanel Grid.Column = "1">
  51. <TextBlock Foreground="Gray" TextAlignment="Right"  Text="Price"/>
  52. <TextBlock TextAlignment="Right"  Text="28.54"/>
  53. <TextBlock TextAlignment="Right"  Text="13.50"/>
  54. <TextBlock TextAlignment="Right"  Text="7.04"/>
  55. <TextBlock TextAlignment="Right"  Text="24.95"/>
  56. <TextBlock TextAlignment="Right"  Text="73.37"/>
  57. <TextBlock TextAlignment="Right"  Text="40.34"/>
  58. <TextBlock TextAlignment="Right"  Text="34.43"/>
  59. <TextBlock TextAlignment="Right"  Text="142.36"/>
  60. </StackPanel>
  61. <Border Grid.Column = "2" Padding = "0, 0, 0, 0">
  62. <StackPanel>
  63. <TextBlock Foreground="Gray" TextAlignment="Right" Text="Change"/>
  64. <TextBlock TextAlignment="Right" Foreground="Brown" Text="-0.82 (-2.79%)"/>
  65. <TextBlock TextAlignment="Right" Foreground="Green" Text="+0.26 (1.97%)"/>
  66. <TextBlock TextAlignment="Right" Foreground="Brown" Text="-0.28 (-3.81%)"/>
  67. <TextBlock TextAlignment="Right" Foreground="Brown" Text="-0.23 (-0.91%)"/>
  68. <TextBlock TextAlignment="Right" Foreground="Brown" Text="-1.08 (-1.45%) "/>
  69. <TextBlock TextAlignment="Right" Foreground="Brown" Text="-0.90 (-2.18%) "/>
  70. <TextBlock TextAlignment="Right" Foreground="Green" Text="+0.45 (1.33%)"/>
  71. <TextBlock TextAlignment="Right" Foreground="Brown" Text="-1.44 (-1.00%) "/>
  72. </StackPanel>
  73. </Border>
  74. <StackPanel Grid.Column = "3">
  75. <TextBlock Foreground="Gray" TextAlignment="Right" Text="Mkt Cap"/>
  76. <TextBlock TextAlignment="Right"  Text="174.07B "/>
  77. <TextBlock TextAlignment="Right"  Text="10.93B"/>
  78. <TextBlock TextAlignment="Right"  Text="14.86B"/>
  79. <TextBlock TextAlignment="Right"  Text="145.88B"/>
  80. <TextBlock TextAlignment="Right"  Text="10.09B"/>
  81. <TextBlock TextAlignment="Right"  Text="135.50B"/>
  82. <TextBlock TextAlignment="Right"  Text="322.11B"/>
  83. <TextBlock TextAlignment="Right"  Text="61.39B "/>
  84. </StackPanel>
  85. </Grid>
  86. </StackPanel>
  87. <StackPanel Margin="5, 5, 5, 5" Grid.Column="1">
  88. <TextBlock Background="#e5ecf9" Padding="7"  FontSize="17" FontWeight="Bold">Related news</TextBlock>
  89. <StackPanel  Margin="5">
  90. <TextBlock TextWrapping="Wrap">
  91. <Hyperlink>Ford: Al Ver to retire as head of ACH; Connelly to succeed Ver to Retire </Hyperlink>
  92. </TextBlock>
  93. <TextBlock TextWrapping="Wrap">CNNMoney.com - 23 minutes ago</TextBlock>
  94. <TextBlock TextWrapping="Wrap">
  95. <Hyperlink>UPDATE 1-Callidus shares down after CEO hired by Microsoft </Hyperlink>
  96. </TextBlock>
  97. <TextBlock TextWrapping="Wrap">
  98. Reuters - 1 hour ago - <Hyperlink Foreground="Green">related articles &#xBB; </Hyperlink>
  99. </TextBlock>
  100. <TextBlock TextWrapping="Wrap">
  101. <Hyperlink>Ford Workers Strike in Russia </Hyperlink>
  102. </TextBlock>
  103. <TextBlock TextWrapping="Wrap">
  104. Forbes - 2 hours ago - <Hyperlink Foreground="Green">related articles &#xBB; </Hyperlink>
  105. </TextBlock>
  106. <TextBlock TextWrapping="Wrap">
  107. <Hyperlink>Citigroup's `Sells,' SABMiller's Bid, Gasoline's Rise: Timshel  </Hyperlink>
  108. </TextBlock>
  109. <TextBlock TextWrapping="Wrap">Bloomberg - 3 hours ago </TextBlock>
  110. <TextBlock TextWrapping="Wrap">
  111. <Hyperlink>Regulators Clear Cisco's Navini Purchase  </Hyperlink>
  112. </TextBlock>
  113. <TextBlock TextWrapping="Wrap">
  114. Forbes - 3 hours ago - <Hyperlink Foreground="Green">related articles &#xBB; </Hyperlink>
  115. </TextBlock>
  116. <TextBlock TextWrapping="Wrap">
  117. <Hyperlink>India's Mahindra Confirms Bid For Ford's Jaguar and Land Rover  </Hyperlink>
  118. </TextBlock>
  119. <TextBlock>
  120. Wall Street Journal - 6 hours ago - <Hyperlink Foreground="Green">related articles &#xBB; </Hyperlink>
  121. </TextBlock>
  122. <TextBlock TextWrapping="Wrap">
  123. <Hyperlink>More Advisers Moving Clients Into ETFs  </Hyperlink>
  124. </TextBlock>
  125. <TextBlock TextWrapping="Wrap">
  126. CNNMoney.com - 18 hours ago - <Hyperlink Foreground="Green">related articles &#xBB; </Hyperlink>
  127. </TextBlock>
  128. <TextBlock TextWrapping="Wrap">
  129. <Hyperlink>UPDATE:JPM Won't Raise Interest Rates When Credit Scores Drop </Hyperlink>
  130. </TextBlock>
  131. <TextBlock TextWrapping="Wrap">
  132. CNNMoney.com - 23 hours ago - <Hyperlink Foreground="Green">related articles &#xBB; </Hyperlink>
  133. </TextBlock>
  134. </StackPanel>
  135. </StackPanel>
  136. <StackPanel Margin="5, 5, 5, 5" Grid.Column="2">
  137. <TextBlock Background="#e5ecf9" Padding="7"  FontSize="17" FontWeight="Bold">Market summary</TextBlock>
  138. <StackPanel  Margin="5">
  139. <Grid >
  140. <Grid.ColumnDefinitions>
  141. <ColumnDefinition Width="*"/>
  142. <ColumnDefinition Width="*"/>
  143. <ColumnDefinition Width="*"/>
  144. <ColumnDefinition Width="*"/>
  145. </Grid.ColumnDefinitions>
  146. <StackPanel>
  147. <TextBlock>
  148. <Hyperlink>Dow</Hyperlink>
  149. </TextBlock>
  150. <TextBlock>
  151. <Hyperlink>Nasdaq</Hyperlink>
  152. </TextBlock>
  153. <TextBlock>
  154. <Hyperlink Tag="SP">S &amp; P 500</Hyperlink>
  155. </TextBlock>
  156. </StackPanel>
  157. <StackPanel Grid.Column = "1">
  158. <TextBlock TextAlignment="Right"  Text="12,881.38"/>
  159. <TextBlock TextAlignment="Right"  Text="2,559.57"/>
  160. <TextBlock TextAlignment="Right"  Text="1,423.43"/>
  161. </StackPanel>
  162. <StackPanel Grid.Column = "2" TextBlock.Foreground="Brown">
  163. <TextBlock TextAlignment="Right"  Text="-77.06"/>
  164. <TextBlock TextAlignment="Right"  Text="-34.16"/>
  165. <TextBlock TextAlignment="Right"  Text="-9.72"/>
  166. </StackPanel>
  167. <StackPanel Grid.Column = "3">
  168. <TextBlock TextAlignment="Right"  Text="(-0.76%)"/>
  169. <TextBlock TextAlignment="Right"  Text="(-1.38%)"/>
  170. <TextBlock TextAlignment="Right"  Text="(-0.84%)"/>
  171. </StackPanel>
  172. </Grid>
  173. </StackPanel>
  174. </StackPanel>
  175. <StackPanel Grid.Row = "1" Margin="5, 5, 5, 5">
  176. <TextBlock Background="#e5ecf9" Padding="7"  FontSize="17" FontWeight="Bold">
  177. Top Movers
  178. </TextBlock>
  179. </StackPanel>
  180. <StackPanel Grid.Row = "1" Grid.Column="1" Margin="5, 5, 5, 5">
  181. <TextBlock Background="#e5ecf9" Padding="7"  FontSize="17" FontWeight="Bold">
  182. Today's news
  183. </TextBlock>
  184. <StackPanel  Margin="5">
  185. <TextBlock TextWrapping="Wrap">
  186. <Hyperlink>Gas Prices Spur Consumer Inflation </Hyperlink>
  187. </TextBlock>
  188. <TextBlock TextWrapping="Wrap">MSN Money - 2 hours ago - <Hyperlink Foreground="Green">related articles &#xBB; </Hyperlink></TextBlock>
  189. <TextBlock TextWrapping="Wrap">
  190. <Hyperlink>Getting Wii-desperate? Try taking a rain check</Hyperlink>
  191. </TextBlock>
  192. <TextBlock TextWrapping="Wrap">San Jose Mercury News - 1 hour ago -  <Hyperlink Foreground="Green">related articles &#xBB; </Hyperlink></TextBlock>
  193. <TextBlock TextWrapping="Wrap">
  194. <Hyperlink>Citigroup puts SIVs on balance sheet </Hyperlink>
  195. </TextBlock>
  196. <TextBlock TextWrapping="Wrap">CNNMoney.com - 2 hours ago - <Hyperlink Foreground="Green">related articles &#xBB; </Hyperlink></TextBlock>
  197. <TextBlock TextWrapping="Wrap">
  198. <Hyperlink>Black &amp; Decker Gets Drilled </Hyperlink>
  199. </TextBlock>
  200. <TextBlock TextWrapping="Wrap">BusinessWeek - 8 hours ago - <Hyperlink Foreground="Green">related articles &#xBB; </Hyperlink></TextBlock>
  201. </StackPanel>
  202. </StackPanel>
  203. <StackPanel Grid.Row = "1" Grid.Column="2" Margin="5, 5, 5, 5">
  204. <TextBlock Background="#e5ecf9" Padding="7"  FontSize="17" FontWeight="Bold">
  205. Sector summary  - <Hyperlink FontSize="14" FontWeight="Normal">what's this? </Hyperlink>
  206. </TextBlock>
  207. <StackPanel  Margin="5">
  208. <Grid >
  209. <Grid.ColumnDefinitions>
  210. <ColumnDefinition Width="Auto"/>
  211. <ColumnDefinition Width="Auto"/>
  212. <ColumnDefinition Width="*"/>
  213. </Grid.ColumnDefinitions>
  214. <Grid.RowDefinitions>
  215. <RowDefinition/>
  216. <RowDefinition/>
  217. <RowDefinition/>
  218. <RowDefinition/>
  219. <RowDefinition/>
  220. <RowDefinition/>
  221. </Grid.RowDefinitions>
  222. <TextBlock Foreground="Gray" Grid.Column="0" TextAlignment="Left" Text="Sector" Margin="0, 0, 0, 4"/>
  223. <TextBlock Foreground="Gray" Grid.Column="1"  TextAlignment="Right" Text="Change" Margin="0, 0, 0, 4"/>
  224. <TextBlock Foreground="Gray" Grid.Column="2"  TextAlignment="Right" Text="% down / up" Margin="0, 0, 0, 4"/>
  225. <TextBlock Grid.Row="1" Margin="0, 0, 10, 0">
  226. <Hyperlink>Basic Materials</Hyperlink>
  227. </TextBlock>
  228. <TextBlock Grid.Row="2" Margin="0, 0, 10, 0">
  229. <Hyperlink>Capital Goods</Hyperlink>
  230. </TextBlock>
  231. <TextBlock Grid.Row="3" Margin="0, 0, 10, 0">
  232. <Hyperlink Tag="SP">Conglomerates</Hyperlink>
  233. </TextBlock>
  234. <TextBlock Grid.Row="4" Margin="0, 0, 10, 0">
  235. <Hyperlink Tag="SP">Cons. Cyclical</Hyperlink>
  236. </TextBlock>
  237. <TextBlock Grid.Row="5" Margin="0, 0, 10, 0">
  238. <Hyperlink Tag="SP">Cons. Non-Cyclical</Hyperlink>
  239. </TextBlock>
  240. <TextBlock Grid.Column="1" Grid.Row="1" TextAlignment="Right" Foreground="Brown"  Text="-2.71%"/>
  241. <TextBlock Grid.Column="1" Grid.Row="2" TextAlignment="Right" Foreground="Brown"  Text="-1.51%"/>
  242. <TextBlock Grid.Column="1" Grid.Row="3" TextAlignment="Right" Foreground="Brown"  Text="-1.68%"/>
  243. <TextBlock Grid.Column="1" Grid.Row="4" TextAlignment="Right" Foreground="Brown"  Text="-2.62%"/>
  244. <TextBlock Grid.Column="1" Grid.Row="5" TextAlignment="Right" Foreground="Brown"  Text="-1.11%"/>
  245. <Grid Grid.Column="2" Grid.Row="1" Margin="8, 2, 0, 2">
  246. <Grid.ColumnDefinitions>
  247. <ColumnDefinition Width="5*"/>
  248. <ColumnDefinition Width="20*"/>
  249. <ColumnDefinition Width="75*"/>
  250. <ColumnDefinition Width="20*"/>
  251. <ColumnDefinition Width="60*"/>
  252. <ColumnDefinition Width="20*"/>
  253. </Grid.ColumnDefinitions>
  254. <Rectangle Grid.Column="1" Fill="#b73b3b"/><Rectangle Grid.Column="2" Fill="#ffcebe"/>
  255. <Rectangle Grid.Column="3" Fill="#acf4ac"/><Rectangle Grid.Column="4" Fill="#2cc42c"/>
  256. </Grid>
  257. <Grid Grid.Column="2" Grid.Row="2" Margin="8, 2, 0, 2">
  258. <Grid.ColumnDefinitions>
  259. <ColumnDefinition Width="10*"/>
  260. <ColumnDefinition Width="30*"/>
  261. <ColumnDefinition Width="60*"/>
  262. <ColumnDefinition Width="30*"/>
  263. <ColumnDefinition Width="65*"/>
  264. <ColumnDefinition Width="5*"/>
  265. </Grid.ColumnDefinitions>
  266. <Rectangle Grid.Column="1" Fill="#b73b3b"/><Rectangle Grid.Column="2" Fill="#ffcebe"/>
  267. <Rectangle Grid.Column="3" Fill="#acf4ac"/><Rectangle Grid.Column="4" Fill="#2cc42c"/>
  268. </Grid>
  269. <Grid Grid.Column="2" Grid.Row="3" Margin="8, 2, 0, 2">
  270. <Grid.ColumnDefinitions>
  271. <ColumnDefinition Width="0*"/>
  272. <ColumnDefinition Width="50*"/>
  273. <ColumnDefinition Width="50*"/>
  274. <ColumnDefinition Width="60*"/>
  275. <ColumnDefinition Width="40*"/>
  276. <ColumnDefinition Width="0*"/>
  277. </Grid.ColumnDefinitions>
  278. <Rectangle Grid.Column="1" Fill="#b73b3b"/><Rectangle Grid.Column="2" Fill="#ffcebe"/>
  279. <Rectangle Grid.Column="3" Fill="#acf4ac"/><Rectangle Grid.Column="4" Fill="#2cc42c"/>
  280. </Grid>
  281. <Grid Grid.Column="2" Grid.Row="4" Margin="8, 2, 0, 2">
  282. <Grid.ColumnDefinitions>
  283. <ColumnDefinition Width="20*"/>
  284. <ColumnDefinition Width="30*"/>
  285. <ColumnDefinition Width="50*"/>
  286. <ColumnDefinition Width="40*"/>
  287. <ColumnDefinition Width="50*"/>
  288. <ColumnDefinition Width="10*"/>
  289. </Grid.ColumnDefinitions>
  290. <Rectangle Grid.Column="1" Fill="#b73b3b"/><Rectangle Grid.Column="2" Fill="#ffcebe"/>
  291. <Rectangle Grid.Column="3" Fill="#acf4ac"/><Rectangle Grid.Column="4" Fill="#2cc42c"/>
  292. </Grid>
  293. <Grid Grid.Column="2" Grid.Row="5" Margin="8, 2, 0, 2">
  294. <Grid.ColumnDefinitions>
  295. <ColumnDefinition Width="5*"/>
  296. <ColumnDefinition Width="50*"/>
  297. <ColumnDefinition Width="45*"/>
  298. <ColumnDefinition Width="30*"/>
  299. <ColumnDefinition Width="30*"/>
  300. <ColumnDefinition Width="40*"/>
  301. </Grid.ColumnDefinitions>
  302. <Rectangle Grid.Column="1" Fill="#b73b3b"/><Rectangle Grid.Column="2" Fill="#ffcebe"/>
  303. <Rectangle Grid.Column="3" Fill="#acf4ac"/><Rectangle Grid.Column="4" Fill="#2cc42c"/>
  304. </Grid>
  305. </Grid>
  306. </StackPanel>
  307. </StackPanel>
  308. </Grid>
  309. </ScrollViewer>