Click here to Skip to main content
6,822,123 members and growing! (18,816 online)
Email Password   helpLost your password?

WPF / WCF / WF



You must Sign In to use this message board.
FAQ FAQ 
 
Noise Tolerance  Layout  Per page  Date Filter 
 Msgs 1,088 to 1,112 of 8,671 (Total in Forum: 8,671) (Refresh)FirstPrevNext
AnswerRe: Rotation with Translation Transform problem PinmvpMark Salsbery7:53 13 Oct '09  
AnswerRe: Rotation with Translation Transform problem PinmemberGideon Engelberth6:56 14 Oct '09  
QuestionWPF Large image grid - best control to use? PinmemberBex_30000:52 13 Oct '09  
QuestionMVVM and using a Backgroundworker PinmemberCollin Jasnoch10:45 12 Oct '09  
AnswerRe: MVVM and using a Backgroundworker PinmvpPete O'Hanlon11:29 12 Oct '09  
GeneralRe: MVVM and using a Backgroundworker PinmemberCollin Jasnoch6:30 14 Oct '09  
GeneralRe: MVVM and using a Backgroundworker PinmvpPete O'Hanlon10:20 14 Oct '09  
Questionhow to create slide out effect. Pinmemberwasimsharp1:58 12 Oct '09  
GeneralBinding StringWriter to WPF TextBox Pinmemberdwotx14:07 11 Oct '09  
I'm trying to use Log4net to log messages within my application. I'm adding a WPF window and want to stream the messages to the window. Log4net provides a TextWriterAppender that takes a StringWriter and writes logged events to the StringWriter, flushing it after each event.

I want to simply connect the output of the StringWriter as the Text property on a TextBox. When I started this, it seemed simple and obvious - now I'm less sure. Ideally, I would simply like to bind the StringWriter to the TextBox, but haven't found the incantation.

The basic problem is that the StringWriter doesn't provide something like the INotifyPropertyChanged event to trigger code output a new log message (unless there is something behind the scenes I haven't found).

I've see many examples of binding, all of which seem to presume that I have control over the writer itself. Am I missing something simple (I hope), or is this really not that straightforward.

Any thoughts/help appreciated.

Thanks,


--Don
GeneralRe: Binding StringWriter to WPF TextBox PinmvpPete O'Hanlon12:16 12 Oct '09  
QuestionMaking rounded surfaces of a control Pinmemberahsansharjeel4:09 11 Oct '09  
QuestionHow do I make rounded corners for textbox, combobox and other controls Pinmemberahsansharjeel4:03 11 Oct '09  
AnswerRe: How do I make rounded corners for textbox, combobox and other controls PinmvpPete O'Hanlon11:35 11 Oct '09  
Question[Message Deleted] Pinmemberahsansharjeel3:47 11 Oct '09  
AnswerRe: How do I make ComboBox, AutoComplete and Auto Suggests PinmvpChristian Graus11:52 11 Oct '09  
GeneralRe: How do I make ComboBox, AutoComplete and Auto Suggests Pinmemberahsansharjeel19:05 11 Oct '09  
GeneralRe: How do I make ComboBox, AutoComplete and Auto Suggests PinmvpPete O'Hanlon23:25 11 Oct '09  
QuestionEvent ! Pinmemberbreakvn18:13 10 Oct '09  
AnswerRe: Event ! [modified] PinmemberNigel Ferrissey11:31 11 Oct '09  
QuestionWhy doesn't Microsoft support the documented mouse event handlers inside FlowDocument objects? PinmemberfjparisIII11:20 10 Oct '09  
AnswerRe: Why doesn't Microsoft support the documented mouse event handlers inside FlowDocument objects? PinmvpPete O'Hanlon12:58 11 Oct '09  
GeneralRe: Why doesn't Microsoft support the documented mouse event handlers inside FlowDocument objects? [modified] PinmemberfjparisIII13:49 11 Oct '09  
QuestionHelp with ProgressBar PinmemberEtienne_1234:19 10 Oct '09  
AnswerRe: Help with ProgressBar PinmemberDoc.NetNoodles5:32 10 Oct '09  
GeneralRe: Help with ProgressBar PinmemberEtienne_1238:21 10 Oct '09  

General General    News News    Question Question    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads.


Last Updated 10 Aug 2007
Web20 | 2.2.0230 (18:30 2 Apr '10 ) | Advertise | Privacy
Copyright © CodeProject, 1999-2010
All Rights Reserved. Terms of Use