質問編集履歴
1
xamlのCodeを追加しました
title
CHANGED
File without changes
|
body
CHANGED
@@ -19,6 +19,18 @@
|
|
19
19
|
テキストボックスにあるスクロール関連のプロパティと同様のものが
|
20
20
|
テキストブロックには見当たりません。
|
21
21
|
|
22
|
+
###実際のCode
|
23
|
+
```<Grid Background="#FFE5E5E5" Height="100" Width="600" >
|
24
|
+
<ScrollViewer x:Name ="LogTextScroll" VerticalScrollBarVisibility="Auto">
|
25
|
+
<Grid Height="110" Width="600">
|
26
|
+
<TextBlock x:Name="TextBlock" HorizontalAlignment="Left" TextWrapping="Wrap" Text="" VerticalAlignment="Top" Height="100" Width="600" />
|
27
|
+
</Grid>
|
28
|
+
</ScrollViewer>
|
29
|
+
<Label x:Name="label" Content="Log" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="0,-28,0,0" Width="102"/>
|
30
|
+
<Button Content="Clear" x:Name="ClearLogButton" VerticalAlignment="Top" HorizontalAlignment="Left" Height="24" Width="48" Margin="107,-26,0,0" Click="ClearLogButton_Click"/>
|
31
|
+
<Button Content="UL" x:Name="LockLogButton" VerticalAlignment="Top" HorizontalAlignment="Left" Height="24" Width="30" Margin="160,-26,0,0" Click="LockLogButton_Click"/>
|
32
|
+
</Grid>```
|
33
|
+
|
22
34
|
###試したこと
|
23
35
|
ぐぐったところScrollViewerタグで囲むがヒットし試してみたのですが、
|
24
36
|
「テキストブロック自体」スクロールすることになります。
|