Click here to Skip to main content
15,867,991 members
Home / Discussions / WPF
   

WPF

 
GeneralRe: centering cursor and object Pin
sadas232341s1-Nov-09 20:17
sadas232341s1-Nov-09 20:17 
GeneralRe: centering cursor and object Pin
Mark Salsbery2-Nov-09 8:27
Mark Salsbery2-Nov-09 8:27 
GeneralRe: centering cursor and object Pin
sadas232341s3-Nov-09 21:32
sadas232341s3-Nov-09 21:32 
QuestionHow can I determine if content fits control? Pin
fjparisIII31-Oct-09 16:01
fjparisIII31-Oct-09 16:01 
AnswerRe: How can I determine if content fits control? [modified] Pin
#realJSOP1-Nov-09 1:03
mve#realJSOP1-Nov-09 1:03 
GeneralRe: How can I determine if content fits control? Pin
fjparisIII1-Nov-09 4:40
fjparisIII1-Nov-09 4:40 
GeneralRe: How can I determine if content fits control? Pin
#realJSOP1-Nov-09 6:02
mve#realJSOP1-Nov-09 6:02 
GeneralRe: How can I determine if content fits control? Pin
fjparisIII1-Nov-09 6:40
fjparisIII1-Nov-09 6:40 
John Simmons / outlaw programmer wrote:
If you knew the name of the scroller element, you could get it that way. I believe it's "PART_ContentHost".


You're getting into an area that is obscure to me. If the name of my RichTextBox is richTB, my first guess for getting at the scroller element was this:

ScrollViewer sv = richTB.PART_ContentHost;

But it didn't compile. How would I code the line that retrieves the ScrollViewer control? And in general, how do you find out the names of all the components of a control? That would enable me to verify whether PART_ContentHost is indeed the name of the RichTextBox ScrollViewer.
GeneralRe: How can I determine if content fits control? Pin
#realJSOP1-Nov-09 9:05
mve#realJSOP1-Nov-09 9:05 
GeneralRe: How can I determine if content fits control? Pin
fjparisIII1-Nov-09 9:57
fjparisIII1-Nov-09 9:57 
GeneralRe: How can I determine if content fits control? (Solved) Pin
fjparisIII1-Nov-09 10:41
fjparisIII1-Nov-09 10:41 
GeneralRe: How can I determine if content fits control? (Solved) Pin
#realJSOP1-Nov-09 23:09
mve#realJSOP1-Nov-09 23:09 
GeneralRe: How can I determine if content fits control? (Solved) Pin
#realJSOP2-Nov-09 0:04
mve#realJSOP2-Nov-09 0:04 
GeneralRe: How can I determine if content fits control? Pin
#realJSOP1-Nov-09 9:23
mve#realJSOP1-Nov-09 9:23 
QuestionMS RibbonBar Pin
#realJSOP30-Oct-09 12:48
mve#realJSOP30-Oct-09 12:48 
AnswerRe: MS RibbonBar Pin
Christian Graus30-Oct-09 14:07
protectorChristian Graus30-Oct-09 14:07 
GeneralRe: MS RibbonBar Pin
#realJSOP30-Oct-09 23:50
mve#realJSOP30-Oct-09 23:50 
AnswerRe: MS RibbonBar Pin
Mark Salsbery30-Oct-09 15:45
Mark Salsbery30-Oct-09 15:45 
GeneralRe: MS RibbonBar Pin
Christian Graus30-Oct-09 17:10
protectorChristian Graus30-Oct-09 17:10 
GeneralRe: MS RibbonBar Pin
Mark Salsbery30-Oct-09 17:33
Mark Salsbery30-Oct-09 17:33 
GeneralRe: MS RibbonBar Pin
#realJSOP30-Oct-09 23:55
mve#realJSOP30-Oct-09 23:55 
QuestionCalling property from silverlight page Pin
Deabdy2129-Oct-09 3:40
Deabdy2129-Oct-09 3:40 
AnswerRe: Calling property from silverlight page Pin
Mark Salsbery29-Oct-09 6:52
Mark Salsbery29-Oct-09 6:52 
QuestionProblem with silverlight data grid Pin
ravi.vellanky28-Oct-09 23:40
ravi.vellanky28-Oct-09 23:40 
AnswerRe: Problem with silverlight data grid Pin
Mark Salsbery29-Oct-09 6:55
Mark Salsbery29-Oct-09 6:55 

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.