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

WPF

 
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 
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 
Abhinav S wrote:
These are supposed to...
etc.
I know what they both do. I use them all the time, both in Silverlight and WPF. I just don't see their relevance to the problem I was trying to solve.
Abhinav S wrote:
I'm glad that you have managed to get this working using a workaround though.

You're talking about the centering of the Expanders, correct? I'd hardly call my solution a "workaround." It's a straightforward solution, direct and to the point.

Maybe I didn't explain carefully enough what I'm trying to do. I have extensive product documentation on my Website. I have a product overview, ten tutorials, plus an "Easter egg" that gives background on how such a product ever came to be developed. Each document is initially presented as a list of Expanders within a ScrollViewer. The average list has about 8 Expanders and each Expander expands and collapses on average 8 lines of wrapping text per paragraph and maybe 5 or 6 paragraphs.

The problem was to vertically center an Expander header when the user clicks on it. However, doing that was just a matter of SMOP, nothing esoteric about it at all, and I shouldn't even have asked the question to begin with.

But then I immediately saw that the expansion/collapse took place so fast that it was disconcerting and that it needed to be animated. That's really the interesting part of this entire discussion, and I'm still working on it to capture all the end cases. Should have it all worked out sometime this morning, and then I'll present it under Tips and Tricks.

Anyhow, I don't see how VerticalContentAlignment would play a role in this, since I don't want to keep the content vertically aligned, but only vertically aligned when the user clicks on the Expander header, and only the header for that one Expander, not all of them.
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 
GeneralRe: Add a 'faked' item to a ListBox which serves as an "Add New Item" button Pin
Kevin Marois1-Jun-10 10:26
professionalKevin Marois1-Jun-10 10:26 
AnswerRe: Add a 'faked' item to a ListBox which serves as an "Add New Item" button Pin
Pete O'Hanlon1-Jun-10 21:20
mvePete O'Hanlon1-Jun-10 21:20 

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.