Click here to Skip to main content

Silverlight / WPF

    RSS: RSS Feed

 
You must Sign In to use this message board. (secure sign-in)
 
Search this forum  
 FAQ
    Noise  Layout  Per page  Show 
  Refresh
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 use DrawingGroup and GeometryDrawing classes in Silverlight Pinmemberamit@work6:22 12 Oct '09  
AnswerRe: How to use DrawingGroup and GeometryDrawing classes in Silverlight PinmvpMark Salsbery7:08 12 Oct '09  
QuestionDelete button with Data grid Pinmemberravi.vellanky22:29 11 Oct '09  
AnswerRe: Delete button with Data grid PinmemberAnudeep Jaiswal - NOIDA2:36 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  
Questionve silverlight map control-web services Pinmemberbilly dev6:59 11 Oct '09  
AnswerRe: ve silverlight map control-web services PinmvpMark Salsbery11:41 11 Oct '09  
GeneralRe: ve silverlight map control-web services Pinmemberbilly dev11:19 12 Oct '09  
AnswerRe: ve silverlight map control-web services PinmvpMark Salsbery12:14 11 Oct '09  
GeneralRe: ve silverlight map control-web services Pinmemberbilly dev11:34 12 Oct '09  
GeneralRe: ve silverlight map control-web services PinmvpMark Salsbery11:54 12 Oct '09  
GeneralRe: ve silverlight map control-web services Pinmemberbilly dev11:56 13 Oct '09  
GeneralRe: ve silverlight map control-web services PinmvpMark Salsbery13:22 13 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  
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  

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

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


Advertise | Privacy | Mobile
Web02 | 2.5.120209.1 | Last Updated 10 Feb 2012
Copyright © CodeProject, 1999-2012
All Rights Reserved. Terms of Use
Layout: fixed | fluid