Click here to Skip to main content
15,887,485 members
Home / Discussions / WPF
   

WPF

 
PraiseRe: TabControl views are not disposed Pin
Leif Simon Goodwin23-Nov-16 21:09
Leif Simon Goodwin23-Nov-16 21:09 
QuestionIs there any way to automate the silverlight application using Eclipse-testng-selenium-java frameowork Pin
Ashish khanduri20-Nov-16 18:23
Ashish khanduri20-Nov-16 18:23 
AnswerRe: Is there any way to automate the silverlight application using Eclipse-testng-selenium-java frameowork Pin
Mycroft Holmes20-Nov-16 19:39
professionalMycroft Holmes20-Nov-16 19:39 
GeneralRe: Is there any way to automate the silverlight application using Eclipse-testng-selenium-java frameowork Pin
Ashish khanduri20-Nov-16 19:50
Ashish khanduri20-Nov-16 19:50 
QuestionSound Command that can intercept the Active Thread Pin
Vimalsoft(Pty) Ltd15-Nov-16 17:56
professionalVimalsoft(Pty) Ltd15-Nov-16 17:56 
AnswerRe: Sound Command that can intercept the Active Thread Pin
Gerry Schmitz16-Nov-16 6:07
mveGerry Schmitz16-Nov-16 6:07 
QuestionCan't Move Label with mouse in WPF Pin
Dadou5512-Nov-16 22:44
Dadou5512-Nov-16 22:44 
AnswerRe: Can't Move Label with mouse in WPF Pin
Richard Deeming14-Nov-16 2:13
mveRichard Deeming14-Nov-16 2:13 
Dadou55 wrote:
Also i would like to understand why when i'm clicking on the Label it recognizes it like a TextBlock.

Look at the remarks on the Mouse.DirectlyOver property:

Controls can be composed of multiple elements. DirectlyOver reports the specific element in the composite control the mouse pointer is over and not the control itself. For example, depending on which part of a Button the pointer is over, the DirectlyOver property could report the TextBox of the Content property or the ButtonChrome.

A Label[^] is a ContentControl. When you add text to it, that gets added as a TextBlock. When the mouse is over the text, DirectlyOver returns the TextBlock from the Content part of the Label control.

Basically, you're looking at the visual tree, not the logical tree. You'll need to use VisualTreeHelper.GetParent[^] to walk up the visual tree until you find the control you're looking for.

Trees in WPF[^]



"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer


QuestionHow to achieve grouping and ungrouping usercontrol in wpf application programmatically Pin
Pankaj Deharia10-Nov-16 3:05
professionalPankaj Deharia10-Nov-16 3:05 
AnswerRe: How to achieve grouping and ungrouping usercontrol in wpf application programmatically Pin
Gerry Schmitz10-Nov-16 7:01
mveGerry Schmitz10-Nov-16 7:01 
QuestionHow to solve the echo in a MVVM project with external data updates Pin
ronald6231-Oct-16 0:16
ronald6231-Oct-16 0:16 
AnswerRe: How to solve the echo in a MVVM project with external data updates Pin
Gerry Schmitz4-Nov-16 5:02
mveGerry Schmitz4-Nov-16 5:02 
GeneralRe: How to solve the echo in a MVVM project with external data updates Pin
ronald624-Nov-16 5:15
ronald624-Nov-16 5:15 
GeneralRe: How to solve the echo in a MVVM project with external data updates Pin
Gerry Schmitz4-Nov-16 5:46
mveGerry Schmitz4-Nov-16 5:46 
GeneralRe: How to solve the echo in a MVVM project with external data updates Pin
ronald627-Nov-16 3:38
ronald627-Nov-16 3:38 
GeneralRe: How to solve the echo in a MVVM project with external data updates Pin
Gerry Schmitz7-Nov-16 6:35
mveGerry Schmitz7-Nov-16 6:35 
GeneralRe: How to solve the echo in a MVVM project with external data updates Pin
Pete O'Hanlon7-Nov-16 10:44
mvePete O'Hanlon7-Nov-16 10:44 
GeneralRe: How to solve the echo in a MVVM project with external data updates Pin
Gerry Schmitz7-Nov-16 11:36
mveGerry Schmitz7-Nov-16 11:36 
GeneralRe: How to solve the echo in a MVVM project with external data updates Pin
ronald629-Nov-16 0:01
ronald629-Nov-16 0:01 
GeneralRe: How to solve the echo in a MVVM project with external data updates Pin
Gerry Schmitz10-Nov-16 12:11
mveGerry Schmitz10-Nov-16 12:11 
GeneralRe: How to solve the echo in a MVVM project with external data updates Pin
ronald6221-Nov-16 1:14
ronald6221-Nov-16 1:14 
QuestionPrinting an xps fixed document Pin
Stephen Holdorf5-Oct-16 8:04
Stephen Holdorf5-Oct-16 8:04 
AnswerRe: Printing an xps fixed document Pin
Stephen Holdorf5-Oct-16 9:56
Stephen Holdorf5-Oct-16 9:56 
QuestionCoverflow like animating grids or contentcontrol Pin
Jayme655-Oct-16 0:44
Jayme655-Oct-16 0:44 
SuggestionRe: Coverflow like animating grids or contentcontrol Pin
Richard MacCutchan5-Oct-16 2:24
mveRichard MacCutchan5-Oct-16 2:24 

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.