質問編集履歴

1

タグ付けしました。

2018/04/02 10:37

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -22,6 +22,10 @@
22
22
 
23
23
  ```XAML
24
24
 
25
+ Add-Type -AssemblyName PresentationFramework
26
+
27
+ [xml]$xaml = @'
28
+
25
29
  <Window x:Class="MainWindow"
26
30
 
27
31
  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
@@ -42,7 +46,7 @@
42
46
 
43
47
  <Label Content="Auto Transportation" HorizontalAlignment="Left" Height="25" Margin="10,10,0,0" VerticalAlignment="Top" Width="218"/>
44
48
 
45
- <TextBox HorizontalAlignment="Left" WordWrap = true; Height="215" Margin="16,40,0,0" TextWrapping="Wrap" Text="Transport Number" VerticalAlignment="Top" Width="184" VerticalScrollBarVisibility="Auto"/>
49
+ <TextBox HorizontalAlignment="Left" WordWrap = true; Height="215" Margin="16,40,0,0" Text="Transport Number" VerticalAlignment="Top" Width="184" VerticalScrollBarVisibility="Auto"/>
46
50
 
47
51
  <RadioButton Content="CL902 DEV VNT" HorizontalAlignment="Left" Height="21" Margin="231,38,0,0" VerticalAlignment="Top" Width="158"/>
48
52
 
@@ -62,4 +66,12 @@
62
66
 
63
67
  </Window>
64
68
 
69
+ '@
70
+
71
+ $reader = (New-Object System.Xml.XmlNodeReader $xaml)
72
+
73
+ $window = [Windows.Markup.XamlReader]::Load($reader)
74
+
75
+
76
+
65
77
  ```