Click here to Skip to main content
15,886,001 members
Home / Discussions / WPF
   

WPF

 
GeneralRe: Open a window after progress bar load completes Pin
Joezer BH9-Sep-13 22:44
professionalJoezer BH9-Sep-13 22:44 
QuestionAnother DependencyProperty Question Pin
Kevin Marois5-Sep-13 16:11
professionalKevin Marois5-Sep-13 16:11 
AnswerRe: Another DependencyProperty Question Pin
Pete O'Hanlon5-Sep-13 20:24
mvePete O'Hanlon5-Sep-13 20:24 
GeneralRe: Another DependencyProperty Question Pin
Kevin Marois6-Sep-13 3:50
professionalKevin Marois6-Sep-13 3:50 
GeneralRe: Another DependencyProperty Question Pin
SledgeHammer016-Sep-13 5:07
SledgeHammer016-Sep-13 5:07 
GeneralRe: Another DependencyProperty Question Pin
Jason Gleim6-Sep-13 5:23
professionalJason Gleim6-Sep-13 5:23 
GeneralRe: Another DependencyProperty Question Pin
Kevin Marois6-Sep-13 6:59
professionalKevin Marois6-Sep-13 6:59 
GeneralRe: Another DependencyProperty Question Pin
Jason Gleim6-Sep-13 7:28
professionalJason Gleim6-Sep-13 7:28 
Whether you agree with it or not, it doesn't change the fact that is the accepted method of implementing MVVM. They aren't called best practices because somebody arbitrarily thinks there shouldn't be code in the code-behind. There are very few instances where code in the code behind is the only option. And putting the DP implementation in the code behind is not one of those times.

Secondly, do you actually know how the DP system works and how the property binding system works? Do you even know why you use dependency properties? Your comments make me think not. The DP system is pubic and static... it is accessible from anywhere in your code. The binding framework knows how to find the DP if the underlying property has been registered with it. Normal developers put the DP code in the view model so it only gets instantiated once. But you probably don't agree with that mantra either.

You seem sure that the control can't see the DP unless it is in the code behind but the dozens of programs I've written in Silverlight, WPF, WinRT, and Windows Phone all seem to work perfectly fine without a single DP in a code behind. And for the life of me, I can't find any real examples of someone suggesting that it goes in the code behind. Clearly I must be doing something wrong...
GeneralRe: Another DependencyProperty Question Pin
Kevin Marois6-Sep-13 7:54
professionalKevin Marois6-Sep-13 7:54 
GeneralRe: Another DependencyProperty Question Pin
Jason Gleim6-Sep-13 9:03
professionalJason Gleim6-Sep-13 9:03 
GeneralRe: Another DependencyProperty Question Pin
Kevin Marois6-Sep-13 9:40
professionalKevin Marois6-Sep-13 9:40 
GeneralRe: Another DependencyProperty Question Pin
Jason Gleim6-Sep-13 10:39
professionalJason Gleim6-Sep-13 10:39 
GeneralRe: Another DependencyProperty Question Pin
Jason Gleim6-Sep-13 10:53
professionalJason Gleim6-Sep-13 10:53 
GeneralRe: Another DependencyProperty Question Pin
Kevin Marois6-Sep-13 13:01
professionalKevin Marois6-Sep-13 13:01 
GeneralRe: Another DependencyProperty Question Pin
Kevin Marois9-Sep-13 7:12
professionalKevin Marois9-Sep-13 7:12 
GeneralRe: Another DependencyProperty Question Pin
Jason Gleim9-Sep-13 7:55
professionalJason Gleim9-Sep-13 7:55 
GeneralRe: Another DependencyProperty Question Pin
Kevin Marois9-Sep-13 8:01
professionalKevin Marois9-Sep-13 8:01 
GeneralRe: Another DependencyProperty Question Pin
Kevin Marois6-Sep-13 8:22
professionalKevin Marois6-Sep-13 8:22 
GeneralRe: Another DependencyProperty Question Pin
Pete O'Hanlon6-Sep-13 6:06
mvePete O'Hanlon6-Sep-13 6:06 
AnswerRe: Another DependencyProperty Question Pin
Richard Deeming6-Sep-13 4:22
mveRichard Deeming6-Sep-13 4:22 
GeneralRe: Another DependencyProperty Question Pin
SledgeHammer016-Sep-13 5:08
SledgeHammer016-Sep-13 5:08 
Questionneed a coah for a WPF projet Pin
vanjier4-Sep-13 6:17
vanjier4-Sep-13 6:17 
AnswerRe: need a coah for a WPF projet Pin
Pete O'Hanlon4-Sep-13 6:31
mvePete O'Hanlon4-Sep-13 6:31 
GeneralRe: need a coah for a WPF projet Pin
vanjier16-Sep-13 1:31
vanjier16-Sep-13 1:31 
GeneralRe: need a coah for a WPF projet Pin
Pete O'Hanlon16-Sep-13 1:50
mvePete O'Hanlon16-Sep-13 1: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.