WPF Blog Writer by Lester

This past winter, I had coded a custom control which has a RichTextBox with toolbar for various formatting commands. I had hoped to publish it as a a standalone control sample which people could reuse, but it needed some styling to make the control look prettier. Lester has done a great job with that code and…

1

Dave Relyea’s Silverlight Layout Controls

One of the topmost questions about Silverlight has been the lack of layout controls and TextBox. Dave Relyea has put together a great set of sample layout controls for Silvelight in C#. The controls in his project are: Layout framework LayoutControl and LayoutContainerControl base control classes Border StackPanel Grid Label Button (XAML courtesy of Mike Harsh)…

0

Back from the Silverlight cave

It is time to catch up with blogging after a long silence from my end. Earlier this year, I moved to work on WPF/e aka Silverlight team. It has been an exciting time and now that the cat is out of the bag, I am looking forward to blogging some fun Silverlight samples. Stay tuned. For…

0

Printing Contents of WPF RichTextBox

I was recently playing with code to print contents of WPF RichTextBox control. The SDK has a code sample on this at http://msdn2.microsoft.com/en-us/library/aa970917.aspx             // Print RichTextBox content             private void PrintCommand()             {                 PrintDialog pd = new PrintDialog();                 if ((pd.ShowDialog() == true))                 {                     //use either one of the below                          pd.PrintVisual(richTB as…

5