Advertisement
BSMMike

Untitled

Jun 17th, 2019
196
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. $xaml= @"
  3. <Window
  4.  
  5.  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  6.  
  7.  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  8.  
  9.  Title="Bates Smart Meeting Rooms" Height="287.654" Width="393.618">
  10.  
  11.    <Grid Margin="0,0,2,0" RenderTransformOrigin="0.5,0.5">
  12.        <Grid.RowDefinitions>
  13.            <RowDefinition Height="3*"/>
  14.            <RowDefinition Height="151*"/>
  15.        </Grid.RowDefinitions>
  16.        <Grid.RenderTransform>
  17.            <TransformGroup>
  18.                <ScaleTransform/>
  19.                <SkewTransform/>
  20.                <RotateTransform Angle="-0.061"/>
  21.                <TranslateTransform/>
  22.            </TransformGroup>
  23.        </Grid.RenderTransform>
  24.        <Grid.ColumnDefinitions>
  25.            <ColumnDefinition Width="0*"/>
  26.            <ColumnDefinition/>
  27.        </Grid.ColumnDefinitions>
  28.        <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" />
  29.        <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" >
  30.            <Label.RenderTransform>
  31.                <TransformGroup>
  32.                    <ScaleTransform/>
  33.                    <SkewTransform AngleX="-0.006"/>
  34.                    <RotateTransform/>
  35.                    <TranslateTransform X="0.001"/>
  36.                </TransformGroup>
  37.            </Label.RenderTransform>
  38.        </Label>
  39.        <Button Grid.ColumnSpan="2" Content="M Drive" HorizontalAlignment="Left" Margin="10,34,0,0" VerticalAlignment="Top" Width="75" Cursor="Hand" Grid.Row="1" />
  40.        <Button Grid.ColumnSpan="2" Content="S Drive" HorizontalAlignment="Left" VerticalAlignment="Top" Width="75" Margin="96,34,0,0" Cursor="Hand" Grid.Row="1"/>
  41.        <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"/>
  42.        <Button Grid.ColumnSpan="2" Content="O Drive" HorizontalAlignment="Left" VerticalAlignment="Top" Width="75" Margin="10,67,0,0" Cursor="Hand" Grid.Row="1"/>
  43.        <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">
  44.            <Image.RenderTransform>
  45.                <TransformGroup>
  46.                    <ScaleTransform/>
  47.                    <SkewTransform/>
  48.                    <RotateTransform Angle="-0.726"/>
  49.                    <TranslateTransform/>
  50.                </TransformGroup>
  51.            </Image.RenderTransform>
  52.            <Image.Source>
  53.                <BitmapImage UriSource="file:///C:/Users/anm/source/repos/PowerShellProject1/PowerShellProject1/img/skype.png"/>
  54.            </Image.Source>
  55.        </Image>
  56.        <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">
  57.            <Image.Source>
  58.                <BitmapImage UriSource="file:///C:/Users/anm/source/repos/PowerShellProject1/PowerShellProject1/img/teams.png"/>
  59.            </Image.Source>
  60.        </Image>
  61.        <Label Grid.ColumnSpan="2" Content="Log into Computer&#xD;&#xA;" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="10,160,0,0" Grid.Row="1" Width="161" FontSize="16" FontWeight="Bold" Height="32"/>
  62.         <Image Grid.ColumnSpan="2" HorizontalAlignment="Left" Height="39" VerticalAlignment="Top" Width="47" Margin="54,197,0,0" Grid.Row="1">
  63.             <Image.Source>
  64.                 <BitmapImage UriSource="file:///C:/Users/anm/source/repos/PowerShellProject1/PowerShellProject1/img/rdp.png"/>
  65.             </Image.Source>
  66.         </Image>
  67.         <Rectangle Grid.ColumnSpan="2" Fill="#FFF4F4F5" HorizontalAlignment="Left" Height="222" Stroke="Black" VerticalAlignment="Top" Width="3" Margin="192,10,0,0" Grid.Row="1"/>
  68.     </Grid>
  69.  
  70. </Window>
  71. "@
  72.  
  73. function Load-Xaml {
  74.     [xml]$xaml = $xaml
  75.     $manager = New-Object System.Xml.XmlNamespaceManager -ArgumentList $xaml.NameTable
  76.     $manager.AddNamespace("x", "http://schemas.microsoft.com/winfx/2006/xaml");
  77.     $xamlReader = New-Object System.Xml.XmlNodeReader $xaml
  78.     [Windows.Markup.XamlReader]::Load($xamlReader)
  79. }
  80.  
  81. $window = Load-Xaml
  82.  
  83. $window.ShowDialog()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement