horizontaloffset

WPF - Animate ListBox.ScrollViewer.HorizontalOffset?

I have a collection of Visuals in a ListBox. I need to find the XPosition of an element inside it and then animate the HorizontalOffset of the ListBox's ScrollViewer. Essentially I want to created an animated ScrollIntoView method. This gives me a couple of problems. Firstly, how can I get a reference to the ListBoxs scrollviewer? Se...

Delphi text offsets in edits and memos

I have noticed that in Delphi 2009, the text in a multi-line memo has different padding on the left from that in a single-line edit, though both are based on TCustomEdit. The exact offset depends on the font size: I am looking for a simple way to get the memo text aligned with the same offset as edit text. If that is not possible, ho...

Silverlight ScrollViewer initial horizontaloffset

Hi, I have a question regarding the setting of the HorizontalOffset-property (using the ScrollToHorizontalOffset method). Upon starting my application, the content for the scrollviewer is dynamically created (i.e. I do not know its extent during design-time). I then want to set the horizontal offset of the scrollviewer control, howev...

WPF - Animate ListBox.ScrollViewer.HorizontalOffset?

WPF - Animate ListBox.ScrollViewer.HorizontalOffset Has anybody got a complete solution to animating the listboxitem position on some event Cheers Nick ...

Scrollviewer Problem wpf

Hi All, I am displaying images inside the listbox. i have placed this listbox inside the scrollviewer. I am using two repeat button to move the listbox items. I am binding the listbox using datacontext. Problem: If i move the images using the button and click on the image in the lisbox it moves to the initial position. Code: <Rep...