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

WPF

 
AnswerRe: query using Lamda expression Pin
koll Zhu22-Sep-13 23:43
koll Zhu22-Sep-13 23:43 
QuestionOpen a window after progress bar load completes Pin
TheUltimateDebugger6-Sep-13 19:22
professionalTheUltimateDebugger6-Sep-13 19:22 
AnswerRe: Open a window after progress bar load completes Pin
Richard Deeming9-Sep-13 1:39
mveRichard Deeming9-Sep-13 1:39 
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 
Pete must have been smoking some really good dope when he answered you Smile | :) . Your code is correct how you have it. I'm assuming you got rid of the:

private JobSummaryModel _SelectedJob;
public JobSummaryModel SelectedJob
{
get { return _SelectedJob; }
set
{
if (_SelectedJob == value)
return;

_SelectedJob = value;
RaisePropertyChanged("SelectedJob");
}
}

stuff and REPLACED it with:

public JobSummaryModel SelectedJob
{
get { return (JobSummaryModel)GetValue(SelectedJobProperty); }
set { SetValue(SelectedJobProperty, value); }
}

public static readonly DependencyProperty SelectedJobProperty = DependencyProperty.Register("SelectedJob", typeof(JobSummaryModel),
typeof(JobListView));

??

The key point here that everybody seems to be forgetting is that DPs don't go through the C# getter / setter (when binding). That is only there to make it easier to get/set the DP from the code. Your SelectedJob method is *COMPLETELY* bypassed by the binding system.

Use one of the DependencyProperty.Register overloads that take a property changed callback. That is the ONLY way you can determine when a DP value changes.
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 
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 

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.