Print Page | Close Window

scrollviewer contents not scrollable

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: MarkupLabel Control
Forum Description: Topics Related to Codejock MarkupLabel Control
URL: http://forum.codejock.com/forum_posts.asp?TID=23778
Printed Date: 01 March 2024 at 10:15am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: scrollviewer contents not scrollable
Posted By: vjedlicka
Subject: scrollviewer contents not scrollable
Date Posted: 11 December 2018 at 8:45am
I tested my markup in the MarkupPad and it worked.

Then I added a static label to a CDialog, set the markup to it.
The contents shows up correctly, the scrollbar is there, but it is not scrollable.
It is sort of disabled.

below is the markup

Thanks
Vaclav

<Page xmlns='http://schemas.microsoft.com/winfx/2006/xaml/presentation' xmlns:x='http://schemas.microsoft.com/winfx/2006/xaml'>

<Page.Resources>
<Style TargetType="TextBlock">
<Setter Property="Padding" Value="2"/>
</Style>
</Page.Resources>


<Border VerticalAlignment="Center" HorizontalAlignment="Center" BorderBrush="Black" BorderThickness="2">
<ScrollViewer Width = "100" MaxHeight="100" Margin="4">

<StackPanel KeyboardNavigation.TabNavigation="Cycle" Margin="0">

<TextBlock Background="LIME">dobrá ščřšýčážýíé</TextBlock>
<TextBlock Background="SALMON">fdfdfd</TextBlock>
<TextBlock Background="PINK">nejde to fdfdfd</TextBlock>
<TextBlock Background="CHARTREUSE">fdfdfd</TextBlock>
<TextBlock Background="PINK">nejde to fdfdfd</TextBlock>
<TextBlock Background="CHARTREUSE">fdfdfd</TextBlock>
<TextBlock Background="CHARTREUSE">fdfdfd</TextBlock>
<TextBlock Background="PINK">nejde to fdfdfd</TextBlock>
<TextBlock Background="PINK">nejde to fdfdfd</TextBlock>
<TextBlock Background="PINK">nejde to fdfdfd</TextBlock>
<TextBlock Background="CHARTREUSE">fdfdfd</TextBlock>
<TextBlock Background="PINK">nejde to fdfdfd</TextBlock>
<TextBlock Background="CHARTREUSE">fdfdfd</TextBlock>
<TextBlock Background="PINK">nejde to fdfdfd</TextBlock>
<TextBlock Background="CHARTREUSE">fdfdfd</TextBlock>

</StackPanel>
</ScrollViewer>
</Border>
</Page>


-------------
Thank you
Vaclav
---------------------
ToolkitPro 20.1.0
VS2010-2022, Windows 11



Replies:
Posted By: mgampi
Date Posted: 11 December 2018 at 11:32am
Hi;

Did you specify SS_NOTFY for the static control?


-------------
Martin

Product: Xtreme Toolkit v 19.0.0, new Projects v 19.1.0
Platform: Windows 10 v 1909 (64bit)
Language: VC++ 2017


Posted By: vjedlicka
Date Posted: 11 December 2018 at 11:39am
Thumbs Up

Thanks!
Vaclav



-------------
Thank you
Vaclav
---------------------
ToolkitPro 20.1.0
VS2010-2022, Windows 11



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net