MainWindow.xaml 34 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622
  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="1"
  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. <fluent:Button Grid.Row="1" Grid.Column="2"
  232. x:Name="MobileButton"
  233. Header="Mobile App"
  234. LargeIcon="{svgc:SvgImage Source=/Resources/mobile.svg}"
  235. Click="Mobile_Click"
  236. ToolTip="Raise an issue with the PRS team"
  237. Margin="0,0,5,20"/>
  238. <Border Grid.Row="1" Grid.Column="3"
  239. BorderBrush="Silver" BorderThickness="0,0.75,0.75,0.75" Padding="0,0,5,20">
  240. <StackPanel Orientation="Horizontal">
  241. <fluent:Button
  242. Header="Online Help"
  243. LargeIcon="{svgc:SvgImage Source=/Resources/help.svg}"
  244. Click="Wiki_Click" />
  245. <fluent:Button
  246. x:Name="EquipmentTechnicalLibrary"
  247. Header="Technical Library"
  248. LargeIcon="{svgc:SvgImage Source=/Resources/techlibrary.svg}"
  249. Click="Library_Click" />
  250. </StackPanel>
  251. </Border>
  252. </Grid>
  253. <DockingManager x:Name="DockingManager"
  254. Grid.Row="1"
  255. Grid.Column="0"
  256. Grid.ColumnSpan="2"
  257. AllowMixedOrientation="True"
  258. AutoWindowSizeWhenOpened="True"
  259. IsVirtualizingAnchorable="True"
  260. IsVirtualizingDocument="True"
  261. Margin="-4,-4,-4,0" Padding="0" BorderBrush="Silver" BorderThickness="0,0.75,0,0">
  262. <DockingManager.Theme>
  263. <MetroTheme />
  264. </DockingManager.Theme>
  265. <DockingManager.Resources>
  266. <!-- DockingManager.Background, LayoutDocumentFloatingWindowControl.Header.Foreground-->
  267. <SolidColorBrush x:Key="AvalonDock_ThemeMetro_BaseColor1"
  268. Color="{Binding Path=(themes:ThemeManager.WorkspaceBackgroundColor)}" />
  269. <!-- AnchorablePaneTitle.DropDownControlArea.Foreground, LayoutAnchorControl.Foreground, LayoutAnchorableFloatingWindowControl.Foreground-->
  270. <SolidColorBrush x:Key="AvalonDock_ThemeMetro_BaseColor2"
  271. Color="{Binding Path=(themes:ThemeManager.WorkspaceForegroundColor)}" />
  272. <!-- TabItem.IsActive.Border, AnchorablePaneTitle.IsActive.Border LayoutAnchorControl.IsActive.Border -->
  273. <!-- LayoutDocumentFolatingWindowControl.IsActive.Border -->
  274. <SolidColorBrush x:Key="AvalonDock_ThemeMetro_BaseColor3"
  275. Color="{Binding Path=(themes:ThemeManager.SelectedTabItemBackgroundColor)}" />
  276. <!-- TabItem.Hover.Border, LayoutAnchorControl.Hover.Border -->
  277. <SolidColorBrush x:Key="AvalonDock_ThemeMetro_BaseColor4"
  278. Color="{Binding Path=(themes:ThemeManager.SelectedTabItemBackgroundColor)}" />
  279. <!-- TabItem.IsSelected.Border, TabItem.IsActive.ForeGround, TabItem.Hover.Foreground, LayoutFloatingWindowControl.Background -->
  280. <SolidColorBrush x:Key="AvalonDock_ThemeMetro_BaseColor5"
  281. Color="{Binding Path=(themes:ThemeManager.WorkspaceForegroundColor)}" />
  282. <!-- FloatingWindowControl.Border, LayoutAnchorableFloatingWindowControl.Border -->
  283. <SolidColorBrush x:Key="AvalonDock_ThemeMetro_BaseColor6"
  284. Color="{Binding Path=(themes:ThemeManager.WorkspaceForegroundColor)}" />
  285. <!-- LayoutGridResizerControl.Background, NavigatorWindow.Background -->
  286. <SolidColorBrush x:Key="AvalonDock_ThemeMetro_BaseColor7" Color="#EEEEEE" />
  287. </DockingManager.Resources>
  288. <LayoutRoot>
  289. <LayoutPanel Orientation="Horizontal">
  290. <LayoutDocumentPaneGroup>
  291. <LayoutDocumentPane x:Name="LayoutDocumentPane" ShowHeader="False">
  292. <LayoutDocument Title="Document 1" ContentId="document1">
  293. <Grid x:Name="DockingGrid">
  294. <Grid.RowDefinitions>
  295. <RowDefinition Height="*" />
  296. </Grid.RowDefinitions>
  297. <Grid.ColumnDefinitions>
  298. <ColumnDefinition Width="*" />
  299. <ColumnDefinition Width="0" />
  300. <ColumnDefinition Width="0" />
  301. </Grid.ColumnDefinitions>
  302. <ContentControl x:Name="ContentControl" HorizontalAlignment="Stretch"
  303. VerticalAlignment="Stretch"
  304. Grid.Column="0" Grid.Row="0" Margin="0,-4,2,-4" />
  305. <syncfusion:SfGridSplitter Grid.Row="0" Grid.Column="1"
  306. ResizeBehavior="PreviousAndNext"
  307. Background="Transparent"
  308. Template="{StaticResource VerticalSplitter}">
  309. <syncfusion:SfGridSplitter.PreviewStyle>
  310. <Style TargetType="Control">
  311. <Setter Property="Background" Value="Gray" />
  312. <Setter Property="Template">
  313. <Setter.Value>
  314. <ControlTemplate TargetType="Control">
  315. <Grid x:Name="Root" Opacity="0.5">
  316. <Rectangle Fill="{TemplateBinding Background}" />
  317. </Grid>
  318. </ControlTemplate>
  319. </Setter.Value>
  320. </Setter>
  321. </Style>
  322. </syncfusion:SfGridSplitter.PreviewStyle>
  323. </syncfusion:SfGridSplitter>
  324. <local:NotificationsDock
  325. x:Name="Notifications"
  326. Grid.Row="0"
  327. Grid.Column="2"
  328. Changed="Notifications_Changed"
  329. Margin="0,-4,0,-4" />
  330. </Grid>
  331. </LayoutDocument>
  332. </LayoutDocumentPane>
  333. </LayoutDocumentPaneGroup>
  334. </LayoutPanel>
  335. <LayoutRoot.LeftSide>
  336. <LayoutAnchorSide>
  337. <LayoutAnchorGroup x:Name="DockGroup">
  338. <LayoutAnchorable
  339. x:Name="ContactDock"
  340. Title="Address Book"
  341. ContentId="contacts"
  342. CanClose="False"
  343. CanFloat="False"
  344. CanHide="False"
  345. CanAutoHide="False"
  346. CanDockAsTabbedDocument="False"
  347. CanMove="False"
  348. AutoHideWidth="500"
  349. FloatingWidth="500"
  350. AutoHideMinWidth="400"
  351. IsActiveChanged="DockPanel_OnIsActiveChanged">
  352. <Border BorderThickness="0.75" BorderBrush="Gray" Margin="0,4,0,0" Padding="4" Background="WhiteSmoke">
  353. <local:ContactDock x:Name="Contacts" />
  354. </Border>
  355. </LayoutAnchorable>
  356. <LayoutAnchorable
  357. x:Name="JobDock"
  358. Title="Projects"
  359. ContentId="projects"
  360. CanClose="False"
  361. CanFloat="False"
  362. CanHide="False"
  363. CanAutoHide="False"
  364. CanDockAsTabbedDocument="False"
  365. CanMove="False"
  366. AutoHideWidth="500"
  367. FloatingWidth="500"
  368. AutoHideMinWidth="400"
  369. IsActiveChanged="DockPanel_OnIsActiveChanged">
  370. <Border BorderThickness="0.75" BorderBrush="Gray" Margin="0,4,0,0" Padding="4" Background="WhiteSmoke">
  371. <local:JobDock x:Name="Jobs" />
  372. </Border>
  373. </LayoutAnchorable>
  374. <LayoutAnchorable
  375. x:Name="ConsignmentDock"
  376. Title="Consignments"
  377. ContentId="consignments"
  378. CanClose="False"
  379. CanFloat="False"
  380. CanHide="False"
  381. CanAutoHide="True"
  382. CanDockAsTabbedDocument="False"
  383. AutoHideWidth="500"
  384. FloatingWidth="500"
  385. AutoHideMinWidth="400"
  386. IsActiveChanged="DockPanel_OnIsActiveChanged">
  387. <Border BorderThickness="0.75" BorderBrush="Gray" Margin="0,4,0,0" Padding="4" Background="WhiteSmoke">
  388. <local:ConsignmentDock x:Name="Consignments" />
  389. </Border>
  390. </LayoutAnchorable>
  391. <LayoutAnchorable
  392. x:Name="DeliveryDock"
  393. Title="Deliveries"
  394. ContentId="deliveries"
  395. CanClose="False"
  396. CanFloat="False"
  397. CanHide="False"
  398. CanAutoHide="True"
  399. CanDockAsTabbedDocument="False"
  400. AutoHideWidth="500"
  401. FloatingWidth="500"
  402. AutoHideMinWidth="400"
  403. IsActiveChanged="DockPanel_OnIsActiveChanged">
  404. <Border BorderThickness="0.75" BorderBrush="Gray" Margin="0,4,0,0" Padding="4" Background="WhiteSmoke">
  405. <local:DeliveryDock x:Name="Deliveries" />
  406. </Border>
  407. </LayoutAnchorable>
  408. <LayoutAnchorable
  409. x:Name="ProductLookupDock"
  410. Title="Products"
  411. ContentId="products"
  412. CanClose="False"
  413. CanFloat="False"
  414. CanHide="False"
  415. CanAutoHide="True"
  416. CanDockAsTabbedDocument="False"
  417. AutoHideWidth="500"
  418. FloatingWidth="500"
  419. AutoHideMinWidth="400"
  420. IsActiveChanged="DockPanel_OnIsActiveChanged">
  421. <Border BorderThickness="0.75" BorderBrush="Gray" Margin="0,4,0,0" Padding="4" Background="WhiteSmoke">
  422. <local:ProductLookupDock x:Name="ProductLookup" />
  423. </Border>
  424. </LayoutAnchorable>
  425. <LayoutAnchorable
  426. x:Name="DigitalFormsDock"
  427. Title="Digital Forms"
  428. ContentId="digitalforms"
  429. CanClose="False"
  430. CanFloat="False"
  431. CanHide="False"
  432. CanAutoHide="True"
  433. CanDockAsTabbedDocument="False"
  434. AutoHideWidth="500"
  435. FloatingWidth="500"
  436. AutoHideMinWidth="400"
  437. IsActiveChanged="DockPanel_OnIsActiveChanged">
  438. <Border BorderThickness="0.75" BorderBrush="Gray" Margin="0,4,0,0" Padding="4" Background="WhiteSmoke">
  439. <local:DigitalFormsDock x:Name="DigitalForms" />
  440. </Border>
  441. </LayoutAnchorable>
  442. <LayoutAnchorable
  443. x:Name="ProblemsDock"
  444. Title="Issues Centre"
  445. ContentId="problems"
  446. CanClose="False"
  447. CanFloat="False"
  448. CanHide="False"
  449. CanAutoHide="True"
  450. CanDockAsTabbedDocument="False"
  451. AutoHideWidth="500"
  452. FloatingWidth="500"
  453. AutoHideMinWidth="400"
  454. IsActiveChanged="DockPanel_OnIsActiveChanged">
  455. <Border BorderThickness="0.75" BorderBrush="Gray" Margin="0,4,0,0" Padding="4" Background="WhiteSmoke">
  456. <local:ProblemsDock x:Name="Problems" />
  457. </Border>
  458. </LayoutAnchorable>
  459. <LayoutAnchorable
  460. x:Name="RequisitionsDock"
  461. Title="Requisitions"
  462. ContentId="requisitions"
  463. CanClose="False"
  464. CanFloat="False"
  465. CanHide="False"
  466. CanAutoHide="True"
  467. CanDockAsTabbedDocument="False"
  468. AutoHideWidth="500"
  469. FloatingWidth="500"
  470. AutoHideMinWidth="400"
  471. IsActiveChanged="DockPanel_OnIsActiveChanged">
  472. <Border BorderThickness="0.75" BorderBrush="Gray" Margin="0,4,0,0" Padding="4" Background="WhiteSmoke">
  473. <local:RequisitionsDock x:Name="Requisitions" />
  474. </Border>
  475. </LayoutAnchorable>
  476. </LayoutAnchorGroup>
  477. </LayoutAnchorSide>
  478. </LayoutRoot.LeftSide>
  479. </LayoutRoot>
  480. </DockingManager>
  481. <Border Grid.Row="2" Grid.Column="0" Grid.ColumnSpan="2" BorderThickness="0"
  482. Background="DimGray">
  483. <Grid>
  484. <Grid.ColumnDefinitions>
  485. <ColumnDefinition Width="Auto" />
  486. <ColumnDefinition Width="*" />
  487. <ColumnDefinition Width="Auto" />
  488. <ColumnDefinition Width="Auto" />
  489. <ColumnDefinition Width="Auto" />
  490. <ColumnDefinition Width="Auto" />
  491. <ColumnDefinition Width="Auto" />
  492. </Grid.ColumnDefinitions>
  493. <Label Grid.Column="0" x:Name="ProfileName" Content="" HorizontalContentAlignment="Center"
  494. VerticalContentAlignment="Center" Foreground="WhiteSmoke" Padding="20,0,20,0" />
  495. <Label Grid.Column="1" x:Name="URL" Content="" VerticalContentAlignment="Center" Foreground="WhiteSmoke" />
  496. <DockPanel x:Name="TaskTracking" Grid.Column="2" Margin="0,0,50,0">
  497. <Button DockPanel.Dock="Right" BorderBrush="Transparent" Background="Transparent"
  498. Click="SelectTask_Click" Width="25">
  499. <Image x:Name="SelectTask" Source="Resources/uparrow.png" />
  500. </Button>
  501. <Label x:Name="SelectedTaskName" DockPanel.Dock="Left" VerticalContentAlignment="Center"
  502. Content="(No Task Selected)" Foreground="WhiteSmoke" />
  503. </DockPanel>
  504. <!-- <Button Grid.Column="3" x:Name="VideoRecordingButton" BorderThickness="0" Background="Transparent" -->
  505. <!-- Click="VideoRecordingButton_Click"> -->
  506. <!-- <Image x:Name="VideoRecordingStatus" -->
  507. <!-- Source="pack://application:,,,/Resources/videorecording.png" -->
  508. <!-- Height="24" Margin="2" /> -->
  509. <!-- </Button> -->
  510. <!-- -->
  511. <!-- <Button Grid.Column="4" x:Name="RecordingNotesButton" BorderThickness="0" Background="Transparent" -->
  512. <!-- Click="RecordingNotesButton_Click" Visibility="Hidden"> -->
  513. <!-- <Image x:Name="RecordingNotesStatus" Source="pack://application:,,,/Resources/speechbubble.png" -->
  514. <!-- Height="24" Margin="2" /> -->
  515. <!-- </Button> -->
  516. <!-- -->
  517. <!-- <Button Grid.Column="5" x:Name="AudioRecordingButton" BorderThickness="0" Background="Transparent" -->
  518. <!-- Click="AudioRecordingButton_Click" Visibility="Hidden"> -->
  519. <!-- <Image x:Name="AudioRecordingStatus" -->
  520. <!-- Source="pack://application:,,,/Resources/audiorecording.png" -->
  521. <!-- Height="24" Margin="2" /> -->
  522. <!-- </Button> -->
  523. <Button Grid.Column="3" x:Name="ConsoleButton" BorderThickness="0" Background="Transparent"
  524. Click="Console_Click" Visibility="Visible">
  525. <Image x:Name="ConsoleStatus" Source="pack://application:,,,/Resources/view.png" Height="24"
  526. Margin="2" />
  527. </Button>
  528. <Image x:Name="BackgroundUploadStatus"
  529. Grid.Column="4"
  530. Source="pack://application:,,,/Resources/upload.png"
  531. Height="24" Margin="2"
  532. Visibility="Hidden"/>
  533. <Label Grid.Column="5" x:Name="UserID" Content="" HorizontalContentAlignment="Center"
  534. VerticalContentAlignment="Center" Foreground="WhiteSmoke" Margin="5,0,5,0" />
  535. <Label Grid.Column="6" x:Name="PasswordExpiryNotice" Content="" HorizontalContentAlignment="Center"
  536. VerticalContentAlignment="Center" Background="Firebrick" Foreground="Yellow"
  537. Visibility="Collapsed" Margin="5,0,5,0" />
  538. </Grid>
  539. </Border>
  540. </Grid>
  541. </fluent:RibbonWindow>