Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $xaml= @"
- <Window
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- Title="Bates Smart Meeting Rooms" Height="287.654" Width="393.618">
- <Grid Margin="0,0,2,0" RenderTransformOrigin="0.5,0.5">
- <Grid.RowDefinitions>
- <RowDefinition Height="3*"/>
- <RowDefinition Height="151*"/>
- </Grid.RowDefinitions>
- <Grid.RenderTransform>
- <TransformGroup>
- <ScaleTransform/>
- <SkewTransform/>
- <RotateTransform Angle="-0.061"/>
- <TranslateTransform/>
- </TransformGroup>
- </Grid.RenderTransform>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="0*"/>
- <ColumnDefinition/>
- </Grid.ColumnDefinitions>
- <Label Grid.ColumnSpan="2" Content="Network Drives " VerticalAlignment="Top" Margin="23,0,222,0" Height="31" RenderTransformOrigin="0.134,-0.288" FontSize="15" FontWeight="Bold" Grid.Row="1" />
- <Label Grid.ColumnSpan="2" Content="Meeting" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="38,86,0,0" Height="31" RenderTransformOrigin="0.134,-0.288" Width="127" Grid.Row="1" FontSize="16" FontWeight="Bold" >
- <Label.RenderTransform>
- <TransformGroup>
- <ScaleTransform/>
- <SkewTransform AngleX="-0.006"/>
- <RotateTransform/>
- <TranslateTransform X="0.001"/>
- </TransformGroup>
- </Label.RenderTransform>
- </Label>
- <Button Grid.ColumnSpan="2" Content="M Drive" HorizontalAlignment="Left" Margin="10,34,0,0" VerticalAlignment="Top" Width="75" Cursor="Hand" Grid.Row="1" />
- <Button Grid.ColumnSpan="2" Content="S Drive" HorizontalAlignment="Left" VerticalAlignment="Top" Width="75" Margin="96,34,0,0" Cursor="Hand" Grid.Row="1"/>
- <Button Grid.ColumnSpan="2" Content="G Drive" HorizontalAlignment="Left" VerticalAlignment="Top" Width="75" Margin="96,67,0,0" Cursor="Hand" Grid.Row="1" RenderTransformOrigin="0.237,0.62"/>
- <Button Grid.ColumnSpan="2" Content="O Drive" HorizontalAlignment="Left" VerticalAlignment="Top" Width="75" Margin="10,67,0,0" Cursor="Hand" Grid.Row="1"/>
- <Image x:Name="skype" Grid.ColumnSpan="2" HorizontalAlignment="Left" Height="39" Margin="35,120,0,0" VerticalAlignment="Top" Width="37" RenderTransformOrigin="0.5,0.5" Grid.Row="1">
- <Image.RenderTransform>
- <TransformGroup>
- <ScaleTransform/>
- <SkewTransform/>
- <RotateTransform Angle="-0.726"/>
- <TranslateTransform/>
- </TransformGroup>
- </Image.RenderTransform>
- <Image.Source>
- <BitmapImage UriSource="file:///C:/Users/anm/source/repos/PowerShellProject1/PowerShellProject1/img/skype.png"/>
- </Image.Source>
- </Image>
- <Image Grid.ColumnSpan="2" HorizontalAlignment="Left" Height="31" VerticalAlignment="Top" Width="54" Margin="86,124,0,0" RenderTransformOrigin="0.435,0.86" Grid.Row="1">
- <Image.Source>
- <BitmapImage UriSource="file:///C:/Users/anm/source/repos/PowerShellProject1/PowerShellProject1/img/teams.png"/>
- </Image.Source>
- </Image>
- <Label Grid.ColumnSpan="2" Content="Log into Computer
" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="10,160,0,0" Grid.Row="1" Width="161" FontSize="16" FontWeight="Bold" Height="32"/>
- <Image Grid.ColumnSpan="2" HorizontalAlignment="Left" Height="39" VerticalAlignment="Top" Width="47" Margin="54,197,0,0" Grid.Row="1">
- <Image.Source>
- <BitmapImage UriSource="file:///C:/Users/anm/source/repos/PowerShellProject1/PowerShellProject1/img/rdp.png"/>
- </Image.Source>
- </Image>
- <Rectangle Grid.ColumnSpan="2" Fill="#FFF4F4F5" HorizontalAlignment="Left" Height="222" Stroke="Black" VerticalAlignment="Top" Width="3" Margin="192,10,0,0" Grid.Row="1"/>
- </Grid>
- </Window>
- "@
- function Load-Xaml {
- [xml]$xaml = $xaml
- $manager = New-Object System.Xml.XmlNamespaceManager -ArgumentList $xaml.NameTable
- $manager.AddNamespace("x", "http://schemas.microsoft.com/winfx/2006/xaml");
- $xamlReader = New-Object System.Xml.XmlNodeReader $xaml
- [Windows.Markup.XamlReader]::Load($xamlReader)
- }
- $window = Load-Xaml
- $window.ShowDialog()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement