Click here to Skip to main content
15,860,972 members
Home / Discussions / WPF
   

WPF

 
AnswerRe: MVVM and using a Backgroundworker Pin
Pete O'Hanlon12-Oct-09 10:29
subeditorPete O'Hanlon12-Oct-09 10:29 
GeneralMessage Removed Pin
14-Oct-09 5:30
professionalN_tro_P14-Oct-09 5:30 
GeneralRe: MVVM and using a Backgroundworker Pin
Pete O'Hanlon14-Oct-09 9:20
subeditorPete O'Hanlon14-Oct-09 9:20 
QuestionHow to use DrawingGroup and GeometryDrawing classes in Silverlight Pin
amit@work12-Oct-09 5:22
amit@work12-Oct-09 5:22 
AnswerRe: How to use DrawingGroup and GeometryDrawing classes in Silverlight Pin
Mark Salsbery12-Oct-09 6:08
Mark Salsbery12-Oct-09 6:08 
QuestionDelete button with Data grid Pin
ravi.vellanky11-Oct-09 21:29
ravi.vellanky11-Oct-09 21:29 
AnswerRe: Delete button with Data grid Pin
Anudeep Jaiswal - MCA12-Oct-09 1:36
Anudeep Jaiswal - MCA12-Oct-09 1:36 
GeneralBinding StringWriter to WPF TextBox Pin
dwotx11-Oct-09 13:07
dwotx11-Oct-09 13:07 
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 Pin
Pete O'Hanlon12-Oct-09 11:16
subeditorPete O'Hanlon12-Oct-09 11:16 
Questionve silverlight map control-web services Pin
billy dev11-Oct-09 5:59
billy dev11-Oct-09 5:59 
AnswerRe: ve silverlight map control-web services Pin
Mark Salsbery11-Oct-09 10:41
Mark Salsbery11-Oct-09 10:41 
GeneralRe: ve silverlight map control-web services Pin
billy dev12-Oct-09 10:19
billy dev12-Oct-09 10:19 
AnswerRe: ve silverlight map control-web services Pin
Mark Salsbery11-Oct-09 11:14
Mark Salsbery11-Oct-09 11:14 
GeneralRe: ve silverlight map control-web services Pin
billy dev12-Oct-09 10:34
billy dev12-Oct-09 10:34 
GeneralRe: ve silverlight map control-web services Pin
Mark Salsbery12-Oct-09 10:54
Mark Salsbery12-Oct-09 10:54 
GeneralRe: ve silverlight map control-web services Pin
billy dev13-Oct-09 10:56
billy dev13-Oct-09 10:56 
GeneralRe: ve silverlight map control-web services Pin
Mark Salsbery13-Oct-09 12:22
Mark Salsbery13-Oct-09 12:22 
QuestionHow do I make rounded corners for textbox, combobox and other controls Pin
ahsansharjeel11-Oct-09 3:03
ahsansharjeel11-Oct-09 3:03 
AnswerRe: How do I make rounded corners for textbox, combobox and other controls Pin
Pete O'Hanlon11-Oct-09 10:35
subeditorPete O'Hanlon11-Oct-09 10:35 
Question[Message Deleted] Pin
ahsansharjeel11-Oct-09 2:47
ahsansharjeel11-Oct-09 2:47 
AnswerRe: How do I make ComboBox, AutoComplete and Auto Suggests Pin
Christian Graus11-Oct-09 10:52
protectorChristian Graus11-Oct-09 10:52 
GeneralRe: How do I make ComboBox, AutoComplete and Auto Suggests Pin
ahsansharjeel11-Oct-09 18:05
ahsansharjeel11-Oct-09 18:05 
GeneralRe: How do I make ComboBox, AutoComplete and Auto Suggests Pin
Pete O'Hanlon11-Oct-09 22:25
subeditorPete O'Hanlon11-Oct-09 22:25 
QuestionWhy doesn't Microsoft support the documented mouse event handlers inside FlowDocument objects? Pin
fjparisIII10-Oct-09 10:20
fjparisIII10-Oct-09 10:20 
AnswerRe: Why doesn't Microsoft support the documented mouse event handlers inside FlowDocument objects? Pin
Pete O'Hanlon11-Oct-09 11:58
subeditorPete O'Hanlon11-Oct-09 11:58 

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.