This project has moved. For the latest updates, please go here.

The first tweet from my WPF Application

Jul 19, 2011 at 11:59 PM

Hi Guys! I'm working on a WPF Application that allows the user post a tweet but I'm having problems with the line tiwtterCtx.Log = Console.Out; because I'm not using the console at all, so I tried to do it with a textBox but it didn't work out, it doesn't shows any error but it doesn't posts the tweet either. I hope someone can help me.
This is my code:

private void bTuit_Click(object sender, System.Windows.RoutedEventArgs e)
	// TODO: Add event handler implementation here.
        using (var twitterCtx = new TwitterContext(auth, "", ""))
                twitterCtx.Log = Console.Out;

                StatusDemos.Run(twitterCtx, this);


Jul 20, 2011 at 12:30 AM


Log is a System.IO.TextWriter.  What you would do is create your own class that derives from TextWriter (or another type derived from TextWriter) and overrides the Write(string) method.  In that overload, you can do anything with the string that you need.