MainWindow.xaml 33 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613
  1. <fluent:RibbonWindow x:Class="PRSDesktop.MainWindow"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  5. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  6. xmlns:local="clr-namespace:PRSDesktop"
  7. mc:Ignorable="d"
  8. xmlns:syncfusion="http://schemas.syncfusion.com/wpf"
  9. xmlns:themes="clr-namespace:InABox.WPF.Themes;assembly=InABox.Wpf"
  10. xmlns:fluent="urn:fluent-ribbon"
  11. xmlns:svgc="http://sharpvectors.codeplex.com/svgc/"
  12. Title="PRS Desktop"
  13. Height="900" Width="1200" Left="100" Top="100"
  14. WindowStartupLocation="CenterScreen"
  15. WindowState="Maximized"
  16. HorizontalContentAlignment="Stretch"
  17. VerticalContentAlignment="Stretch"
  18. Loaded="Window_Loaded"
  19. Unloaded="Window_Unloaded"
  20. Closing="Window_Closing"
  21. Closed="RibbonWindow_Closed"
  22. PreviewMouseUp="RibbonWindow_PreviewMouseUp"
  23. PreviewKeyUp="RibbonWindow_PreviewKeyUp"
  24. Activated="RibbonWindow_Activated"
  25. Background="{Binding Path=(themes:ThemeManager.WorkspaceBackgroundBrush)}"
  26. Foreground="{Binding Path=(themes:ThemeManager.WorkspaceForegroundBrush)}"
  27. TitleBackground="{Binding Path=(themes:ThemeManager.WorkspaceBackgroundBrush)}"
  28. TitleForeground="{Binding Path=(themes:ThemeManager.WorkspaceForegroundBrush)}"
  29. NonActiveBorderBrush="{Binding Path=(themes:ThemeManager.BackstageBackgroundBrush)}"
  30. >
  31. <!-- GlowBrush="{Binding Path=(themes:ThemeManager.BackstageBackgroundBrush)}" -->
  32. <!-- NonActiveGlowBrush="{Binding Path=(themes:ThemeManager.WorkspaceBackgroundBrush)}" -->
  33. <fluent:RibbonWindow.Resources>
  34. <!-- <ResourceDictionary> -->
  35. <SolidColorBrush x:Key="Fluent.Ribbon.Brushes.Backstage.BackButton.Background"
  36. Color="{Binding Path=(themes:ThemeManager.BackstageBackgroundColor)}" />
  37. <SolidColorBrush x:Key="Fluent.Ribbon.Brushes.Backstage.BackButton.Foreground"
  38. Color="{Binding Path=(themes:ThemeManager.BackstageForegroundColor)}" />
  39. <ControlTemplate x:Key="VerticalSplitter">
  40. <Grid Background="{TemplateBinding Background}" Width="4">
  41. <Button x:Name="PART_Left" Visibility="Collapsed" />
  42. <Button x:Name="PART_Right" Visibility="Collapsed" />
  43. <StackPanel Margin="0" Orientation="Vertical" VerticalAlignment="Center"
  44. HorizontalAlignment="Center">
  45. <Ellipse Fill="Silver" HorizontalAlignment="Center" Height="2" Width="2" Opacity="1"
  46. Margin="0,2,0,0" />
  47. <Ellipse Fill="Silver" HorizontalAlignment="Center" Height="2" Width="2" Opacity="1"
  48. Margin="0,2,0,0" />
  49. <Ellipse Fill="Silver" HorizontalAlignment="Center" Height="2" Width="2" Opacity="1"
  50. Margin="0,2,0,0" />
  51. <Ellipse Fill="Silver" HorizontalAlignment="Center" Height="2" Width="2" Opacity="1"
  52. Margin="0,2,0,0" />
  53. <Ellipse Fill="Silver" HorizontalAlignment="Center" Height="2" Width="2" Opacity="1"
  54. Margin="0,2,0,0" />
  55. <Ellipse Fill="Silver" HorizontalAlignment="Center" Height="2" Width="2" Opacity="1"
  56. Margin="0,2,0,0" />
  57. <Ellipse Fill="Silver" HorizontalAlignment="Center" Height="2" Width="2" Opacity="1"
  58. Margin="0,2,0,0" />
  59. </StackPanel>
  60. </Grid>
  61. </ControlTemplate>
  62. <!-- </ResourceDictionary> -->
  63. </fluent:RibbonWindow.Resources>
  64. <Grid x:Name="_mainScreen">
  65. <Grid.ColumnDefinitions>
  66. <ColumnDefinition Width="*" />
  67. <ColumnDefinition Width="Auto" />
  68. </Grid.ColumnDefinitions>
  69. <Grid.RowDefinitions>
  70. <RowDefinition x:Name="_ribbonRow" Height="Auto" />
  71. <RowDefinition Height="*" />
  72. <RowDefinition Height="Auto" />
  73. </Grid.RowDefinitions>
  74. <fluent:Ribbon x:Name="_ribbon" Grid.Row="0" Grid.ColumnSpan="2" IsCollapsed="False"
  75. PreviewMouseDoubleClick="_ribbon_OnPreviewMouseDoubleClick"
  76. Background="{Binding Path=(themes:ThemeManager.WorkspaceBackgroundBrush)}"
  77. Foreground="{Binding Path=(themes:ThemeManager.WorkspaceForegroundBrush)}"
  78. Loaded="_ribbon_OnLoaded"
  79. >
  80. <fluent:Ribbon.Menu>
  81. <fluent:Backstage Header="System"
  82. Background="{Binding Path=(themes:ThemeManager.BackstageBackgroundBrush)}"
  83. Foreground="{Binding Path=(themes:ThemeManager.BackstageForegroundBrush)}">
  84. <fluent:BackstageTabControl
  85. x:Name="_backstage"
  86. ItemsPanelBackground="{Binding Path=(themes:ThemeManager.BackstageBackgroundBrush)}"
  87. Background="{Binding Path=(themes:ThemeManager.WorkspaceBackgroundBrush)}"
  88. Foreground="{Binding Path=(themes:ThemeManager.WorkspaceForegroundBrush)}">
  89. <fluent:SeparatorTabItem x:Name="BackstageSeparator" Height="20" />
  90. <fluent:Button
  91. x:Name="DatabaseSettings"
  92. Header="Database Settings"
  93. Click="DatabaseSettings_OnClick"
  94. Size="Middle"
  95. HorizontalAlignment="Stretch"
  96. Foreground="{Binding Path=(themes:ThemeManager.BackstageForegroundBrush)}" />
  97. <fluent:SeparatorTabItem x:Name="BackstageSeparator0" Height="20" />
  98. <fluent:Button
  99. x:Name="CompanyInformation"
  100. Header="Company Information"
  101. Click="CompanyInformation_OnClick"
  102. Size="Middle"
  103. HorizontalAlignment="Stretch"
  104. Foreground="{Binding Path=(themes:ThemeManager.BackstageForegroundBrush)}" />
  105. <fluent:SeparatorTabItem x:Name="BackstageSeparator1" Height="20" />
  106. <fluent:Button
  107. x:Name="SecurityDefaultsButton"
  108. Header="Security Defaults"
  109. Click="SecurityDefaultsButton_OnClick"
  110. Size="Middle"
  111. HorizontalAlignment="Stretch"
  112. Foreground="{Binding Path=(themes:ThemeManager.BackstageForegroundBrush)}" />
  113. <fluent:SeparatorTabItem x:Name="BackstageSeparator1a" Height="20" />
  114. <fluent:Button
  115. x:Name="SystemLogsButton"
  116. Header="View System Logs"
  117. Click="SystemLogsButton_OnClick"
  118. Size="Middle"
  119. HorizontalAlignment="Stretch"
  120. Foreground="{Binding Path=(themes:ThemeManager.BackstageForegroundBrush)}" />
  121. <fluent:Button
  122. x:Name="OpenSupportSessionButton"
  123. Header="Open Support Session"
  124. Click="OpenSupportSession_OnClick"
  125. Size="Middle"
  126. HorizontalAlignment="Stretch"
  127. Foreground="{Binding Path=(themes:ThemeManager.BackstageForegroundBrush)}" />
  128. <fluent:SeparatorTabItem x:Name="BackstageSeparator2a" Height="20" />
  129. <fluent:Button
  130. x:Name="CheckForUpdatesButton"
  131. Header="Check For Updates"
  132. Click="CheckForUpdates_OnClick"
  133. Size="Middle"
  134. HorizontalAlignment="Stretch"
  135. Foreground="{Binding Path=(themes:ThemeManager.BackstageForegroundBrush)}" />
  136. <fluent:SeparatorTabItem x:Name="BackstageSeparator2" Height="20" />
  137. <fluent:Button
  138. x:Name="DocumentTypeList"
  139. Header="Document Types"
  140. Click="DocumentTypeList_OnClick"
  141. Size="Middle"
  142. HorizontalAlignment="Stretch"
  143. Foreground="{Binding Path=(themes:ThemeManager.BackstageForegroundBrush)}" />
  144. <fluent:Button
  145. x:Name="EventList"
  146. Header="Events"
  147. Click="EventList_Click"
  148. Size="Middle"
  149. HorizontalAlignment="Stretch"
  150. Foreground="{Binding Path=(themes:ThemeManager.BackstageForegroundBrush)}" />
  151. <fluent:SeparatorTabItem x:Name="BackstageSeparator5" Height="20" />
  152. <fluent:Button
  153. x:Name="EditDetailsButton"
  154. VerticalAlignment="Bottom"
  155. Header="My Details"
  156. Click="EditDetailsButton_OnClick"
  157. Size="Middle"
  158. HorizontalAlignment="Stretch"
  159. Foreground="{Binding Path=(themes:ThemeManager.BackstageForegroundBrush)}" />
  160. <fluent:Button
  161. x:Name="LogoutButton"
  162. VerticalAlignment="Bottom"
  163. Header="Log Out"
  164. Click="LogoutButton_OnClick"
  165. Size="Middle"
  166. HorizontalAlignment="Stretch"
  167. Foreground="{Binding Path=(themes:ThemeManager.BackstageForegroundBrush)}" />
  168. <fluent:Button
  169. x:Name="LoginButton"
  170. VerticalAlignment="Bottom"
  171. Header="Log In"
  172. Click="LoginButton_OnClick"
  173. Size="Middle"
  174. HorizontalAlignment="Stretch"
  175. Foreground="{Binding Path=(themes:ThemeManager.BackstageForegroundBrush)}" />
  176. <fluent:SeparatorTabItem Height="20" />
  177. <fluent:Button
  178. x:Name="ExitButton"
  179. VerticalAlignment="Bottom"
  180. Header="Exit"
  181. Click="ExitButton_OnClick"
  182. Size="Middle"
  183. HorizontalAlignment="Stretch"
  184. Foreground="{Binding Path=(themes:ThemeManager.BackstageForegroundBrush)}" />
  185. </fluent:BackstageTabControl>
  186. </fluent:Backstage>
  187. </fluent:Ribbon.Menu>
  188. </fluent:Ribbon>
  189. <Grid Grid.Row="0" Grid.Column="1">
  190. <Grid.ColumnDefinitions>
  191. <ColumnDefinition Width="*" />
  192. <ColumnDefinition Width="*" />
  193. <ColumnDefinition Width="*" />
  194. <ColumnDefinition Width="*" />
  195. </Grid.ColumnDefinitions>
  196. <Grid.RowDefinitions>
  197. <RowDefinition Height="30" />
  198. <RowDefinition Height="*" />
  199. </Grid.RowDefinitions>
  200. <fluent:Button
  201. x:Name="SendNotification"
  202. Header="Send Notification"
  203. BorderBrush="Gray"
  204. BorderThickness="0.75"
  205. Margin="0,0,5,0"
  206. Background="WhiteSmoke"
  207. Grid.Row="0"
  208. Grid.Column="3"
  209. Size="Middle"
  210. Icon="Resources/team.png"
  211. HorizontalAlignment="Stretch"
  212. Height="25"
  213. Click="SendNotificationClick" />
  214. <fluent:Button Grid.Row="1" Grid.Column="0"
  215. Header="Setup"
  216. LargeIcon="{svgc:SvgImage Source=/Resources/settings.svg}"
  217. Click="Setup_Click"
  218. Margin="0,0,5,20"/>
  219. <fluent:Button Grid.Row="1" Grid.Column="1"
  220. Header="Forms"
  221. LargeIcon="{svgc:SvgImage Source=/Resources/formslibrary.svg}"
  222. Click="Forms_Click"
  223. Margin="0,0,5,20"/>
  224. <fluent:Button Grid.Row="1" Grid.Column="2"
  225. x:Name="IssuesButton"
  226. Header="Support Tickets"
  227. LargeIcon="{svgc:SvgImage Source=/Resources/appicon.svg}"
  228. Click="Issues_Click"
  229. ToolTip="Raise an issue with the PRS team"
  230. Margin="0,0,5,20"/>
  231. <Border Grid.Row="1" Grid.Column="3"
  232. BorderBrush="Silver" BorderThickness="0,0.75,0.75,0.75" Padding="0,0,5,20">
  233. <StackPanel Orientation="Horizontal">
  234. <fluent:Button
  235. Header="Online Help"
  236. LargeIcon="{svgc:SvgImage Source=/Resources/help.svg}"
  237. Click="Wiki_Click" />
  238. <fluent:Button
  239. x:Name="EquipmentTechnicalLibrary"
  240. Header="Technical Library"
  241. LargeIcon="{svgc:SvgImage Source=/Resources/techlibrary.svg}"
  242. Click="Library_Click" />
  243. </StackPanel>
  244. </Border>
  245. </Grid>
  246. <DockingManager x:Name="DockingManager"
  247. Grid.Row="1"
  248. Grid.Column="0"
  249. Grid.ColumnSpan="2"
  250. AllowMixedOrientation="True"
  251. AutoWindowSizeWhenOpened="True"
  252. IsVirtualizingAnchorable="True"
  253. IsVirtualizingDocument="True"
  254. Margin="-4,-4,-4,0" Padding="0" BorderBrush="Silver" BorderThickness="0,0.75,0,0">
  255. <DockingManager.Theme>
  256. <MetroTheme />
  257. </DockingManager.Theme>
  258. <DockingManager.Resources>
  259. <!-- DockingManager.Background, LayoutDocumentFloatingWindowControl.Header.Foreground-->
  260. <SolidColorBrush x:Key="AvalonDock_ThemeMetro_BaseColor1"
  261. Color="{Binding Path=(themes:ThemeManager.WorkspaceBackgroundColor)}" />
  262. <!-- AnchorablePaneTitle.DropDownControlArea.Foreground, LayoutAnchorControl.Foreground, LayoutAnchorableFloatingWindowControl.Foreground-->
  263. <SolidColorBrush x:Key="AvalonDock_ThemeMetro_BaseColor2"
  264. Color="{Binding Path=(themes:ThemeManager.WorkspaceForegroundColor)}" />
  265. <!-- TabItem.IsActive.Border, AnchorablePaneTitle.IsActive.Border LayoutAnchorControl.IsActive.Border -->
  266. <!-- LayoutDocumentFolatingWindowControl.IsActive.Border -->
  267. <SolidColorBrush x:Key="AvalonDock_ThemeMetro_BaseColor3"
  268. Color="{Binding Path=(themes:ThemeManager.SelectedTabItemBackgroundColor)}" />
  269. <!-- TabItem.Hover.Border, LayoutAnchorControl.Hover.Border -->
  270. <SolidColorBrush x:Key="AvalonDock_ThemeMetro_BaseColor4"
  271. Color="{Binding Path=(themes:ThemeManager.SelectedTabItemBackgroundColor)}" />
  272. <!-- TabItem.IsSelected.Border, TabItem.IsActive.ForeGround, TabItem.Hover.Foreground, LayoutFloatingWindowControl.Background -->
  273. <SolidColorBrush x:Key="AvalonDock_ThemeMetro_BaseColor5"
  274. Color="{Binding Path=(themes:ThemeManager.WorkspaceForegroundColor)}" />
  275. <!-- FloatingWindowControl.Border, LayoutAnchorableFloatingWindowControl.Border -->
  276. <SolidColorBrush x:Key="AvalonDock_ThemeMetro_BaseColor6"
  277. Color="{Binding Path=(themes:ThemeManager.WorkspaceForegroundColor)}" />
  278. <!-- LayoutGridResizerControl.Background, NavigatorWindow.Background -->
  279. <SolidColorBrush x:Key="AvalonDock_ThemeMetro_BaseColor7" Color="#EEEEEE" />
  280. </DockingManager.Resources>
  281. <LayoutRoot>
  282. <LayoutPanel Orientation="Horizontal">
  283. <LayoutDocumentPaneGroup>
  284. <LayoutDocumentPane x:Name="LayoutDocumentPane" ShowHeader="False">
  285. <LayoutDocument Title="Document 1" ContentId="document1">
  286. <Grid x:Name="DockingGrid">
  287. <Grid.RowDefinitions>
  288. <RowDefinition Height="*" />
  289. </Grid.RowDefinitions>
  290. <Grid.ColumnDefinitions>
  291. <ColumnDefinition Width="*" />
  292. <ColumnDefinition Width="0" />
  293. <ColumnDefinition Width="0" />
  294. </Grid.ColumnDefinitions>
  295. <ContentControl x:Name="ContentControl" HorizontalAlignment="Stretch"
  296. VerticalAlignment="Stretch"
  297. Grid.Column="0" Grid.Row="0" Margin="0,-4,2,-4" />
  298. <syncfusion:SfGridSplitter Grid.Row="0" Grid.Column="1"
  299. ResizeBehavior="PreviousAndNext"
  300. Background="Transparent"
  301. Template="{StaticResource VerticalSplitter}">
  302. <syncfusion:SfGridSplitter.PreviewStyle>
  303. <Style TargetType="Control">
  304. <Setter Property="Background" Value="Gray" />
  305. <Setter Property="Template">
  306. <Setter.Value>
  307. <ControlTemplate TargetType="Control">
  308. <Grid x:Name="Root" Opacity="0.5">
  309. <Rectangle Fill="{TemplateBinding Background}" />
  310. </Grid>
  311. </ControlTemplate>
  312. </Setter.Value>
  313. </Setter>
  314. </Style>
  315. </syncfusion:SfGridSplitter.PreviewStyle>
  316. </syncfusion:SfGridSplitter>
  317. <local:NotificationsDock
  318. x:Name="Notifications"
  319. Grid.Row="0"
  320. Grid.Column="2"
  321. Changed="Notifications_Changed"
  322. Margin="0,-4,0,-4" />
  323. </Grid>
  324. </LayoutDocument>
  325. </LayoutDocumentPane>
  326. </LayoutDocumentPaneGroup>
  327. </LayoutPanel>
  328. <LayoutRoot.LeftSide>
  329. <LayoutAnchorSide>
  330. <LayoutAnchorGroup x:Name="DockGroup">
  331. <LayoutAnchorable
  332. x:Name="ContactDock"
  333. Title="Address Book"
  334. ContentId="contacts"
  335. CanClose="False"
  336. CanFloat="False"
  337. CanHide="False"
  338. CanAutoHide="False"
  339. CanDockAsTabbedDocument="False"
  340. CanMove="False"
  341. AutoHideWidth="500"
  342. FloatingWidth="500"
  343. AutoHideMinWidth="400"
  344. IsActiveChanged="DockPanel_OnIsActiveChanged">
  345. <Border BorderThickness="0.75" BorderBrush="Gray" Margin="0,4,0,0" Padding="4" Background="WhiteSmoke">
  346. <local:ContactDock x:Name="Contacts" />
  347. </Border>
  348. </LayoutAnchorable>
  349. <LayoutAnchorable
  350. x:Name="JobDock"
  351. Title="Projects"
  352. ContentId="projects"
  353. CanClose="False"
  354. CanFloat="False"
  355. CanHide="False"
  356. CanAutoHide="False"
  357. CanDockAsTabbedDocument="False"
  358. CanMove="False"
  359. AutoHideWidth="500"
  360. FloatingWidth="500"
  361. AutoHideMinWidth="400"
  362. IsActiveChanged="DockPanel_OnIsActiveChanged">
  363. <Border BorderThickness="0.75" BorderBrush="Gray" Margin="0,4,0,0" Padding="4" Background="WhiteSmoke">
  364. <local:JobDock x:Name="Jobs" />
  365. </Border>
  366. </LayoutAnchorable>
  367. <LayoutAnchorable
  368. x:Name="ConsignmentDock"
  369. Title="Consignments"
  370. ContentId="consignments"
  371. CanClose="False"
  372. CanFloat="False"
  373. CanHide="False"
  374. CanAutoHide="True"
  375. CanDockAsTabbedDocument="False"
  376. AutoHideWidth="500"
  377. FloatingWidth="500"
  378. AutoHideMinWidth="400"
  379. IsActiveChanged="DockPanel_OnIsActiveChanged">
  380. <Border BorderThickness="0.75" BorderBrush="Gray" Margin="0,4,0,0" Padding="4" Background="WhiteSmoke">
  381. <local:ConsignmentDock x:Name="Consignments" />
  382. </Border>
  383. </LayoutAnchorable>
  384. <LayoutAnchorable
  385. x:Name="DeliveryDock"
  386. Title="Deliveries"
  387. ContentId="deliveries"
  388. CanClose="False"
  389. CanFloat="False"
  390. CanHide="False"
  391. CanAutoHide="True"
  392. CanDockAsTabbedDocument="False"
  393. AutoHideWidth="500"
  394. FloatingWidth="500"
  395. AutoHideMinWidth="400"
  396. IsActiveChanged="DockPanel_OnIsActiveChanged">
  397. <Border BorderThickness="0.75" BorderBrush="Gray" Margin="0,4,0,0" Padding="4" Background="WhiteSmoke">
  398. <local:DeliveryDock x:Name="Deliveries" />
  399. </Border>
  400. </LayoutAnchorable>
  401. <LayoutAnchorable
  402. x:Name="ProductLookupDock"
  403. Title="Products"
  404. ContentId="products"
  405. CanClose="False"
  406. CanFloat="False"
  407. CanHide="False"
  408. CanAutoHide="True"
  409. CanDockAsTabbedDocument="False"
  410. AutoHideWidth="500"
  411. FloatingWidth="500"
  412. AutoHideMinWidth="400"
  413. IsActiveChanged="DockPanel_OnIsActiveChanged">
  414. <Border BorderThickness="0.75" BorderBrush="Gray" Margin="0,4,0,0" Padding="4" Background="WhiteSmoke">
  415. <local:ProductLookupDock x:Name="ProductLookup" />
  416. </Border>
  417. </LayoutAnchorable>
  418. <LayoutAnchorable
  419. x:Name="DigitalFormsDock"
  420. Title="Digital Forms"
  421. ContentId="digitalforms"
  422. CanClose="False"
  423. CanFloat="False"
  424. CanHide="False"
  425. CanAutoHide="True"
  426. CanDockAsTabbedDocument="False"
  427. AutoHideWidth="500"
  428. FloatingWidth="500"
  429. AutoHideMinWidth="400"
  430. IsActiveChanged="DockPanel_OnIsActiveChanged">
  431. <Border BorderThickness="0.75" BorderBrush="Gray" Margin="0,4,0,0" Padding="4" Background="WhiteSmoke">
  432. <local:DigitalFormsDock x:Name="DigitalForms" />
  433. </Border>
  434. </LayoutAnchorable>
  435. <LayoutAnchorable
  436. x:Name="ProblemsDock"
  437. Title="Issues Centre"
  438. ContentId="problems"
  439. CanClose="False"
  440. CanFloat="False"
  441. CanHide="False"
  442. CanAutoHide="True"
  443. CanDockAsTabbedDocument="False"
  444. AutoHideWidth="500"
  445. FloatingWidth="500"
  446. AutoHideMinWidth="400"
  447. IsActiveChanged="DockPanel_OnIsActiveChanged">
  448. <Border BorderThickness="0.75" BorderBrush="Gray" Margin="0,4,0,0" Padding="4" Background="WhiteSmoke">
  449. <local:ProblemsDock x:Name="Problems" />
  450. </Border>
  451. </LayoutAnchorable>
  452. <LayoutAnchorable
  453. x:Name="RequisitionsDock"
  454. Title="Requisitions"
  455. ContentId="requisitions"
  456. CanClose="False"
  457. CanFloat="False"
  458. CanHide="False"
  459. CanAutoHide="True"
  460. CanDockAsTabbedDocument="False"
  461. AutoHideWidth="500"
  462. FloatingWidth="500"
  463. AutoHideMinWidth="400"
  464. IsActiveChanged="DockPanel_OnIsActiveChanged">
  465. <Border BorderThickness="0.75" BorderBrush="Gray" Margin="0,4,0,0" Padding="4" Background="WhiteSmoke">
  466. <local:RequisitionsDock x:Name="Requisitions" />
  467. </Border>
  468. </LayoutAnchorable>
  469. </LayoutAnchorGroup>
  470. </LayoutAnchorSide>
  471. </LayoutRoot.LeftSide>
  472. </LayoutRoot>
  473. </DockingManager>
  474. <Border Grid.Row="2" Grid.Column="0" Grid.ColumnSpan="2" BorderThickness="0"
  475. Background="DimGray">
  476. <Grid>
  477. <Grid.ColumnDefinitions>
  478. <ColumnDefinition Width="Auto" />
  479. <ColumnDefinition Width="*" />
  480. <ColumnDefinition Width="Auto" />
  481. <ColumnDefinition Width="Auto" />
  482. <ColumnDefinition Width="Auto" />
  483. <ColumnDefinition Width="Auto" />
  484. <ColumnDefinition Width="Auto" />
  485. </Grid.ColumnDefinitions>
  486. <Label Grid.Column="0" x:Name="ProfileName" Content="" HorizontalContentAlignment="Center"
  487. VerticalContentAlignment="Center" Foreground="WhiteSmoke" Padding="20,0,20,0" />
  488. <Label Grid.Column="1" x:Name="URL" Content="" VerticalContentAlignment="Center" Foreground="WhiteSmoke" />
  489. <DockPanel x:Name="TaskTracking" Grid.Column="2" Margin="0,0,50,0">
  490. <Button DockPanel.Dock="Right" BorderBrush="Transparent" Background="Transparent"
  491. Click="SelectTask_Click" Width="25">
  492. <Image x:Name="SelectTask" Source="Resources/uparrow.png" />
  493. </Button>
  494. <Label x:Name="SelectedTaskName" DockPanel.Dock="Left" VerticalContentAlignment="Center"
  495. Content="(No Task Selected)" Foreground="WhiteSmoke" />
  496. </DockPanel>
  497. <!-- <Button Grid.Column="3" x:Name="VideoRecordingButton" BorderThickness="0" Background="Transparent" -->
  498. <!-- Click="VideoRecordingButton_Click"> -->
  499. <!-- <Image x:Name="VideoRecordingStatus" -->
  500. <!-- Source="pack://application:,,,/Resources/videorecording.png" -->
  501. <!-- Height="24" Margin="2" /> -->
  502. <!-- </Button> -->
  503. <!-- -->
  504. <!-- <Button Grid.Column="4" x:Name="RecordingNotesButton" BorderThickness="0" Background="Transparent" -->
  505. <!-- Click="RecordingNotesButton_Click" Visibility="Hidden"> -->
  506. <!-- <Image x:Name="RecordingNotesStatus" Source="pack://application:,,,/Resources/speechbubble.png" -->
  507. <!-- Height="24" Margin="2" /> -->
  508. <!-- </Button> -->
  509. <!-- -->
  510. <!-- <Button Grid.Column="5" x:Name="AudioRecordingButton" BorderThickness="0" Background="Transparent" -->
  511. <!-- Click="AudioRecordingButton_Click" Visibility="Hidden"> -->
  512. <!-- <Image x:Name="AudioRecordingStatus" -->
  513. <!-- Source="pack://application:,,,/Resources/audiorecording.png" -->
  514. <!-- Height="24" Margin="2" /> -->
  515. <!-- </Button> -->
  516. <Button Grid.Column="3" x:Name="ConsoleButton" BorderThickness="0" Background="Transparent"
  517. Click="Console_Click" Visibility="Visible">
  518. <Image x:Name="ConsoleStatus" Source="pack://application:,,,/Resources/view.png" Height="24"
  519. Margin="2" />
  520. </Button>
  521. <Image x:Name="BackgroundUploadStatus"
  522. Grid.Column="4"
  523. Source="pack://application:,,,/Resources/upload.png"
  524. Height="24" Margin="2"
  525. Visibility="Hidden"/>
  526. <Label Grid.Column="5" x:Name="UserID" Content="" HorizontalContentAlignment="Center"
  527. VerticalContentAlignment="Center" Foreground="WhiteSmoke" Margin="5,0,5,0" />
  528. <Label Grid.Column="6" x:Name="PasswordExpiryNotice" Content="" HorizontalContentAlignment="Center"
  529. VerticalContentAlignment="Center" Background="Firebrick" Foreground="Yellow"
  530. Visibility="Collapsed" Margin="5,0,5,0" />
  531. </Grid>
  532. </Border>
  533. </Grid>
  534. </fluent:RibbonWindow>