Files
LogDashboard/Source/LogDashboard/LogDashboard.UI/View/MainWindow.xaml
2025-06-13 13:16:39 -07:00

106 lines
4.9 KiB
XML

<!--
MainWindow.xaml
12/4/2023
RAYTHEON PROPRIETARY: THIS DOCUMENT CONTAINS DATA OR INFORMATION
PROPRIETARY TO RAYTHEON COMPANY AND IS RESTRICTED TO USE ONLY BY PERSONS
AUTHORIZED BY RAYTHEON COMPANY IN WRITING TO USE IT. DISCLOSURE TO
UNAUTHORIZED PERSONS WOULD LIKELY CAUSE SUBSTANTIAL COMPETITIVE HARM TO
RAYTHEON COMPANY'S BUSINESS POSITION. NEITHER SAID DOCUMENT NOR ITS
CONTENTS SHALL BE FURNISHED OR DISCLOSED TO OR COPIED OR USED BY PERSONS
OUTSIDE RAYTHEON COMPANY WITHOUT THE EXPRESS WRITTEN APPROVAL OF RAYTHEON
COMPANY.
THIS PROPRIETARY NOTICE IS NOT APPLICABLE IF DELIVERED TO THE U.S. GOVERNMENT
UNPUBLISHED WORK - COPYRIGHT RAYTHEON COMPANY.
WARNING: THIS DOCUMENT CONTAINS TECHNICAL DATA AND / OR TECHNOLOGY WHOSE
EXPORT OR DISCLOSURE TO NON-U.S. PERSONS, WHEREVER LOCATED, IS RESTRICTED
BY THE INTERNATIONAL TRAFFIC IN ARMS REGULATIONS (ITAR) (22 C.F.R. SECTION
120-130) OR THE EXPORT ADMINISTRATION REGULATIONS (EAR) (15 C.F.R. SECTION
730-774). THIS DOCUMENT CANNOT BE EXPORTED (E.G., PROVIDED TO A SUPPLIER
OUTSIDE OF THE UNITED STATES) OR DISCLOSED TO A NON-U.S. PERSON, WHEREVER
LOCATED, UNTIL A FINAL JURISDICTION AND CLASSIFICATION DETERMINATION HAS
BEEN COMPLETED AND APPROVED BY RAYTHEON, AND ANY REQUIRED U.S. GOVERNMENT
APPROVALS HAVE BEEN OBTAINED. VIOLATIONS ARE SUBJECT TO SEVERE CRIMINAL
PENALTIES.
DOD 5220.22-M, INDUSTRIAL SECURITY MANUAL, CHAPTER 5, SECTION 1 THROUGH 9 :
FOR CLASSIFIED DOCUMENTS FOLLOW THE PROCEDURES IN OR DOD 5200.1-R,
INFORMATION SECURITY PROGRAM, CHAPTER 6. FOR UNCLASSIFIED, LIMITED DOCUMENTS
DESTROY BY ANY METHOD THAT WILL PREVENT DISCLOSURE OF CONTENTS OR
RECONSTRUCTION OF THE DOCUMENT.
POC: Alex Kravchenko (1118268)
-->
<mah:MetroWindow x:Class="Raytheon.LogDashboard.View.MainWindow"
xmlns:mah="clr-namespace:MahApps.Metro.Controls;assembly=MahApps.Metro"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:ctrl="clr-namespace:Raytheon.LogDashboard.View;assembly=Raytheon.LogDashboardLib"
xmlns:Dialog="clr-namespace:MahApps.Metro.Controls.Dialogs;assembly=MahApps.Metro"
DataContext="{Binding Main, Source={StaticResource Locator}}"
Dialog:DialogParticipation.Register="{Binding}"
WindowTitleBrush="{Binding IconColor}"
mc:Ignorable="d"
Title="Common Platforms Log Dashboard"
ResizeMode="CanResizeWithGrip"
Closing="MetroWindow_Closing"
Height="{Binding CurrentWindowHeight, Mode=TwoWay}"
Width="{Binding CurrentWindowWidth, Mode=TwoWay}"
Left="{Binding CurrentWindowLeft, Mode=TwoWay}"
Top="{Binding CurrentWindowTop, Mode=TwoWay}"
Icon="/Resources/rt_logo_30h.png"
Loaded="MainWindow_OnLoaded">
<mah:MetroWindow.Flyouts>
<mah:FlyoutsControl>
<mah:FlyoutsControl.ItemContainerStyle>
<Style TargetType="{x:Type mah:Flyout}">
<Setter Property="RenderTransform" Value="{x:Null}"></Setter>
<Setter Property="AreAnimationsEnabled" Value="True" />
<Setter Property="AnimateOpacity" Value="True" />
<Setter Property="Theme" Value="Adapt" />
<Setter Property="Position" Value="Right" />
</Style>
</mah:FlyoutsControl.ItemContainerStyle>
<mah:Flyout Header="Settings"
MinWidth="600"
Theme="Adapt"
IsOpen="{Binding LogDashboard.ShowSettings, Source={StaticResource LogDashLocator}}">
<mah:MetroContentControl Margin="0,0,20,0">
<ctrl:SettingsCtrl DataContext="{Binding Settings, Source={StaticResource LogDashLocator}}" />
</mah:MetroContentControl>
</mah:Flyout>
<mah:Flyout Header="Search Namespaces"
Theme="Adapt"
MinWidth="400"
IsOpen="{Binding LogDashboard.ShowTree, Source={StaticResource Locator}}">
<mah:MetroContentControl Margin="0,0,60,0">
<ctrl:SidebarTreeView DataContext="{Binding LogDashboard, Source={StaticResource LogDashLocator}}" />
</mah:MetroContentControl>
</mah:Flyout>
</mah:FlyoutsControl>
</mah:MetroWindow.Flyouts>
<Grid>
<mah:MetroContentControl>
<ctrl:LogDashboardCtrl DataContext="{Binding LogDashboard, Source={StaticResource Locator}}" />
</mah:MetroContentControl>
</Grid>
</mah:MetroWindow>