Click here to Skip to main content
15,894,740 members
Home / Discussions / WPF
   

WPF

 
AnswerRe: How do I make rounded corners for textbox, combobox and other controls Pin
Pete O'Hanlon11-Oct-09 10:35
mvePete O'Hanlon11-Oct-09 10:35 
Question[Message Deleted] Pin
ahsansharjeel11-Oct-09 2:47
ahsansharjeel11-Oct-09 2:47 
AnswerRe: How do I make ComboBox, AutoComplete and Auto Suggests Pin
Christian Graus11-Oct-09 10:52
protectorChristian Graus11-Oct-09 10:52 
GeneralRe: How do I make ComboBox, AutoComplete and Auto Suggests Pin
ahsansharjeel11-Oct-09 18:05
ahsansharjeel11-Oct-09 18:05 
GeneralRe: How do I make ComboBox, AutoComplete and Auto Suggests Pin
Pete O'Hanlon11-Oct-09 22:25
mvePete O'Hanlon11-Oct-09 22:25 
QuestionWhy doesn't Microsoft support the documented mouse event handlers inside FlowDocument objects? Pin
fjparisIII10-Oct-09 10:20
fjparisIII10-Oct-09 10:20 
AnswerRe: Why doesn't Microsoft support the documented mouse event handlers inside FlowDocument objects? Pin
Pete O'Hanlon11-Oct-09 11:58
mvePete O'Hanlon11-Oct-09 11:58 
GeneralRe: Why doesn't Microsoft support the documented mouse event handlers inside FlowDocument objects? [modified] Pin
fjparisIII11-Oct-09 12:49
fjparisIII11-Oct-09 12:49 
I also saw your answer to my previous post. So I guess I should have been looking for PreviewMouseLeftButtonDown instead of PreviewMouseLeftButtonUp. The only reason I was looking for Up instead of Down is because I wanted to make it look like a Click event.

My wording, "crippling these events," was probably too extreme, but not totally off base, it seems to me. Pre-empting would perhaps be a better term. Microsoft isn't literally crippling these mouse events, but it is pre-empting them, for selecting text. But now I don't understand why it has to do this. For example, it doesn't do it for the TextBox element. You can select text in a TextBox and drag it somewhere else, and at the same time, capture PreviewMouseLeftButtonUp. I know because I do that all the time.

Maybe there's a good reason for pre-empting these mouse events for the TextElement class. But what is it? I wasn't able to find any MSDN documentation explaining this, and if it is documented somewhere, it must be pretty obscure because I ran into a lot of posts Googling with the same issues I had, with no one giving your answer.

I think pre-empting is a fair description, because if I do capture the Down event to bring up a dialog, that interfers with highlighting (and perhaps dragging) text, even if I don't say e.handled = true. As mentioned above, this isn't true for the much simpler TextBox element.

In any case, after wrestling with various possibilities, I saw that the best way to accomplish what I want is to put a Hyperlink inline in my text and capture its Click event. That looks very clean for the user and doesn't interfere with text highlighting at all. So in the end I got what I want without intercepting any of the mouse events (other than Click).

modified on Sunday, October 11, 2009 8:15 PM

QuestionHelp with ProgressBar Pin
Etienne_12310-Oct-09 3:19
Etienne_12310-Oct-09 3:19 
AnswerRe: Help with ProgressBar Pin
Sperneder Patrick10-Oct-09 4:32
professionalSperneder Patrick10-Oct-09 4:32 
GeneralRe: Help with ProgressBar Pin
Etienne_12310-Oct-09 7:21
Etienne_12310-Oct-09 7:21 
AnswerRe: Help with ProgressBar Pin
Nigel Ferrissey11-Oct-09 9:27
Nigel Ferrissey11-Oct-09 9:27 
AnswerRe: Help with ProgressBar Pin
Pete O'Hanlon11-Oct-09 11:11
mvePete O'Hanlon11-Oct-09 11:11 
QuestionTextBox trigger question Pin
QzRz10-Oct-09 0:55
QzRz10-Oct-09 0:55 
AnswerRe: TextBox trigger question Pin
Daniel Vaughan11-Oct-09 8:10
Daniel Vaughan11-Oct-09 8:10 
QuestionReplacing the desktop instead of running in a window? [SOLVED] Pin
seguso9-Oct-09 20:31
seguso9-Oct-09 20:31 
QuestionUser Control with collection for property Pin
Adam R Harris9-Oct-09 11:24
Adam R Harris9-Oct-09 11:24 
QuestionChange color of ribbon control..... Pin
yogeshdew9-Oct-09 6:31
yogeshdew9-Oct-09 6:31 
QuestionGetting mouse up event on WPF Figure [modified] Pin
fjparisIII9-Oct-09 5:40
fjparisIII9-Oct-09 5:40 
AnswerRe: Getting mouse up event on WPF Figure Pin
Pete O'Hanlon11-Oct-09 11:55
mvePete O'Hanlon11-Oct-09 11:55 
GeneralRe: Getting mouse up event on WPF Figure Pin
fjparisIII11-Oct-09 14:42
fjparisIII11-Oct-09 14:42 
QuestionCan we use control properties in windows forms from a user control create in Wpf .and currently we are using user control in windows forms.... Pin
Anuj Banka9-Oct-09 1:57
Anuj Banka9-Oct-09 1:57 
AnswerRe: Can we use control properties in windows forms from a user control create in Wpf .and currently we are using user control in windows forms.... Pin
Pete O'Hanlon9-Oct-09 2:21
mvePete O'Hanlon9-Oct-09 2:21 
GeneralRe: Can we use control properties in windows forms from a user control create in Wpf .and currently we are using user control in windows forms.... Pin
Anuj Banka9-Oct-09 2:23
Anuj Banka9-Oct-09 2:23 
QuestionStarting to hate silverlight Pin
gantww8-Oct-09 16:59
gantww8-Oct-09 16:59 

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.