Click here to Skip to main content
15,890,438 members
Home / Discussions / WPF
   

WPF

 
GeneralRe: Silverlight ---- Viewbox Control : How ? Pin
milestanley1-Jun-10 23:34
milestanley1-Jun-10 23:34 
AnswerRe: Silverlight ---- Viewbox Control : How ? Pin
Peace ON1-Jun-10 22:17
Peace ON1-Jun-10 22:17 
AnswerRe: Silverlight ---- Viewbox Control : How ? Pin
Mamta D3-Jul-10 20:51
Mamta D3-Jul-10 20:51 
QuestionHow do you vertically center an Expander within a ScrollViewer when it expands? [SOLVED] Pin
fjparisIII1-Jun-10 8:20
fjparisIII1-Jun-10 8:20 
AnswerRe: How do you vertically center an Expander within a ScrollViewer when it expands? [SOLVED] Pin
fjparisIII1-Jun-10 10:22
fjparisIII1-Jun-10 10:22 
GeneralStoryboard Animation of ScrollBar is not possible Pin
fjparisIII1-Jun-10 12:31
fjparisIII1-Jun-10 12:31 
AnswerRe: How do you vertically center an Expander within a ScrollViewer when it expands? [SOLVED] Pin
Abhinav S1-Jun-10 17:36
Abhinav S1-Jun-10 17:36 
GeneralRe: How do you vertically center an Expander within a ScrollViewer when it expands? [SOLVED] Pin
fjparisIII1-Jun-10 18:27
fjparisIII1-Jun-10 18:27 
Abhinav S wrote:
Did you try setting the VerticalContentAlignment and the VerticalAlignment to stretch for the expander and for the scrollviewer?


No. What's that supposed to accomplish? The solution I posted works perfectly fine. Besides, I've moved beyond that now and am working on animating the scroll to the center of the viewport, using a DispatcherTimer. I've got it working beautifully, but I had to set the timer interval to 1/120 of a second to get a smooth scroll. 1/60 of a second for some reason produces a jerky scroll.

I've been experimenting with the duration. So far I like a duration of 0.2 seconds, producing 24 intervals. Each interval scrolls 15 vertical pixels within a viewport of 860 pixels (i.e. scrolling a little less than 430 pixels when the Expander is at the top of the viewport). Eminently smooth.

Anyhow, this animation stuff is far more interesting than centering the Expander, which as far as I'm concerned I solved to my satisfaction hours ago.

I'll show my animation code when I've sufficiently polished it. I've created a class to perform the animation, because I have about 100 Expander elements in 12 different classes, so I need to be clean about this.
GeneralRe: How do you vertically center an Expander within a ScrollViewer when it expands? [SOLVED] Pin
Abhinav S1-Jun-10 23:22
Abhinav S1-Jun-10 23:22 
GeneralRe: How do you vertically center an Expander within a ScrollViewer when it expands? [SOLVED] Pin
fjparisIII2-Jun-10 4:32
fjparisIII2-Jun-10 4:32 
GeneralRe: How do you vertically center an Expander within a ScrollViewer when it expands? [SOLVED] Pin
fjparisIII2-Jun-10 11:04
fjparisIII2-Jun-10 11:04 
QuestionMore complex databinding Pin
Lutosław1-Jun-10 2:40
Lutosław1-Jun-10 2:40 
AnswerRe: More complex databinding Pin
Abhinav S1-Jun-10 3:16
Abhinav S1-Jun-10 3:16 
QuestionRe: More complex databinding Pin
Lutosław1-Jun-10 5:00
Lutosław1-Jun-10 5:00 
AnswerRe: More complex databinding Pin
AspDotNetDev2-Jun-10 12:56
protectorAspDotNetDev2-Jun-10 12:56 
QuestionAs www.k12.com in this site i need About us menu pop as it is in using silverlight control Pin
Ch.Gayatri Subudhi30-May-10 20:12
Ch.Gayatri Subudhi30-May-10 20:12 
AnswerRe: As www.k12.com in this site i need About us menu pop as it is in using silverlight control Pin
Abhinav S30-May-10 20:23
Abhinav S30-May-10 20:23 
GeneralRe: As www.k12.com in this site i need About us menu pop as it is in using silverlight control Pin
Ch.Gayatri Subudhi30-May-10 20:34
Ch.Gayatri Subudhi30-May-10 20:34 
QuestionValidation in silverlight datagrid? Pin
mittalpa30-May-10 6:11
mittalpa30-May-10 6:11 
QuestionWPF and Threading Pin
cdpace30-May-10 2:44
cdpace30-May-10 2:44 
AnswerRe: WPF and Threading Pin
Abhishek Sur1-Jun-10 0:48
professionalAbhishek Sur1-Jun-10 0:48 
GeneralRe: WPF and Threading Pin
AspDotNetDev2-Jun-10 9:14
protectorAspDotNetDev2-Jun-10 9:14 
QuestionAdd a 'faked' item to a ListBox which serves as an "Add New Item" button Pin
Lutosław30-May-10 0:57
Lutosław30-May-10 0:57 
AnswerRe: Add a 'faked' item to a ListBox which serves as an "Add New Item" button Pin
Kevin Marois1-Jun-10 8:24
professionalKevin Marois1-Jun-10 8:24 
GeneralRe: Add a 'faked' item to a ListBox which serves as an "Add New Item" button Pin
Lutosław1-Jun-10 8:50
Lutosław1-Jun-10 8:50 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.