Fix nested scrolling in markdown code blocks

This commit is contained in:
Sergio Pedri 2022-07-11 14:37:12 +02:00
Родитель 5c1f338d31
Коммит 6023c59be1
2 изменённых файлов: 9 добавлений и 3 удалений

Просмотреть файл

@ -29,7 +29,9 @@
Header2FontWeight="Bold"
Header2Foreground="{ThemeResource DefaultTextForegroundThemeBrush}"
Header2Margin="0,16,0,16"
Text="{TemplateBinding Text}" />
Text="{TemplateBinding Text}"
ScrollViewer.VerticalScrollBarVisibility="Disabled"
ScrollViewer.VerticalScrollMode="Disabled"/>
</Border>
</ControlTemplate>
</Setter.Value>

Просмотреть файл

@ -46,7 +46,9 @@
Background="Transparent"
BorderBrush="Transparent"
BorderThickness="0"
Text="{TemplateBinding XamlCode}" />
Text="{TemplateBinding XamlCode}"
ScrollViewer.VerticalScrollBarVisibility="Disabled"
ScrollViewer.VerticalScrollMode="Disabled"/>
</Border>
</muxc:TabViewItem>
<muxc:TabViewItem Header="See C#" IsClosable="False">
@ -56,7 +58,9 @@
Background="Transparent"
BorderBrush="Transparent"
BorderThickness="0"
Text="{TemplateBinding CSharpCode}" />
Text="{TemplateBinding CSharpCode}"
ScrollViewer.VerticalScrollBarVisibility="Disabled"
ScrollViewer.VerticalScrollMode="Disabled"/>
</Border>
</muxc:TabViewItem>
</muxc:TabView>