Welcome to MSDN Blogs Sign in | Join | Help

Lester's WPF blog


Simple, easy & beautiful
Testing WPF apps using NUnit

Needless to say I use VSTS for testing purposes. However, quite a lot of people use NUnit for testing. So it was a good read for me when I came across Sacha's post on NUnit and WPF testing. So if you are using NUnit, do take a peek :)

 

Other related posts:

http://marlongrech.wordpress.com/2007/10/14/wpf-unit-testing/

http://www.codeproject.com/KB/WPF/UnitTestDispatcherTimer.aspx

 

Share this post

 

SilverLight Chart Controls running on WPF

In his recent blog post, Jaime took a stab at running the charting controls in the SilverLight ToolKit CTP on WPF.. Now thats awesome, aint it? Jaime also has the updated source code posted - Click here

Share this post

 

New WPF Controls: Ribbon/Calendar/DatePicker/VSM

Now you asked for more controls and you got it!! We have got walkthroughs for the following features:

  • WPF Toolkit: DataGrid Feature Walkthrough New!
  • WPF Toolkit: Visual State Manager Overview New!
  • Ribbon Feature Walkthrough New!
  • WPF Toolkit: DatePicker and Calendar Walkthrough New!
  • And to whet your appetite, heres some screenshots:

    So where do you download it: http://www.codeplex.com/wpf

     

    Share this post

     

    WPF sources/symbol files for 3.5 SP1

    Today the debug symbols and sources for WPF 3.5 SP1 were pushed online for download through VS2008.

    Steps for configuring VS to make use of the symbols and sources are located at : http://referencesource.microsoft.com/serversetup.aspx

    To read the RSCC post, click here

    Share this post

     

    Tool: Crack.NET

    Josh has just published the tool he's been working on - CRACK.NET. Its a combo of Snoop and Mole and its pretty awesome. "Crack.NET allows you to “walk” the managed heap of another .NET application, inspect all kinds of values on objects, and even manipulate those objects via IronPython scripts"

    You can read more about it from here

    Documentation : http://joshsmithonwpf.files.wordpress.com/2008/10/cracknet-article1.doc

    Link: http://www.codeplex.com/cracknetproject

    Download (Binaries/code): http://www.codeplex.com/cracknetproject/Release/ProjectReleases.aspx?ReleaseId=18629

     

    Some snapshots:

    Share this post

     

    XAML to PNG with server-side WPF

    Y'day I just read an interesting post of rendering xaml files with Server side WPF logic.. Got time.. take a look at Lurent's post here

    Share this post

     

    Xaml Coding guidelines

    While we have comes across a number of Coding guidelines, there is hardly any guidance wrt writing Xaml. Recently, I was pointed to Paul Stovell's post on Xaml coding guidelines and it is indeed an interesting post. Its a pretty nice list of Xaml coding guidelines. Take a look

    Share this post

     

    Analyzing complex code

    Quite often you come across some complex code, and the first thing you think of is "is there a diagram which lays this out?". .NET Reflector and its large set of plugins do help in this aspect and one of the plugins that is like is the SequenceViz, which gives you sequence diagrams in SVG format. This is in alpha, so be prepared for crashes. :). I use it with Inkscape which allows you the ability to edit the SVG files. Bit of a pain, you would say. hmmm....

    However, recently i got a chance to play around with NDepend, a static analysis tool. It has a lot of functionality and it does its job well. The one thing I like about this tool is the graph that it shows for the dependencies. And not just that, you can use the cql language (which is similar to SQL) to get a lot of other information like methods using API directly and indirectly and so forth. Additionally you get to put these results on a graph or a matrix. I am biased towards visuals and the graph being interactive is awesome :) Take a look at Patricks post here.. It shows what I like abt it.

    One more thing that is powerful is that you can easily get data on your assemblies based on specific metrics like Cyclomatic complexity. It also generates a comprehensive analysis report with all metrics, if thats whats interesting to you. It also has functionality to compare different dll versions and provide code coverage analyis. Theres a slight learning curve but once you get the hang of it, its goodness.. :).. You can try out the trial version out on their site.

     

    Share this post

     

    XamlPadX 4.0

    So I finally got a chance to update XamlpadX and heres the new version.

    Whats new.

    • The UI has been revamped to give the Blend sorta look.
    • Menus have been rearranged to maximize the space.
    • New addins: Clipboard viewer - which works well for analyzing rtf/xaml ... Path Designer/Jasema (thanks to Marlon)
    • Snapshot utility to take snapshots and save the xaml rendering
    • Syntax highlighting and collapsing (thanks to the editor control from SharpDevelop project)
    • Error logs - left bottom corner has a link to the stack trace when there is an error
    • Error light - editor has a red/green box at the bottom right corner
    • Bug fixes/code restructuring

    Also, i would like to point out that you could create your own addins and add it to the xamlpadx toolbar at the top.

    Download/Install: XamlpadX [On Vista, save to desktop, right click and Run as Admin]

    Zipped file in case you have problem downloading the installable:Click here

     

    Share this post

     

    WPF SplashScreen Template

    The Splashscreen feature was part of SP1. However, there was no VS template to get it done fast. We have now released the VS template for creating Splashscreens for your projects. EnJoi

    http://www.codeplex.com/wpf/Release/ProjectReleases.aspx?ReleaseId=14962

     For step by step walkthrough of creating the splashscreen check this blog entry

    Share this post

     

    WPF Datagrid CTP

    One of the common requests from LOB customers has been the Datagrid control. Its not there is SP1 but we have released the CTP version of this control on Codeplex.

    check it out here: http://www.codeplex.com/wpf/Release/ProjectReleases.aspx?ReleaseId=14963

     In addition, it also includes VS templates for building GPU shader based effects..http://www.codeplex.com/wpf/Release/ProjectReleases.aspx?ReleaseId=14962

    Share this post

     

    .NET 3.5 SP1 released

    Theres just a ton of new features in SP1... so lets just jump to the links (from Charlies blog post) :)

    VS 2008 Service Pack 1:

    VS 2008 Express Editions with Service Pack 1:

    VS Team System 2008 Team Foundation SP 1:

    .NET Framework 3.5 Service Pack 1

    Team Foundation Server

    Got feedback?  https://connect.microsoft.com/VisualStudio

     

    Share this post

     

    Posts about threading in .NET

    if you want to know more about Threading, theres a series of posts (in the making) by Sacha Barber on Code Project. This is definitely a good read :)

    The following are links to the posts:

    Share this post

     

    Composite Application Guidance for WPF 2008

    Its been some time before my last post. Just catching my breath with a new addition to my family. :)

    The Composite Application Guidance aka PRISM for WPF 2008 has just been released. For those who havent heard of it : "The Composite Application Guidance for WPF can help you split the development of your WPF client application across multiple development teams, each responsible for the development of a piece of the application, and help you seamlessly compose those pieces together into a client application. The guidance includes a reference implementation, reusable library code (called the Composite Application Library), documentation, quick start tutorials and hands-on labs."

    For more details/downloads take a  look at the project on codeplex: http://www.codeplex.com/CompositeWPF

    Share this post

     

    WPF WebBrowser (.NET 3.5 SP1)

    One of the new controls is the WebBrowser... aha!! not the Winforms control.. we now have it in WPF.

    Functions supported by this control are:

    • NavigateToString
    • NavigateToStream
    • Navigate
    • GoBack
    • GoForward

     In xaml it would look like something like this:

    <StackPanel Name="panel">

      <WebBrowser Height="500"  >

      </WebBrowser>

    </StackPanel>

     

     

     

    I put together a simple sample which tries to use this functionality Looks like the above. Nothing fancy :)

    Also since this is beta you might find a few rough edges (bugs) here and there.Please report them on the connect website or on the forums. 

    Project Code: Attached

    Share this post

     

    More Posts Next page »
    Page view tracker