Print Page | Close Window

Scrollviewer position in XAML composition

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=19766
Printed Date: 20 April 2024 at 4:33am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Scrollviewer position in XAML composition
Posted By: AlbertoB
Subject: Scrollviewer position in XAML composition
Date Posted: 17 May 2012 at 12:21pm
Hi there,
 
I have this XAML composition that works perfectly in Codejock MarkupPad
 
<Page xmlns='http://schemas.microsoft.com/winfx/2006/xaml/presentation' xmlns:x='http://schemas.microsoft.com/winfx/2006/xaml'>
  <ScrollViewer x:Name='scroll' TextBlock.FontSize="12" MaxHeight='60' VerticalScrollBarVisibility='Auto'>
<StackPanel>
<CheckBox Tag='tag1' IsChecked='true'>Option1</CheckBox>
<CheckBox Tag='tag2' IsChecked='true'>Option2</CheckBox>
<CheckBox Tag='tag3' IsChecked='true'>Option3</CheckBox>
<CheckBox Tag='tag9' IsChecked='true'>LastOption</CheckBox>
</StackPanel>
</ScrollViewer>
</Page>
 
My question is:
 
Is it possible to stablish an initial vertical scroll position different from 0, any way that works in MarkupPad as well?
 
I'm using that XAML code as cell text in a report control with Markup enabled. If is not possible to position the scroll directly through tags or porperties... how should I do that?
 
Thank you,
AB.



Replies:
Posted By: AlbertoB
Date Posted: 31 May 2012 at 5:23am
Has anybody any idea or comments about this issue?
Am I asking something crazy?
Any site to look for a solution?
 
AB.


Posted By: jpbro
Date Posted: 17 August 2012 at 11:29am
The ScrollViewer object has a HorizontalOffset and VerticalOffset property, but these aren't recognized by the markup pad. I've submitted a support ticket, but I've got almost a dozen open tickets that haven't had responses in ages, so I wouldn't hold my breath.

-------------
Product: Xtreme SuitePro (ActiveX) version 16.2.6
Platform: Windows XP - SP3

Language: Visual Basic 6.0 SP6



Posted By: SuperMario
Date Posted: 20 August 2012 at 10:47am
We have looked into the XAML specification and there is no property for the scroll offset in the markup. This would be an extension and we would like to keep compatiblity with the MS specification.  So we added a new MarkupUIElement property to the report record item and a scrollviewer sample to our ReportSample for the next release.



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