Click here to Skip to main content
15,563,228 members
Home / Discussions / WPF
   

WPF

 
AnswerRe: Override a value in base style's resource Pin
Richard Deeming20-May-21 5:33
mveRichard Deeming20-May-21 5:33 
GeneralRe: Override a value in base style's resource Pin
Mc_Topaz20-May-21 7:00
Mc_Topaz20-May-21 7:00 
QuestionApply TextBlock Captions at Runtime Pin
Kevin Marois14-May-21 10:34
professionalKevin Marois14-May-21 10:34 
AnswerRe: Apply TextBlock Captions at Runtime Pin
Peter_in_278014-May-21 14:36
professionalPeter_in_278014-May-21 14:36 
GeneralRe: Apply TextBlock Captions at Runtime Pin
Kevin Marois14-May-21 14:42
professionalKevin Marois14-May-21 14:42 
GeneralRe: Apply TextBlock Captions at Runtime Pin
Pete O'Hanlon15-May-21 0:51
mvaPete O'Hanlon15-May-21 0:51 
AnswerRe: Apply TextBlock Captions at Runtime Pin
Mycroft Holmes15-May-21 13:25
professionalMycroft Holmes15-May-21 13:25 
GeneralRe: Apply TextBlock Captions at Runtime Pin
Gerry Schmitz16-May-21 12:17
mveGerry Schmitz16-May-21 12:17 
QuestionWPF TextBox Handle Data Pasted In Pin
Kevin Marois14-Apr-21 9:29
professionalKevin Marois14-Apr-21 9:29 
AnswerRe: WPF TextBox Handle Data Pasted In Pin
Richard Deeming14-Apr-21 23:50
mveRichard Deeming14-Apr-21 23:50 
GeneralRe: WPF TextBox Handle Data Pasted In Pin
Kevin Marois15-Apr-21 6:49
professionalKevin Marois15-Apr-21 6:49 
QuestionFormat Percentage Pin
Kevin Marois13-Apr-21 10:16
professionalKevin Marois13-Apr-21 10:16 
AnswerRe: Format Percentage Pin
Richard Deeming13-Apr-21 23:36
mveRichard Deeming13-Apr-21 23:36 
GeneralRe: Format Percentage Pin
Kevin Marois14-Apr-21 8:42
professionalKevin Marois14-Apr-21 8:42 
QuestionAvalonEdit Sytax Highlighting for XAML files? Pin
#realJSOP5-Apr-21 9:57
mva#realJSOP5-Apr-21 9:57 
AnswerRe: AvalonEdit Sytax Highlighting for XAML files? Pin
Richard Deeming6-Apr-21 1:22
mveRichard Deeming6-Apr-21 1:22 
QuestionRevert Property Change Pin
Kevin Marois5-Apr-21 8:20
professionalKevin Marois5-Apr-21 8:20 
AnswerRe: Revert Property Change Pin
#realJSOP5-Apr-21 9:55
mva#realJSOP5-Apr-21 9:55 
QuestionUI not updating Pin
#realJSOP28-Mar-21 4:52
mva#realJSOP28-Mar-21 4:52 
AnswerRe: UI not updating Pin
Pete O'Hanlon28-Mar-21 7:10
mvaPete O'Hanlon28-Mar-21 7:10 
GeneralRe: UI not updating Pin
#realJSOP28-Mar-21 7:40
mva#realJSOP28-Mar-21 7:40 
AnswerRe: UI not updating Pin
Richard Deeming28-Mar-21 23:20
mveRichard Deeming28-Mar-21 23:20 
GeneralRe: UI not updating Pin
#realJSOP29-Mar-21 3:59
mva#realJSOP29-Mar-21 3:59 
AnswerRe: UI not updating Pin
Gerry Schmitz29-Mar-21 10:15
mveGerry Schmitz29-Mar-21 10:15 
GeneralRe: UI not updating Pin
#realJSOP29-Mar-21 11:38
mva#realJSOP29-Mar-21 11:38 
In the constructor:
C#
this.DataContext = this;
also, the object is declared in the form as follows:
C#
private MyObject myObj;
public MyObject MyObj { get { return this.myObj; } set { this.myObj = value; this.NotifyPropertyChange(); } }
I already showed the xaml in the original post.

There are no binding exceptions being thrown when the code executes.

I have verified that the properties that are bound to the textblocks are indeed being updated (the setter in the properties is being called, and the values are in fact being updated), and that the form itself is recieving the PropertyChanged events (I hooked the PropertyChanged event to make sure).

As stated before, I am running this on the same thread as the UI, so cross-thread UI issues should not (and don't appear to) be a factor since the properties are getting updated and the form is being notified, and there are no exceptions being raised.

I even tried bringing the code into the form from the object, and the UI still doesn't update until the method that's running the code exits.
".45 ACP - because shooting twice is just silly" - JSOP, 2010
-----
You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
-----
When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013

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.