Codejock Forums Homepage
Forum Home Forum Home > General > XAML Snippets
  New Posts New Posts RSS Feed - Scrollviewer position in XAML composition
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Scrollviewer position in XAML composition

 Post Reply Post Reply
Author
Message
AlbertoB View Drop Down
Newbie
Newbie


Joined: 06 July 2011
Status: Offline
Points: 8
Post Options Post Options   Thanks (0) Thanks(0)   Quote AlbertoB Quote  Post ReplyReply Direct Link To This Post Topic: Scrollviewer position in XAML composition
    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.
Back to Top
AlbertoB View Drop Down
Newbie
Newbie


Joined: 06 July 2011
Status: Offline
Points: 8
Post Options Post Options   Thanks (0) Thanks(0)   Quote AlbertoB Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
jpbro View Drop Down
Senior Member
Senior Member
Avatar

Joined: 12 January 2007
Status: Offline
Points: 1355
Post Options Post Options   Thanks (0) Thanks(0)   Quote jpbro Quote  Post ReplyReply Direct Link To This Post 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

Back to Top
SuperMario View Drop Down
Admin Group
Admin Group
Avatar

Joined: 14 February 2004
Status: Offline
Points: 18057
Post Options Post Options   Thanks (0) Thanks(0)   Quote SuperMario Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.155 seconds.