Print Page | Close Window

Scroll Bar is disabled in scrollviewer

Printed From: Codejock Forums
Category: General
Forum Name: XAML Snippets
Forum Description: Post your XAML snippets here for everyone to enjoy :)
URL: http://forum.codejock.com/forum_posts.asp?TID=12753
Printed Date: 11 December 2024 at 4:13pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Scroll Bar is disabled in scrollviewer
Posted By: Dboy
Subject: Scroll Bar is disabled in scrollviewer
Date Posted: 21 November 2008 at 1:09am
Hi,

I using CMarkUpStatic control as child in dialog. I have written following code

L"<Page xmlns='http://schemas.microsoft.com/winfx/2006/xaml/presentation'"
                               L"xmlns:x='http://schemas.microsoft.com/winfx/2006/xaml'>"
                               L"<ScrollViewer VerticalScrollBarVisibility='Auto'>"
                               L"<StackPanel VerticalAlignment='Top' HorizontalAlignment='Left'>"
                               L"<TextBlock TextWrapping='Wrap' Margin='0,0,0,20'>Scrolling is enabled when it is necessary. "
                               L"Resize the window, making it larger and smaller.</TextBlock>"
                               L"<Rectangle Fill='Red' Width='500' Height='500'></Rectangle>"
                               L"</StackPanel>"
                               L"</ScrollViewer>"
                               L"</Page>"

The scrollbar in the scrollViewer in disabled. What can be the reason.

Regards,
Dboy



Replies:
Posted By: Oleg
Date Posted: 21 November 2008 at 1:53am
Hi,
Just tried it in our Samples\ToolkitPro\MarkupSample sample and it works for me.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: Fredrik
Date Posted: 03 December 2008 at 4:03pm
... somewhat old thread but it could be that you have forgot to specify the property "Notify" to "true"for your static control in your dialog (i.e use the SS_NOTIFY style).




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