回答編集履歴

2

_2

2023/06/26 17:10

投稿

TN8001
TN8001

スコア9410

test CHANGED
@@ -115,7 +115,7 @@
115
115
  <ResourceDictionary
116
116
  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
117
117
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
118
- xmlns:local="clr-namespace:QQj700zzpncph60k_2">
118
+ xmlns:local="clr-namespace:QQj700zzpncph60k">
119
119
 
120
120
  <!-- リサイズハンドルをできるだけ簡単にするためThumbを使用 -->
121
121
  <Style TargetType="{x:Type local:CustomControl1}">

1

xaml見にくいw

2023/06/26 17:02

投稿

TN8001
TN8001

スコア9410

test CHANGED
@@ -115,7 +115,7 @@
115
115
  <ResourceDictionary
116
116
  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
117
117
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
118
- xmlns:local="clr-namespace:QQj700zzpncph60k">
118
+ xmlns:local="clr-namespace:QQj700zzpncph60k_2">
119
119
 
120
120
  <!-- リサイズハンドルをできるだけ簡単にするためThumbを使用 -->
121
121
  <Style TargetType="{x:Type local:CustomControl1}">
@@ -139,52 +139,22 @@
139
139
  </ControlTemplate.Resources>
140
140
  <Grid>
141
141
  <!-- 選択中枠 -->
142
- <Rectangle
143
- Margin="-4"
144
- Stroke="Black"
145
- StrokeDashArray="4 4" />
142
+ <Rectangle Margin="-4" Stroke="Black" StrokeDashArray="4 4" />
146
143
 
147
144
  <!-- 全体 移動用 -->
148
- <Thumb
149
- HorizontalAlignment="Stretch"
145
+ <Thumb HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Cursor="SizeAll" />
150
- VerticalAlignment="Stretch"
151
- Cursor="SizeAll" />
152
146
 
153
147
  <!-- 辺 リサイズ用 -->
154
- <Thumb
155
- HorizontalAlignment="Left"
156
- VerticalAlignment="Stretch"
148
+ <Thumb HorizontalAlignment="Left" VerticalAlignment="Stretch" Cursor="SizeWE" />
157
- Cursor="SizeWE" />
158
- <Thumb
159
- HorizontalAlignment="Right"
149
+ <Thumb HorizontalAlignment="Right" VerticalAlignment="Stretch" Cursor="SizeWE" />
160
- VerticalAlignment="Stretch"
161
- Cursor="SizeWE" />
162
- <Thumb
163
- HorizontalAlignment="Stretch"
150
+ <Thumb HorizontalAlignment="Stretch" VerticalAlignment="Top" Cursor="SizeNS" />
164
- VerticalAlignment="Top"
165
- Cursor="SizeNS" />
166
- <Thumb
167
- HorizontalAlignment="Stretch"
151
+ <Thumb HorizontalAlignment="Stretch" VerticalAlignment="Bottom" Cursor="SizeNS" />
168
- VerticalAlignment="Bottom"
169
- Cursor="SizeNS" />
170
152
 
171
153
  <!-- 角 リサイズ用 -->
172
- <Thumb
173
- HorizontalAlignment="Left"
174
- VerticalAlignment="Top"
175
- Cursor="SizeNWSE" />
154
+ <Thumb HorizontalAlignment="Left" VerticalAlignment="Top" Cursor="SizeNWSE" />
176
- <Thumb
177
- HorizontalAlignment="Right"
178
- VerticalAlignment="Top"
179
- Cursor="SizeNESW" />
155
+ <Thumb HorizontalAlignment="Right" VerticalAlignment="Top" Cursor="SizeNESW" />
180
- <Thumb
181
- HorizontalAlignment="Left"
182
- VerticalAlignment="Bottom"
183
- Cursor="SizeNESW" />
156
+ <Thumb HorizontalAlignment="Left" VerticalAlignment="Bottom" Cursor="SizeNESW" />
184
- <Thumb
185
- HorizontalAlignment="Right"
186
- VerticalAlignment="Bottom"
187
- Cursor="SizeNWSE" />
157
+ <Thumb HorizontalAlignment="Right" VerticalAlignment="Bottom" Cursor="SizeNWSE" />
188
158
  </Grid>
189
159
  </ControlTemplate>
190
160
  </Setter.Value>