Porting WPF apps to Silverlight

The other day when browsing through the blogosphere I came across Arik’s posts describing the workarounds\tips that he used for porting his 3.5 WPF application to Silverlight. It was a good read since all these tips from different bloggers have been consolidated in 2 posts Porting from WPF to Silverlight: The Missing Pieces, Part 1…

8

WPF 3.5 SP1 feature: StringFormat

One of the new features in 3.5 SP1 is stringformat. The usage is pretty simple. So following are simple snippets showing its use <TextBox Text=”{Binding Path=Double, StringFormat=F3}”/> <TextBox Text=”{Binding Path=Double, StringFormat=Amount: {0:C}}”/> <TextBox Text=”{Binding Path=Double, StringFormat=Amount: \{0:C\}}”/> <TextBox>   <TextBox.Text>     <Binding Path=”Double” StringFormat=”{}{0:C}”/>   </TextBox.Text> </TextBox>   <TextBox>   <TextBox.Text>     <MultiBinding StringFormat=”{}{0:F2} =…

20

.NET 3.5 SP1 – Try it out today

Have you tried out .NET 3.5 SP1… If not, try it now. Its got loads of new features for WPF. In fact rather than a service pack, its more of a new release .. So whats new.. improved deployment, new controls (supports creation of datagrid), improved performance, DirectX integration, HLSL shaders, and many new features….

3

Drag drop library updated

The drag drop entry that I had posted has been used by a lot of you guys out there and I have received a lot of suggestions/bugs. I also got a few ready made fixes from you… Thank You 🙂 …  So I finally got down to incorporating all these changes and got the new library…

13

MindMap app using Hyperbolic tree

I recently came across a Hyperbolic tree implementation on codeplex using WPF and thought that a nice usage of it could be in writing a mind map creating application…. I tweaked some of the original code and got a tree with editable nodes… Its been laying around for sometime, so I thought it best to put it…

2

Testing using WPF UI automation

One question that often pops up among WPF app developers is UI testing… WPF enables this scenario through a new accessibility framework. Some useful resources from mdeavey’s post  Overview Using UI Automation UI Spy Stress Test using UI Automation (new link : here) Unit Testing WPF controls with Automation Peers Instantiating a WPF control from an NUnit…

4

3.5 features: Viewport2DVisual3D

Viewport2DVisual3D …. this new feature makes things a lot easier in the 3D world.. What this enables is putting interactive 2D on 3D.  This makes things like having a textbox in 3D a breeze…  <Viewport2DVisual3D x:Name=”vp2d_multiple_children” Geometry=”{StaticResource mesh}”>             <Viewport2DVisual3D.Material>                         <DiffuseMaterial Viewport2DVisual3D.IsVisualHostMaterial=”True” Brush=”White”/>             </Viewport2DVisual3D.Material>             <TextBox />   </Viewport2DVisual3D> One other thing is…

9

3.5 features: Addins

In 3.0, we received a number of queries regarding creating plugins. So in 3.5 we got this in .. 🙂 .. Creating an adding would bsically need the use of 3 dlls – System.Addin, System.Addin.Contract, System.Presentation The basic steps to create the addins involves creating a contract, then create the corresponding views and adapsters for…

3

3.5 Features: Enabled hyperlinks in RichTextBox

hmmm… that was one often requested feature. So to enable hyperlinks in RichTextBox all that is needed is to set the property IsDocumentEnabled on the RichTextBox. Type the following in XamlPadX and you have the hyperlink navigation working. <RichTextBox IsDocumentEnabled=”True” xmlns=’http://schemas.microsoft.com/winfx/2006/xaml/presentation’ xmlns:x=’http://schemas.microsoft.com/winfx/2006/xaml’>         <FlowDocument>                <Paragraph>                        <Hyperlink NavigateUri=”http://club.live.com”>Live Games</Hyperlink>                </Paragraph>         </FlowDocument> </RichTextBox…

3

3.5 released with many features!!!

You can now download Visual studio 2008 Beta2 and .Net 3.5 Beta 2. The link is here So whats new in 3.5 – Support for Addins – Xbaps now run in FoerFox – Cookies can be shared between XBAP’s and Web Apps – Better support for binding to BindingList coll and LINQ – new UIElement3D,…

1