Click here to Skip to main content
15,909,051 members
Home / Discussions / WPF
   

WPF

 
PinnedHOW TO ANSWER A QUESTION PinPopular
Chris Maunder16-Jul-09 3:09
cofounderChris Maunder16-Jul-09 3:09 
PinnedHow to get an answer to your question PinPopular
Chris Maunder16-Jul-09 3:05
cofounderChris Maunder16-Jul-09 3:05 
QuestionICommand Wpf form load properties? Pin
geomeo1239hrs 12mins ago
geomeo1239hrs 12mins ago 
AnswerRe: ICommand Wpf form load properties? Pin
Richard Deeming1 hr 57mins ago
mveRichard Deeming1 hr 57mins ago 
QuestionWrapPanel / ItemsControl Problem Pin
Kevin Marois29-May-24 16:15
professionalKevin Marois29-May-24 16:15 
AnswerRe: WrapPanel / ItemsControl Problem Pin
Richard Deeming29-May-24 21:41
mveRichard Deeming29-May-24 21:41 
GeneralRe: WrapPanel / ItemsControl Problem Pin
Kevin Marois16hrs 16mins ago
professionalKevin Marois16hrs 16mins ago 
GeneralRe: WrapPanel / ItemsControl Problem Pin
Richard Deeming2hrs 1 min ago
mveRichard Deeming2hrs 1 min ago 
QuestionInitialize Webview2 in WPF Application work for windows user authentication Pin
Aditi Arora 202116-May-24 8:05
Aditi Arora 202116-May-24 8:05 
AnswerRe: Initialize Webview2 in WPF Application work for windows user authentication Pin
Dave Kreskowiak16-May-24 9:33
mveDave Kreskowiak16-May-24 9:33 
QuestionBinding Header in TabItem to child property in the ViewModel Pin
Kenneth Haugland28-Apr-24 21:57
mvaKenneth Haugland28-Apr-24 21:57 
QuestionDataGrid Built In ViewModel Question Pin
Kevin Marois8-Apr-24 13:24
professionalKevin Marois8-Apr-24 13:24 
AnswerRe: DataGrid Built In ViewModel Question Pin
Mycroft Holmes10-Apr-24 12:04
professionalMycroft Holmes10-Apr-24 12:04 
QuestionWPF .Net 6 Pin
Kevin Marois14-Mar-24 16:35
professionalKevin Marois14-Mar-24 16:35 
AnswerRe: WPF .Net 6 Pin
Pete O'Hanlon14-Mar-24 20:22
mvePete O'Hanlon14-Mar-24 20:22 
QuestionDependencyProperty fires only in ViewModel.ctor Pin
iwangoll25-Feb-24 7:34
iwangoll25-Feb-24 7:34 
AnswerRe: DependencyProperty fires only in ViewModel.ctor Pin
Richard Deeming25-Feb-24 22:44
mveRichard Deeming25-Feb-24 22:44 
XAML data-binding to dependency properties does not use the property getter or setter. It calls SetValue directly on the DependencyProperty instance. Any code that needs to execute when the property value changes needs to be in the PropertyChangedCallback method.

#118 – Don’t Add Code to Dependency Property Getter/Setter | 2,000 Things You Should Know About WPF[^]

You've also forgotten to raise the PropertyChanged event from your viewmodel. Assuming the usual definition of BindableBase, you probably meant to write something like:
C#
private string _testInfoView;
public string TestInfoView 
{ 
    get { return _testInfoView; }
    set { SetProperty(ref _testInfoView, value); }
}
The SetProperty method will update the field and raise the PropertyChanged event for you.



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

GeneralRe: DependencyProperty fires only in ViewModel.ctor Pin
iwangoll26-Feb-24 1:51
iwangoll26-Feb-24 1:51 
GeneralRe: DependencyProperty fires only in ViewModel.ctor Pin
Richard Deeming26-Feb-24 2:19
mveRichard Deeming26-Feb-24 2:19 
GeneralRe: DependencyProperty fires only in ViewModel.ctor Pin
iwangoll26-Feb-24 3:16
iwangoll26-Feb-24 3:16 
QuestionGet Tab For Context Menu Pin
Kevin Marois26-Jan-24 18:35
professionalKevin Marois26-Jan-24 18:35 
QuestionINotifyDataErrorInfo Question Pin
Kevin Marois2-Jan-24 17:07
professionalKevin Marois2-Jan-24 17:07 
QuestionWhen Are All DependencyProperties Set Pin
Kevin Marois28-Dec-23 21:12
professionalKevin Marois28-Dec-23 21:12 
AnswerRe: When Are All DependencyProperties Set Pin
#realJSOP9-Apr-24 1:30
professional#realJSOP9-Apr-24 1:30 
QuestionDataTemplate Problem Pin
Kevin Marois5-Dec-23 12:08
professionalKevin Marois5-Dec-23 12:08 

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.