Assets/HomeWindow.xaml
<Window x:Name="HomeWindow" x:Class="ADLookups_v2.Home"
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:local="clr-namespace:ADLookups_v2" mc:Ignorable="d" Title="Home - LoganShell" Height="400" MinHeight="400" Width="385" MinWidth="385"> <Window.Resources> <ResourceDictionary> <ResourceDictionary.MergedDictionaries> <ResourceDictionary Source="C:\temp\LightTheme.xaml"/> </ResourceDictionary.MergedDictionaries> </ResourceDictionary> </Window.Resources> <Grid> <Button x:Name="BannerButton" Content="SCCM Devices aren't cached. Click here to update!" VerticalAlignment="Top" Margin="0,20,0,0" Height="20" Foreground="White"> <Button.Background> <SolidColorBrush Color="{DynamicResource {x:Static SystemColors.HighlightColorKey}}"/> </Button.Background> </Button> <Grid Margin="5,35,5,20"> <Grid.RowDefinitions> <RowDefinition Height="*"/> <RowDefinition Height="auto"/> </Grid.RowDefinitions> <Grid.ColumnDefinitions> <ColumnDefinition Width="*"/> <ColumnDefinition Width="*"/> </Grid.ColumnDefinitions> <Grid Margin="15,10,15,10"> <Grid.RowDefinitions> <RowDefinition Height="*"/> <RowDefinition Height="*"/> <RowDefinition Height="*"/> <RowDefinition Height="*"/> <RowDefinition Height="*"/> </Grid.RowDefinitions> <Button Grid.Row="0" x:Name="ADLookupsButton" Content="AD Lookups" Margin="0,5,0,5"/> <Button Grid.Row="1" x:Name="RSOPButton" Content="Get RSOP" Margin="0,5,0,5"/> <Button Grid.Row="2" x:Name="SCCMDeploymentButton" Content="SCCM Deployments" Margin="0,5,0,5"/> <Button Grid.Row="3" x:Name="EntraButton" Content="Entra Lookups" Margin="0,5,0,5" IsEnabled="False"/> <Button Grid.Row="4" x:Name="IntuneButton" Content="Intune Device Collections" Margin="0,5,0,5"/> </Grid> <TextBox x:Name="DescriptionRichTextBox" Grid.Column="1" Grid.Row="0" BorderThickness="0,0,0,0" TextWrapping="WrapWithOverflow" Margin="0,15,15,15" IsReadOnly="True"/> <Button x:Name="ExitButton" Content="Exit" HorizontalAlignment="Right" Width="70" Padding="1,1,1,1" Grid.Column="1" VerticalAlignment="Bottom" Margin="0,10,15,10" Grid.Row="1"/> </Grid> <Label x:Name="LoadingLabel" Content="Please wait while loading....." HorizontalAlignment="Center" VerticalAlignment="Center" BorderThickness="2,2,2,2" Width="200" Height="50" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" FontSize="16"> <Label.BorderBrush> <SolidColorBrush Color="{DynamicResource {x:Static SystemColors.GradientInactiveCaptionColorKey}}"/> </Label.BorderBrush> <Label.Background> <SolidColorBrush Color="{DynamicResource {x:Static SystemColors.HighlightColorKey}}"/> </Label.Background> </Label> <StatusBar Height="20" VerticalAlignment="Bottom"> <StatusBarItem x:Name="AccountStatusBarItem" Content="Running as" VerticalAlignment="Center" Margin="5,0,0,0" HorizontalAlignment="Left" FontSize="10"/> <StatusBarItem x:Name="UpdateStatusBarItem" Content="" VerticalAlignment="Center" Margin="5,0,0,0" HorizontalAlignment="Right" FontSize="10"/> </StatusBar> <Menu VerticalAlignment="Top" Height="20"> <MenuItem Header="File"> <MenuItem Header="Features"> <MenuItem x:Name="EnableSCCMMenuItem" Header="Enable SCCM" IsCheckable="True"/> <MenuItem x:Name="EnableExchangeMenuItem" Header="Enable Exchange" IsCheckable="True"/> </MenuItem> <MenuItem Header="Theme"> <MenuItem x:Name="DarkThemeMenuItem" Header="Dark Theme" IsCheckable="True"/> </MenuItem> <MenuItem x:Name="AboutMenuItem" Header="About"/> <Separator/> <MenuItem x:Name="ExitMenuItem" Header="_Exit"/> </MenuItem> </Menu> </Grid> </Window> |