Forms/Join-AutopilotOOBE.xaml
<Controls:MetroWindow
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:iconPacks="http://metro.mahapps.com/winfx/xaml/iconpacks" xmlns:Controls = "clr-namespace:MahApps.Metro.Controls;assembly=MahApps.Metro" Title = "" Background = "#F7FAFC" BorderBrush = "{DynamicResource MahApps.Brushes.Accent}" BorderThickness = "0" GlowBrush = "Black" NonActiveGlowBrush = "Black" Width = "980" Height = "670" OverrideDefaultWindowCommandsBrush = "LightGray" ResizeMode = "CanResizeWithGrip" TitleForeground = "Black" WindowStartupLocation = "CenterScreen" WindowTitleBrush = "#F7FAFC" NonActiveWindowTitleBrush = "#F7FAFC" WindowTransitionsEnabled = "False"> <Window.Resources> <ResourceDictionary> <ResourceDictionary.MergedDictionaries> <!-- MahApps.Metro resource dictionaries. Make sure that all file names are Case Sensitive! --> <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Controls.xaml" /> <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Fonts.xaml" /> <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Colors.xaml" /> <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Accents/Cobalt.xaml" /> <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Accents/BaseLight.xaml" /> </ResourceDictionary.MergedDictionaries> <Style TargetType="{x:Type Window}"> <Setter Property="FontFamily" Value="Segoe UI" /> <Setter Property="FontWeight" Value="Light" /> <Setter Property="Background" Value="#1f1f1f" /> <Setter Property="Foreground" Value="black" /> </Style> <Style TargetType="{x:Type Button}"> <Setter Property="Background" Value="#FF1D3245" /> <Setter Property="Foreground" Value="#FFE8EDF9" /> <Setter Property="FontSize" Value="15" /> <Setter Property="SnapsToDevicePixels" Value="True" /> <Setter Property="Template"> <Setter.Value> <ControlTemplate TargetType="Button" > <Border Name = "Border" BorderThickness = "2" Padding = "4,2" BorderBrush = "#003E92" CornerRadius = "5" Background = "#0067C0"> <ContentPresenter HorizontalAlignment = "Center" VerticalAlignment = "Center" TextBlock.TextAlignment = "Center" /> </Border> <ControlTemplate.Triggers> <Trigger Property = "IsFocused" Value = "False"> <Setter TargetName = "Border" Property = "BorderBrush" Value = "#0078d7" /> <Setter Property = "Button.Background" Value = "#0078d7" /> </Trigger> <Trigger Property = "IsMouseOver" Value="True"> <Setter TargetName = "Border" Property = "BorderBrush" Value = "#FF003E92" /> </Trigger> <Trigger Property = "IsEnabled" Value = "False"> <Setter TargetName = "Border" Property = "BorderBrush" Value = "#336891" /> <Setter Property = "Button.Foreground" Value = "#336891" /> </Trigger> </ControlTemplate.Triggers> </ControlTemplate> </Setter.Value> </Setter> </Style> <Style TargetType="{x:Type Label}"> <Setter Property = "FontFamily" Value = "Segoe UI" /> </Style> <Style TargetType="{x:Type TextBox}"> <Setter Property = "FontFamily" Value = "Segoe UI" /> </Style> <Style TargetType="{x:Type ComboBox}"> <Setter Property = "FontFamily" Value = "Segoe UI" /> </Style> </ResourceDictionary> </Window.Resources> <Grid> <Grid.ColumnDefinitions> <ColumnDefinition Width="140"/> <ColumnDefinition Width="*"/> <ColumnDefinition Width="600"/> <ColumnDefinition Width="*"/> <ColumnDefinition Width="140"/> </Grid.ColumnDefinitions> <Grid.RowDefinitions> <RowDefinition Height="*"/> <RowDefinition Height="65"/> <RowDefinition Height="35"/> <RowDefinition Height="*"/> <RowDefinition Height="380"/> <RowDefinition Height="*"/> <RowDefinition Height="120"/> <RowDefinition Height="10"/> </Grid.RowDefinitions> <Border Grid.Column = "0" Grid.Row = "6" Background = "Transparent"/> <Border Grid.Column = "4" Grid.Row = "6" Background = "Transparent"/> <StackPanel Grid.Column = "4" Grid.Row = "1" VerticalAlignment = "Top"> <Label Name = "SidebarModuleVersion" Content = "" FontFamily = "Segoe UI" FontSize = "11" Foreground = "Black" HorizontalAlignment = "Right" Padding = "10,1,10,0" /> </StackPanel> <StackPanel Grid.Column = "4" Grid.Row = "6" VerticalAlignment = "Bottom" HorizontalAlignment = "Right"> <Label Name = "SidebarManufacturer" Content = "" FontFamily = "Segoe UI" FontSize = "11" Foreground = "Black" Padding = "10,1,10,0" /> <Label Name = "SidebarModel" Content = "" FontFamily = "Segoe UI" FontSize = "11" Foreground = "Black" Padding = "10,1,10,0" /> <Label Name = "SidebarSerialNumber" Content = "" FontFamily = "Segoe UI" FontSize = "11" Foreground = "Black" Padding = "10,1,10,0" /> <Label Name = "SidebarBiosVersion" Content = "" FontFamily = "Segoe UI" FontSize = "11" Foreground = "Black" Padding = "10,1,10,0" /> <Label Name = "SidebarTpmVersion" Content = "" FontFamily = "Segoe UI" FontSize = "11" Foreground = "White" Padding = "10,1,10,0" /> </StackPanel> <StackPanel Grid.Column = "0" Grid.ColumnSpan = "5" Grid.Row = "1"> <Label Name = "TitleMain" Content = "Autopilot Manual Enrollment" FontFamily = "Segoe UI" FontSize = "44" Foreground = "Black" HorizontalAlignment = "Center" /> </StackPanel> <StackPanel Grid.Column = "0" Grid.ColumnSpan = "5" Grid.Row = "2"> <Label Name = "TitleMinor" Content = "" FontFamily = "Segoe UI" FontSize = "15" Foreground = "Black" HorizontalAlignment = "Center" /> </StackPanel> <StackPanel Grid.Column = "2" Grid.Row = "4"> <StackPanel x:Name = "StackPanelGroupTag" Orientation = "Horizontal" HorizontalAlignment = "Right" VerticalAlignment = "Center" Margin = "7"> <Label Name = "GroupTagLabel" Content = "GroupTag:" FontFamily = "Segoe UI" FontSize = "15" Foreground = "Black" /> <ComboBox Name = "GroupTagComboBox" BorderThickness = "2" FontFamily = "Segoe UI" FontSize = "15" FontWeight = "Normal" Foreground = "Black" Height = "40" IsEditable = "true" Padding = "8" Width = "380" /> </StackPanel> <StackPanel x:Name = "StackPanelAddToGroup" Orientation = "Horizontal" HorizontalAlignment = "Right" VerticalAlignment = "Center" Margin = "7"> <Label Name = "AddToGroupLabel" Content = "AddToGroup:" FontFamily = "Segoe UI" FontSize = "15" Foreground = "Black" /> <ComboBox Name = "AddToGroupComboBox" BorderThickness = "2" FontFamily = "Segoe UI" FontSize = "15" FontWeight = "Normal" Foreground = "Black" Height = "40" IsEditable = "true" Width = "380" Padding = "8" /> </StackPanel> <StackPanel x:Name = "StackPanelAssignedUser" Orientation = "Horizontal" HorizontalAlignment = "Right" VerticalAlignment = "Center" Margin = "7"> <Label Name = "AssignedUserLabel" Content = "AssignedUser:" FontFamily = "Segoe UI" FontSize = "15" Foreground = "Black" /> <TextBox Name = "AssignedUserTextBox" BorderThickness = "2" FontFamily = "Segoe UI" FontSize = "15" FontWeight = "Normal" Foreground = "Black" Height = "40" Width = "380" Padding = "8" /> </StackPanel> <StackPanel x:Name = "StackPanelAssignedComputerName" Orientation = "Horizontal" HorizontalAlignment = "Right" VerticalAlignment = "Center" Margin = "7"> <Label Name = "AssignedComputerNameLabel" Content = "AssignedComputerName:" FontFamily = "Segoe UI" FontSize = "15" Foreground = "Black" /> <TextBox Name = "AssignedComputerNameTextBox" BorderThickness = "2" FontFamily = "Segoe UI" FontSize = "15" FontWeight = "Normal" Foreground = "Black" Height = "40" Text = "Azure AD Join Only" Width = "380" Padding = "8" /> </StackPanel> <StackPanel x:Name = "StackPanelPostAction" Orientation = "Horizontal" HorizontalAlignment = "Right" VerticalAlignment = "Center" Margin = "7"> <Label Name = "PostActionLabel" Content = "PostAction:" FontFamily = "Segoe UI" FontSize = "15" Foreground = "Black" /> <ComboBox Name = "PostActionComboBox" BorderThickness = "2" FontFamily = "Segoe UI" FontSize = "15" FontWeight = "Normal" Foreground = "Black" Height = "40" Padding = "8" Width = "380" /> </StackPanel> <StackPanel x:Name = "StackPanelAssign" Orientation = "Horizontal" HorizontalAlignment = "Right" VerticalAlignment = "Center" Margin = "7"> <CheckBox Name = "AssignCheckbox" BorderThickness = "2" FontFamily = "Segoe UI" FontSize = "15" Foreground = "Black" >Assign: Wait for Intune to assign an Autopilot profile for this device </CheckBox> </StackPanel> <StackPanel x:Name = "StackPanelRegister" Orientation = "Horizontal" HorizontalAlignment = "Right" VerticalAlignment = "Center" Margin = "7"> <Button Name = "RegisterButton" Content = "Register" FontFamily = "Segoe UI" FontSize = "15" Height = "40" Width = "170" /> </StackPanel> <StackPanel x:Name = "StackPanelInformation" Orientation = "Horizontal" HorizontalAlignment = "Left" VerticalAlignment = "Center" Margin = "7"> <Label Name = "InformationLabel" Content = "" FontFamily = "Segoe UI" FontSize = "17" Foreground = "LightGray" /> </StackPanel> </StackPanel> <StackPanel Grid.Column = "2" Grid.Row = "6" VerticalAlignment = "Bottom"> <StackPanel x:Name = "StackPanelRun" Orientation = "Horizontal" HorizontalAlignment = "Right" VerticalAlignment = "Center" Margin = "7"> <Button Name = "RunButton" Content = "Run" FontSize = "15" FontWeight = "Normal" Height = "40" Width = "60" /> <ComboBox Name = "RunComboBox" BorderThickness = "2" FontSize = "15" FontWeight = "Normal" Foreground = "Black" Height = "40" Padding = "8" Width = "500" /> </StackPanel> <StackPanel x:Name = "StackPanelDocs" Orientation = "Horizontal" HorizontalAlignment = "Right" VerticalAlignment = "Center" Margin = "7"> <Button Name = "DocsButton" Content = "Docs" FontSize = "15" FontWeight = "Normal" Height = "40" Width = "60" /> <ComboBox Name = "DocsComboBox" BorderThickness = "2" FontSize = "15" FontWeight = "Normal" Foreground = "Black" Height = "40" Padding = "8" Width = "500" /> </StackPanel> </StackPanel> </Grid> </Controls:MetroWindow> |