As in title. I want to create TextBlock
with both horizontal and vertical sliders, that will automatically adjust depending on text size. Google just shows me Slider
control which is definitely not what i'm looking for.
Any clues what can i use to achieve it?
Edit
Thanks to some of the helpful people here i have this:
<ScrollViewer Grid.Column="1" Style="{StaticResource MaterialDesignScrollViewer}">
<TextBlock ScrollViewer.HorizontalScrollBarVisibility="Auto" ScrollViewer.VerticalScrollBarVisibility="Auto" Text="{Binding Path=(SQLLog:LogDisplay.LogAdvanced)}" FontSize="12"/>
</ScrollViewer>
Vertical scroll bar appears, horizontal not. Even when text doesn't fit inside the TextBlock
.
ScrollViewer.HorizontalScrollBarVisibility="Auto"
ScrollViewer.VerticalScrollBarVisibility="Auto"
from theTextBlock
and add it to yourScrollViewer
. If you want horizontal scrolling to be possible also apply a value forWidth
to theTextBlock
that is at least as big as theScrollViewer
sWidth
.TextBlock
. Alright, i believe problem is solved. Thanks for help.