functions/private/Get-XAML.ps1
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 |
function Get-XAML { [OutputType([hashtable])] [cmdletbinding()] $xaml = @{ GUI = @" <Window 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" DataContext="{Binding ViewModel}" Title="Microsoft Azure Small Business Server Solution Accelerator" Height="800" Width="1200" Background="White" WindowStyle="None"> <Window.Resources> <Style TargetType="{x:Type Button}"> <Setter Property="HorizontalAlignment" Value="Left" /> <Setter Property="VerticalAlignment" Value="Top" /> <Setter Property="Margin" Value="10" /> </Style> </Window.Resources> <Grid Height="Auto"> <Grid.ColumnDefinitions> <ColumnDefinition Name="SectionColumn" Width="100" /> <ColumnDefinition Name="ContentColumn" /> </Grid.ColumnDefinitions> <Grid.RowDefinitions> <RowDefinition Name="MainTitle" Height="35" /> <RowDefinition Name="MainHeaders" Height="Auto" /> <RowDefinition Name="MainTabs" Height="Auto" /> <RowDefinition Name="MainButtons" Height="Auto" /> <RowDefinition Name="Log" Height="*" /> <RowDefinition Name="Logo" Height="Auto" /> </Grid.RowDefinitions> <Grid Grid.Row="0" Grid.ColumnSpan="2" > <Grid.Background> <SolidColorBrush Color="#FF0088FF" /> </Grid.Background> <TextBlock Name="Lbl_Title" Grid.Column="0" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="20" Foreground="White">SMB Deployment GUI</TextBlock> <StackPanel Orientation="Horizontal" Grid.Column="1" HorizontalAlignment="Right"> <Button Name="CloseButton" Height="35" Width="35" HorizontalAlignment="Right" VerticalAlignment="Top" FontWeight="Bold" FontSize="14" Margin="0,0"> <Button.Background> <SolidColorBrush Opacity="100" /> </Button.Background> <Button.Foreground> <SolidColorBrush Color="White" /> </Button.Foreground> <Button.BorderBrush> <SolidColorBrush Opacity="100" /> </Button.BorderBrush> X </Button> </StackPanel> </Grid> <Grid Grid.Row="5" Grid.ColumnSpan="2"> <Grid.ColumnDefinitions> <ColumnDefinition Name="HeaderLeft" /> <ColumnDefinition Name="HeaderRight" /> </Grid.ColumnDefinitions> <StackPanel Grid.Column="0"> <Image Name="AzureLogo" Source="D:\OneDrive - Inovativ\Projects\Microsoft\SBS\dev\GUI\src\azure.png" Stretch="Fill" HorizontalAlignment="Left" Width="150" Height="50" /> <TextBlock FontSize="20">SMB Blueprint</TextBlock> </StackPanel> <StackPanel Grid.Column="1" VerticalAlignment="Bottom"> <Image Name="MicrosoftLogo" Source="D:\OneDrive - Inovativ\Projects\Microsoft\SBS\dev\GUI\src\microsoft.png" VerticalAlignment="Stretch" HorizontalAlignment="Right" Height="50" Width="300" /> <StackPanel Orientation="Horizontal" HorizontalAlignment="Right"> <TextBlock HorizontalAlignment="Right" VerticalAlignment="Center">Powered By</TextBlock> <Image Name="InovativLogo" Source="D:\OneDrive - Inovativ\Projects\Microsoft\SBS\dev\GUI\src\inovativ.png" Height="20" Width="90" HorizontalAlignment="Right" VerticalAlignment="Center" /> </StackPanel> </StackPanel> </Grid> <Grid Grid.Row="2" Grid.Column="0"> <Grid.Resources> </Grid.Resources> <StackPanel VerticalAlignment="Stretch" HorizontalAlignment="Center"> <Button Name="Btn_HomeLink"> <Button.Background> <SolidColorBrush Opacity="100" /> </Button.Background> <Button.Foreground> <SolidColorBrush Color="Blue" /> </Button.Foreground> <Button.BorderBrush> <SolidColorBrush Opacity="100" /> </Button.BorderBrush> Home </Button> <Button Name="Btn_O365Link"> <Button.Background> <SolidColorBrush Opacity="100" /> </Button.Background> <Button.Foreground> <SolidColorBrush Color="Blue" /> </Button.Foreground> <Button.BorderBrush> <SolidColorBrush Opacity="100" /> </Button.BorderBrush> Office 365 </Button> <Button Name="Btn_AzureLink"> <Button.Background> <SolidColorBrush Opacity="100" /> </Button.Background> <Button.Foreground> <SolidColorBrush Color="Blue" /> </Button.Foreground> <Button.BorderBrush> <SolidColorBrush Opacity="100" /> </Button.BorderBrush> Azure </Button> <Button Name="Btn_LogLink"> <Button.Background> <SolidColorBrush Opacity="100" /> </Button.Background> <Button.Foreground> <SolidColorBrush Color="Blue" /> </Button.Foreground> <Button.BorderBrush> <SolidColorBrush Opacity="100" /> </Button.BorderBrush> Log </Button> </StackPanel> </Grid> <TabControl Name="Tab_MainControl" Grid.Row="2" Grid.Column="1" Height="650" BorderThickness="0"> <TabControl.ItemContainerStyle> <Style x:Name="Style_HideTabs" TargetType="{x:Type TabItem}"> <Setter Property="Visibility" Value="{Binding RelativeSource={RelativeSource Mode=FindAncestor,AncestorType=Window}, Path=DataContext.TabState}"/> </Style> </TabControl.ItemContainerStyle> <TabItem Name="General" Header="General" > <Grid> <!--<GroupBox Name="Grp_O365Connection" Header="Microsoft O365 Connection" Margin="0,50,0,0"> <Grid> <Label Margin="0,5,0,0" VerticalAlignment="Top" HorizontalAlignment="Left">User:</Label> <TextBox Name="Txt_OLogonUser" Margin="100,10,0,0" VerticalAlignment="Top" HorizontalAlignment="Left" Width="150" /> <Label VerticalAlignment="Top" Margin="270,5,0,0" HorizontalAlignment="Left">Password:</Label> <PasswordBox Name="Txt_OLogonPass" Margin="340,10,0,0" VerticalAlignment="Top" HorizontalAlignment="Left" Width="100" /> <Button Name="Btn_ConnectToO365" Margin="470,10,0,0" VerticalAlignment="Top">Connect</Button> <Label Margin="0,40,0,0" VerticalAlignment="Top" HorizontalAlignment="Left">Tenant Domain:</Label> <TextBox Name="Txt_ODomain" Margin="100,45,0,0" VerticalAlignment="Top" HorizontalAlignment="Left" Width="150" /> <Label Margin="250,40,0,0" VerticalAlignment="Top" HorizontalAlignment="Left">.onmicrosoft.com</Label> </Grid> </GroupBox> --> <GroupBox Name="Grp_AConnection" Header="Microsoft Azure Connection" Height="100" VerticalAlignment="Top"> <StackPanel> <StackPanel Orientation="Horizontal"> <Label VerticalAlignment="Center" HorizontalAlignment="Left">User:</Label> <TextBox Name="Txt_LogonUser" VerticalAlignment="Center" HorizontalAlignment="Left" Width="300" /> <Label HorizontalAlignment="Left" VerticalAlignment="Center">Password:</Label> <PasswordBox Name="Txt_LogonPass" VerticalAlignment="Center" HorizontalAlignment="Left" Width="150" /> <Button Name="Btn_ConnectToAzure" VerticalAlignment="Center">Connect</Button> </StackPanel> <StackPanel Orientation="Horizontal"> <Label VerticalAlignment="Center" HorizontalAlignment="Left">Tenant:</Label> <ComboBox Name="Cmb_Tenants" VerticalAlignment="Center" HorizontalAlignment="Left" Width="300" /> </StackPanel> </StackPanel> </GroupBox> </Grid> </TabItem> <TabItem Name="Tab_O365" Header="O365"> <StackPanel> <Button Margin="0,0,0,0" HorizontalAlignment="Center" Name="btnImportCSV" Height="20" Width="100" VerticalAlignment="Center" Background="#FF8B97A2" Foreground="White" FontWeight="ExtraBold">Import CSV...</Button> <!--<GroupBox Margin="0,10,711.2,553.4" Name="Grp_TenantInf" Header="Tenant Information"> <Grid Margin="0,0,0,0"> <Label VerticalAlignment="Top" Margin="0,0,0,0" HorizontalAlignment="Left">Tenant Name:</Label> <TextBox Name="Txt_TenantName" Margin="100,5,0,0" VerticalAlignment="Top" HorizontalAlignment="Left" Width="250" /> <Label VerticalAlignment="Top" Margin="0,35,0,0" HorizontalAlignment="Left">Address:</Label> <TextBox Name="txt_TenantAddress" Margin="100,40,0,0" VerticalAlignment="Top" HorizontalAlignment="Left" Width="250" /> <Label VerticalAlignment="Top" Margin="0,70,0,0" HorizontalAlignment="Left">Number:</Label> <TextBox Name="txt_AddNumber" Margin="100,75,0,0" VerticalAlignment="Top" HorizontalAlignment="Left" Width="50" /> <Label VerticalAlignment="Top" Margin="0,105,0,0" HorizontalAlignment="Left">ZIP:</Label> <TextBox Name="txt_TenantZIP" Margin="100,110,0,0" VerticalAlignment="Top" HorizontalAlignment="Left" Width="50" /> <Label VerticalAlignment="Top" Margin="0,140,0,0" HorizontalAlignment="Left">State:</Label> <TextBox Name="txt_TenantState" Margin="100,145,0,0" VerticalAlignment="Top" HorizontalAlignment="Left" Width="250" /> <Label VerticalAlignment="Top" Margin="160,105,0,0" HorizontalAlignment="Left">City:</Label> <TextBox Name="txt_City" Margin="200,110,0,0" VerticalAlignment="Top" HorizontalAlignment="Left" Width="150" /> <Label VerticalAlignment="Top" Margin="0,170,0,0" HorizontalAlignment="Left">Country:</Label> <TextBox Name="txt_TenantCountry" Margin="100,175,0,0" VerticalAlignment="Top" HorizontalAlignment="Left" Width="250" /> <Label VerticalAlignment="Top" Margin="0,205,0,0" HorizontalAlignment="Left">Office Phone:</Label> <TextBox Name="txt_TenantPh" Margin="100,210,0,0" VerticalAlignment="Top" HorizontalAlignment="Left" Width="250" /> <Label VerticalAlignment="Top" Margin="0,240,0,0" HorizontalAlignment="Left">Fax Number:</Label> <TextBox Name="txt_TenantFax" Margin="100,245,0,0" VerticalAlignment="Top" HorizontalAlignment="Left" Width="250" /> </Grid> </GroupBox> --> <GroupBox Name="Grp_GroupInfo" Header="Groups"> <StackPanel> <StackPanel Orientation="Horizontal"> <StackPanel Orientation="Vertical" Width="240" VerticalAlignment="Center"> <TextBlock TextWrapping="Wrap">Please use the user input section to manage O365 groups</TextBlock> </StackPanel> <StackPanel Orientation="Vertical" Margin="0,0,0,0"> <DataGrid Name="GroupGrid" ItemsSource="{Binding Path=DataContext.Groups,RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Window}}}" IsReadOnly="False" AutoGenerateColumns="False" CanUserAddRows="False" CanUserDeleteRows="False" VerticalAlignment="Top" HorizontalAlignment="Stretch" Height="150" Width="800" > <DataGrid.Resources> <DataTemplate x:Key="GetOwner"> <TextBlock Text="{Binding Path=Owner,NotifyOnSourceUpdated=True}" /> </DataTemplate> <DataTemplate x:Key="SetOwner"> <ComboBox Name="Cmb_Owners" ItemsSource="{Binding Path=DataContext.Users,RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Window}}}" SelectedItem="{Binding Path=Owner}" /> </DataTemplate> </DataGrid.Resources> <DataGrid.Columns> <DataGridTextColumn IsReadOnly="True" Header="Group Name" Width="150" Binding="{Binding Path=Name}" /> <!--<DataGridTextColumn IsReadOnly="True" Header="Group Description" Width="350" Binding="{Binding Path=Description}" />--> <DataGridTextColumn IsReadOnly="True" Header="Owner" Width="150" Binding="{Binding Path=Owner}"> </DataGridTextColumn> </DataGrid.Columns> </DataGrid> </StackPanel> </StackPanel> </StackPanel> </GroupBox> <GroupBox Name="Grp_UserInfo" Height="Auto" Width="Auto" HorizontalAlignment="Left" VerticalAlignment="Top" Header="Users"> <StackPanel Orientation="Horizontal"> <Grid Name="Grd_UserInput"> <Grid.ColumnDefinitions> <ColumnDefinition Width="80" /> <ColumnDefinition Width="160" /> </Grid.ColumnDefinitions> <Grid.RowDefinitions> <RowDefinition Height="30" /> <RowDefinition Height="30" /> <RowDefinition Height="30" /> <RowDefinition Height="30" /> <RowDefinition Height="30" /> <RowDefinition Height="30" /> <RowDefinition Height="30" /> <RowDefinition Height="30" /> <RowDefinition Height="30" /> <RowDefinition Height="40" /> </Grid.RowDefinitions> <Label Grid.Column="0" Grid.Row="0" VerticalAlignment="Center">First Name</Label> <Label Grid.Column="0" Grid.Row="1" VerticalAlignment="Center" HorizontalAlignment="Left">Last Name</Label> <Label Grid.Column="0" Grid.Row="2" VerticalAlignment="Center" HorizontalAlignment="Left" >Function</Label> <Label Grid.Column="0" Grid.Row="3" VerticalAlignment="Center" >Department</Label> <Label Grid.Column="0" Grid.Row="4" VerticalAlignment="Center" HorizontalAlignment="Left" >Office</Label> <Label Grid.Column="0" Grid.Row="5" VerticalAlignment="Center" >Mobile</Label> <Label Grid.Column="0" Grid.Row="6" VerticalAlignment="Center" >Country</Label> <Label Grid.Column="0" Grid.Row="7" VerticalAlignment="Center" >Group</Label> <Label Grid.Column="0" Grid.Row="8" VerticalAlignment="Center" >License</Label> <TextBox Grid.Column="1" Grid.Row="0" Name="Txt_FirstName" VerticalAlignment="Center" HorizontalAlignment="Left" Width="150"></TextBox> <TextBox Grid.Column="1" Grid.Row="1" VerticalAlignment="Center" HorizontalAlignment="Left" Name="Txt_LastName" Width="150"></TextBox> <TextBox Grid.Column="1" Grid.Row="2" VerticalAlignment="Center" HorizontalAlignment="Left" Name="Txt_Function" Width="150"></TextBox> <TextBox Grid.Column="1" Grid.Row="3" VerticalAlignment="Center" HorizontalAlignment="Left" Name="Txt_Department" Width="150"></TextBox> <TextBox Grid.Column="1" Grid.Row="4" VerticalAlignment="Center" HorizontalAlignment="Left" Name="Txt_Office" Width="150"></TextBox> <TextBox Grid.Column="1" Grid.Row="5" VerticalAlignment="Center" HorizontalAlignment="Left" Name="Txt_Mobile" Width="150"></TextBox> <ComboBox Grid.Column="1" Grid.Row="6" VerticalAlignment="Center" HorizontalAlignment="Left" Name="Cmb_Country" Width="150"> <ComboBoxItem Tag="BE" IsSelected="True">Belgium</ComboBoxItem> <ComboBoxItem Tag="NL" IsSelected="False">Netherlands</ComboBoxItem> <ComboBoxItem Tag="LU" IsSelected="False">Luxembourg</ComboBoxItem> </ComboBox> <ComboBox ItemsSource="{Binding Path=DataContext.Groups,RelativeSource={RelativeSource Mode=FindAncestor,AncestorType=Window}}" IsEditable="True" TextSearch.TextPath="Name" Grid.Column="1" Grid.Row="7" VerticalAlignment="Center" HorizontalAlignment="Left" Name="Cmb_Groups" Width="150"> </ComboBox> <ComboBox Grid.Column="1" Grid.Row="8" VerticalAlignment="Center" HorizontalAlignment="Left" Name="Cmb_Licenses" Width="150" /> <Button Grid.ColumnSpan="2" Grid.Column="0" Grid.Row="9" VerticalAlignment="Top" HorizontalAlignment="Center" Name="Btn_AddUser" Height="20" Width="50" Background="#FF8B97A2" Foreground="White">Add</Button> </Grid> <Grid> <Grid.ColumnDefinitions> <ColumnDefinition /> <ColumnDefinition /> </Grid.ColumnDefinitions> <Grid.RowDefinitions> <RowDefinition Height="Auto" /> <RowDefinition Height="Auto" /> </Grid.RowDefinitions> <DataGrid Grid.Column="0" Grid.Row="0" Name="UserGrid" ItemsSource="{Binding Path=Users,UpdateSourceTrigger=PropertyChanged,Mode=OneWay}" IsReadOnly="True" AutoGenerateColumns="False" CanUserAddRows="False" CanUserDeleteRows="False" VerticalAlignment="Top" Height="200" Width="800"> <DataGrid.Columns> <DataGridTextColumn Header="First Name" Width="80" Binding="{Binding Path=First}" /> <DataGridTextColumn Header="Last Name" Width="100" Binding="{Binding Path=Last}" /> <!-- <DataGridTextColumn Header="DisplayName" Width="150" Binding="{Binding Path=First}" /> --> <DataGridTextColumn Header="Title" Width="100" Binding="{Binding Path=Title}" /> <DataGridTextColumn Header="Department" Width="100" Binding="{Binding Path=Department}" /> <DataGridTextColumn Header="Office" Width="100" Binding="{Binding Path=Office}" /> <DataGridTextColumn Header="Mobile" Width="100" Binding="{Binding Path=Mobile}" /> <DataGridTextColumn Header="Country" Width="60" Binding="{Binding Path=Country}" /> <DataGridTextColumn Header="License" Width="100" Binding="{Binding Path=License}" /> <DataGridTextColumn Header="Group" Width="100" Binding="{Binding Path=Groups[0]}" /> <!-- <DataGridComboBoxColumn Header="License" ItemsSource="{Binding Path=Licenses}" DisplayMemberPath="Name" /> --> </DataGrid.Columns> </DataGrid> <StackPanel Orientation="Horizontal" Grid.Row="1" Grid.ColumnSpan="2" HorizontalAlignment="Right"> <Button Name="btn_DeleteUsers" Margin="0,0,0,0" VerticalAlignment="Top" HorizontalAlignment="Right" Height="20" Width="50" Background="#FF8B97A2" Foreground="White">Delete</Button> <Button Name="btn_ClearUsers" Margin="0,0,0,0" VerticalAlignment="Top" HorizontalAlignment="Right" Height="20" Width="50" Background="#FF8B97A2" Foreground="White">Clear</Button> </StackPanel> </Grid> </StackPanel> </GroupBox> <StackPanel Orientation="Horizontal" HorizontalAlignment="Center"> <TextBlock VerticalAlignment="Center">Mail Suffix:</TextBlock> <TextBox IsReadOnly="True" Name="Txt_Mail" Width="300" VerticalAlignment="Center" /> <Button Width="200" Height="50" Name="Btn_OfficeDeploy" Foreground="White" FontSize="20" Background="#FF24BE43">Provision Office 365</Button> </StackPanel> </StackPanel> </TabItem> <TabItem Name="Tab_Azure" Header="Azure"> <Grid> <Grid.ColumnDefinitions> <ColumnDefinition Width="71*"/> <ColumnDefinition Width="1016*"/> </Grid.ColumnDefinitions> <Grid.RowDefinitions> <RowDefinition Name="RoleTitle" /> <RowDefinition Name="RoleContent" /> </Grid.RowDefinitions> <StackPanel Grid.ColumnSpan="2" Grid.RowSpan="2"> <GroupBox Name="grpzureConnection" Header="1. Azure Connection" > <StackPanel Orientation="Horizontal"> <Label VerticalAlignment="Top" HorizontalAlignment="Left">Subscription:</Label> <ComboBox Name="Cmb_Subscriptions" VerticalAlignment="Center" HorizontalAlignment="Left" Width="250"></ComboBox> </StackPanel> </GroupBox> <GroupBox Header="2. Scenario Selection" > <Grid> <StackPanel VerticalAlignment="Center"> <RadioButton Name="Rad_Small" Tag="small" FontSize="20" IsChecked="True" VerticalAlignment="Center" VerticalContentAlignment="Center">Small</RadioButton> <RadioButton Name="Rad_Medium" Tag="medium" FontSize="20" VerticalAlignment="Center" VerticalContentAlignment="Center">Medium</RadioButton> <RadioButton Name="Rad_Large" Tag="large" FontSize="20" VerticalAlignment="Center" VerticalContentAlignment="Center" >Large</RadioButton> </StackPanel> <!--<Button Name="btn_Small" Margin="0,20,0,0" VerticalAlignment="Top" HorizontalAlignment="Left" Height="30" Width="100" Background="#FF0088FF" Foreground="White">Small</Button> <Button Name="btn_Medium" Margin="0,60,0,0" VerticalAlignment="Top" HorizontalAlignment="Left" Height="30" Width="100" Background="#FF277CC9" Foreground="White">Medium</Button> <Button Name="btn_Large" Margin="0,100,0,0" VerticalAlignment="Top" HorizontalAlignment="Left" Height="30" Width="100" Background="#FF3E59C5" Foreground="White">Large</Button> <CheckBox Name="Chk_AzureSmall" Margin="150,30,0,0" Content="Deploy VNet, subnet, Server and enable AD, file and RDS services"></CheckBox> <CheckBox Name="Chk_AzureMedium" Margin="150,70,0,0" Content="Deploy VNet, subnets, Server and enable AD, file and RDS services"></CheckBox> <CheckBox Name="Chk_AzureLarge" Margin="150,110,0,0" Content="Deploy VNet, subnets, Server and enable AD, file and RDS (dedicated) services"></CheckBox> --> </Grid> </GroupBox> <GroupBox Header="3. Additional Options"> <Grid> <Grid.ColumnDefinitions> <ColumnDefinition Width="200" /> <ColumnDefinition Width="100"/> </Grid.ColumnDefinitions> <Grid.RowDefinitions> <RowDefinition /> <RowDefinition /> <RowDefinition /> <RowDefinition /> </Grid.RowDefinitions> <Label Grid.Column="0" Grid.Row="0" Grid.ColumnSpan="2">Provision additional VM:</Label> <ComboBox Grid.Column="2" Grid.Row="0" Name="Cmb_ExtraVMSize"> <ComboBoxItem Tag="none" IsSelected="True">No</ComboBoxItem> <ComboBoxItem Tag="small">Small</ComboBoxItem> <ComboBoxItem Tag="medium">Medium</ComboBoxItem> </ComboBox> <Label Grid.Column="0" Grid.Row="1" Grid.ColumnSpan="2">Provision SQL SaaS:</Label> <ComboBox Grid.Column="2" Grid.Row="1" Name="Cmb_ExtraSQLSize"> <ComboBoxItem Tag="none" IsSelected="True">No</ComboBoxItem> <ComboBoxItem Tag="small">Yes</ComboBoxItem> </ComboBox> <Label Grid.Column="0" Grid.Row="2" Grid.ColumnSpan="2">Provision Azure Backup Service:</Label> <ComboBox Grid.Column="2" Grid.Row="2" Name="Cmb_Backup"> <ComboBoxItem Tag="none" IsSelected="True">No</ComboBoxItem> <ComboBoxItem Tag="standard">Yes</ComboBoxItem> </ComboBox> <Label Grid.Column="0" Grid.Row="3" Grid.ColumnSpan="2">Provision VPN:</Label> <ComboBox Grid.Column="2" Grid.Row="3" Name="Cmb_VPN"> <ComboBoxItem Tag="none" IsSelected="True">No</ComboBoxItem> <ComboBoxItem Tag="basic">Yes</ComboBoxItem> </ComboBox> <!-- <CheckBox Name="Chk_AzureSQL" Margin="150,10,0,0" Content="Deploy Azure SQL database"></CheckBox> <CheckBox Name="Chk_AzureVM" Margin="150,50,0,0" Content="Deploy Extra VM"></CheckBox> --> </Grid> </GroupBox> <GroupBox Grid.Row="1" Header="4. Execute" > <StackPanel Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Center"> <Label VerticalAlignment="Center">Customer Name</Label> <TextBox VerticalAlignment="Center" Name="Txt_Customer" Width="100" /> <Button Name="btn_Deploy" VerticalAlignment="Center" HorizontalAlignment="Center" Height="30" Width="100" Background="#FF24BE43">Deploy Solution</Button> </StackPanel> </GroupBox> </StackPanel> </Grid> </TabItem> <TabItem Name="Tab_Log" Header="Log" VerticalAlignment="Stretch" HorizontalAlignment="Stretch"> <Grid VerticalAlignment="Stretch" HorizontalAlignment="Stretch"> <StackPanel> <GroupBox Grid.ColumnSpan="3" Header="Deployment" VerticalAlignment="Stretch" HorizontalAlignment="Stretch"> <Grid> <Grid.ColumnDefinitions> <ColumnDefinition Width="150" /> <ColumnDefinition Width="500" /> </Grid.ColumnDefinitions> <Grid.RowDefinitions> <RowDefinition /> <RowDefinition /> <RowDefinition /> <RowDefinition /> <RowDefinition /> </Grid.RowDefinitions> <Label Grid.Column="0" Grid.Row="0">Deployment Type</Label> <TextBox Grid.Column="1" Grid.Row="0" IsReadOnly="True" VerticalAlignment="Center" HorizontalAlignment="Center" Name="Txt_DeploymentType" Width="500"></TextBox> <Label Grid.Column="0" Grid.Row="1">Deployment Duration</Label> <TextBox Grid.Column="1" Grid.Row="1" VerticalAlignment="Center" IsReadOnly="True" HorizontalAlignment="Center" Name="Txt_DeploymentTime" Width="500"></TextBox> <Label Grid.Column="0" Grid.Row="3" VerticalAlignment="Top">Deployment Status</Label> <TextBox Grid.Column="1" Grid.Row="3" TextAlignment="Center" VerticalAlignment="Center" IsReadOnly="True" HorizontalAlignment="Center" Name="Txt_DeploymentStatus" Width="500" Height="100"></TextBox> <StackPanel Grid.ColumnSpan="2" Orientation="Horizontal" Grid.Column="0" Grid.Row="4"> <Button Name="Btn_CopyCredential">Copy Credentials</Button> <Button Name="Btn_CopyCommand">Copy PowerShell Command</Button> </StackPanel> </Grid> </GroupBox> <GroupBox Grid.ColumnSpan="3" Header="Log" VerticalAlignment="Stretch" HorizontalAlignment="Stretch"> <StackPanel> <DataGrid Name="Dgr_Log" AutoGenerateColumns="False" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Height="300" IsReadOnly="True"> <DataGrid.Columns> <DataGridTextColumn Header="Severity" Binding="{Binding Path=Severity}" /> <DataGridTextColumn Header="Component" Binding="{Binding Path=Component}" /> <DataGridTextColumn Header="Message" Binding="{Binding Path=Message}" /> <DataGridTextColumn Header="Timestamp" Binding="{Binding Path=Timestamp}" /> </DataGrid.Columns> </DataGrid> <Grid HorizontalAlignment="Stretch"> <CheckBox Margin="0,0,5,0" Name="Chk_AutoScroll" IsChecked="True">Auto-Scroll</CheckBox> <StackPanel Orientation="Horizontal" HorizontalAlignment="Right"> <TextBlock VerticalAlignment="Center" HorizontalAlignment="Right" Margin="0,0,5,0" Name="Txb_LogName">LogName</TextBlock> <Button Background="Transparent" Margin="0,0,0,0" BorderBrush="Transparent" VerticalAlignment="Center" Name="Btn_OpenLog">Open Log Location</Button> </StackPanel> </Grid> </StackPanel> </GroupBox> </StackPanel> </Grid> </TabItem> </TabControl> </Grid> </Window> "@ } return $xaml.GUI.Replace("D:\OneDrive - Inovativ\Projects\Microsoft\SBS\dev\GUI\src\","$script:root\gui\") } |