Lester's WPF\SL Blog


Simple, Easy & Beautiful


 

Blog - Post Feedback Form(CAPTCHA)
  • Lester's WPF\Silverlight Blog

    GPU based effects

    • 2 Comments
    A hot new feature in 3.5 SP1 is GPU based effect. Greg Schechter has has a series of posts on this topic. Its well worth the read. So head over :) GPU-accelerated custom Effects for WPF Using Effects in WPF (Part 2) More details on how Effects work Writing custom GPU-based Effects for WPF A simple Effect sample project and ClickOnce application Writing custom Effects - adding parameters to Effects Video: wpf graphics Share this post
  • Lester's WPF\Silverlight Blog

    SourceAnalysis: Tool to enforce coding style

    • 1 Comments
    People just love to write code. One tool that is used inside Microsoft is StyleCop which enforces code style guidelines on the code we write. Its always been a ask from customers to get this out and guess what its out!! http://code.msdn.microsoft.com/sourceanalysis The tool on installation integrates with the VS IDE so the usage is very simple. The rules can be tweaked so that you dont have to follow everything. "Specifically, these rules cover the following, in no particular order: Layout of elements, statements, expressions, and query clauses Placement of curly brackets, parenthesis, square brackets, etc Spacing around keywords and operator symbols Line spacing Placement of method parameters within method declarations...
  • Lester's WPF\Silverlight Blog

    Join the WPF Test team

    • 1 Comments
    The WPF test team is hiring. We have the following openings · Software Development Engineer in Test (see official job posting ) · Software Test Architect (see official job posting ) For more details check out Ivo’s blog post Need some more convincing ... Check the video below :) Video: Why Microsoft Share this post
  • Lester's WPF\Silverlight Blog

    WPF 3.5 SP1 feature: StringFormat

    • 20 Comments
    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} = {1:D} " > < Binding Path = " Double " /> < Binding Path = " Date " /> </ MultiBinding >...
  • Lester's WPF\Silverlight Blog

    .NET 3.5 SP1 - Try it out today

    • 3 Comments
    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. For the complete details, take a look at Tims post Links to the executables: Visual Studio 2008 Service Pack 1 (Beta) .NET Framework 3.5 Service Pack 1 (Beta) Visual Studio 2008 Express Editions SP1 (Beta) Visual Studio 2008 Team Foundation Server 2008 SP1 (Beta)
  • Lester's WPF\Silverlight Blog

    MDI task switching sample

    • 4 Comments
    If you are creating apps which have mdi's (multiple document interfaces) you should definitely take a look at Karls post on MDI task switching. Its an elegant solution and the post explains it nicely ... and yeah you do have the code ...:) .. Take a look Share this post
  • Lester's WPF\Silverlight Blog

    Clipping of child elements

    • 4 Comments
    On the forums I saw this interesting problem where there was a need to round the corners of a stackpanel inside a border with cornerradius set... The top is what you get and the bottom image is what you want. The simplest thing to do here is to set the padding on the border so that the stackpanel doesnt bleed around the corners. But when that doesnt meet your requirements you will need to set the clip property on the child in the OnRender function so that you get the correct clipping. The code for the above is attached .(thanks to Ifeanyi) Share this post
  • Lester's WPF\Silverlight Blog

    Split Button\Menu Item\Automation

    • 2 Comments
    I got a couple of queries from the readers asking if I could provide a slightly non-trivial sample of using automation. So I created a split button user control which looks something like this If there are no items then you get a checkable button. The items are created in a popup and are generated on demand. This makes the automation a bit interesting. As you can see the control supports 3 patterns – · Invoke (for the button) · ExpandCollapse (for the drop down) · Toggle (for the checkable option) – This is just for demo purposes You will need to specify this in the GetPattern function which overrides the one in the base AutomationPeer. The other function that you might want to override is GetChildrenCore in case...
  • Lester's WPF\Silverlight Blog

    Creating a Media Center PC

    • 2 Comments
    Ivo has posted a nice entry on creating a Media Center PC... One thing nice is that it lists problems with solutions .. ahh!! thats a lifesaver... Check it out.... It does put an end to the DVR problems of recording the same shows multiple times and what not :) .. Share this post
  • Lester's WPF\Silverlight Blog

    Xbaps using Cookies

    • 5 Comments
    Earlier on I had written an app, BlogPadm which was fulltrust and the writer used Google Data API to write the content to Blogger.com. However, when you create an xbap version of it, a problem arises in that you cannot make WebRequests outside site of origin and hence, the xbap version of the above failed to take off. The workaround is to create a webservice at the site of origin so that the calls are forwarded. However, the focus of this app was to test cookies. So I hosted a blog server and had the blogwriter at the site of origin. So the flow is something like this: http://MainSite/Login.aspx à http://blogsite/blogwriter.xbap à http://blogsite/postentry.aspx The communication between the asp pages and the xbap is through cookies...
  • Lester's WPF\Silverlight Blog

    Drag drop library updated

    • 13 Comments
    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 up ... One frequent problem was the adorner flickering and this was a result of the adorner being deleted and created ... so thats fixed. There are also some fixes, code moving around and the usual stuff. Hope you find the new library useful :) Library attached Share this post
  • Lester's WPF\Silverlight Blog

    Tool: Export Visio to Xaml

    • 2 Comments
    This is a pretty nifty tool by Saveen .. The project is on codeplex: http://www.codeplex.com/VisioExportToXAML The results look amazing: (Visio rendering v/s Xaml render) Share this post
  • Lester's WPF\Silverlight Blog

    Maximizing borderless window using SysParameter values

    • 6 Comments
    Earlier on, I had written a post on maximizing a borderless (WindowStyle=None) window but without covering the taskbar. This solution works well but was not that nice to look at implementation wise :) ... However, theres a simplere solution to achieve the same. I get quite a few queries about the previous post, so I thought it would be a good idea to post this simple solution.. < Window Width = " {DynamicResource {x:Static SystemParameters.MaximizedPrimaryScreenWidthKey}} " Height = " {DynamicResource {x:Static SystemParameters.MaximizedPrimaryScreenHeightKey}} " WindowStartupLocation = " CenterScreen " WindowStyle = " None " /> SystemParameters to the rescue... for the code behind version, win.Height = SystemParameters...
  • Lester's WPF\Silverlight Blog

    Announcing: Vista SP1 RTM/ WPF App quality guide

    • 2 Comments
    The WPF team at Microsoft is happy to present the first release of the WPF Application Quality Guide. http://windowsclient.net/wpf/white-papers/wpf-app-quality-guide.aspx It’s a guide that upon completion can be a one-stop shop for guidance and best practices to improve product quality and testability for WPF applications. For those who missed the news yesterday, Vista SP1 was released to manufacture for the first set of languages (English, French, Spanish, German and Japanese). See the complete post here Share this post
  • Lester's WPF\Silverlight Blog

    Want some WPF improvements/features: Tell us

    • 99 Comments
    The WPF platform is powerful but relatively new. We realize that some things are lacking and we are in listening mode. If you feel that we need to improve or add something, send me a comment. We'll make sure you are heard. :) Share this post
  • Lester's WPF\Silverlight Blog

    Another MindMapping Tool

    • 4 Comments
    A month ago, I was browsing through different blogs and came across Denis Vuyka's blog post on connecting objects on the canvas... Nice post... Being an avid fan of mind maps, that was the natural extension to the library that he created. Check it out There are 3 types of objects which are basically the same... they contain rich content... Right clicking on the objects opens up an editable Richtextbox... In case you paste in Links, you can click them (Ctrl + Click) ... This opens the link in a new browser window. Maps can be saved/opened. Notice that saving a file also creates a folder with multiple streams. Ideally, everything would be zipped into a single file., I have left this upto you guys :) ... The reason for these multiple streams...
  • Lester's WPF\Silverlight Blog

    LIVE: The Syndicated Client Experiences Starter Kit & Reader SDK

    • 4 Comments
    Finally, the Reader SDK is out ... From the windowsclient site "These Syndicated Client Experiences applications exploit the push capabilities of RSS in a model where each application retains full control over the presentation of the content. The Sync Framework and sync service take care of syncing, caching, subscription management and the safe caching of authentication credentials. These services are designed to help publishers focus on what matters to them most: providing differentiated content experiences with very rich content, branding, skinning and custom user interface elements for an optimal end-to-end user experience" You can now create rich applications like the below very easily... :) ...you can download the msdnreader here...
  • Lester's WPF\Silverlight Blog

    Lawson Client - Great looking WPF enterprise app

    • 4 Comments
    I just came across this post from LongZheng that highlights the usage of WPF for creating visually enticing enterprise apps. aint that really nice... read the full post here Share this post
  • Lester's WPF\Silverlight Blog

    Creating Addins for XamlPadX

    • 3 Comments
    I got a few queries after releasing XamlPadX v3 regarding creating addins for the tool. So here is a small post on it. :) Create a customControlLibrary project. Add a reference to the AddInView dll present in the XamlPadX folder which is located in the program files folder. Also add a reference to the 3.5 System.Addin dll. Now in the xaml file change the UserControl Tag into AddInAddInView < f:AddInAddInView x:Class = " customaddin.UserControl1 " xmlns = " http://schemas.microsoft.com/winfx/2006/xaml/presentation " xmlns:x = " http://schemas.microsoft.com/winfx/2006/xaml " xmlns:f = " http://foo " Height = " 200 " Width = " 200 " > < Grid > < Rectangle Fill = " red " Height = " 100 " Width = " 100 "...
  • Lester's WPF\Silverlight Blog

    XamlPadX V3.0

    • 15 Comments
    So I finally got some time to upgrade XamlPadX... One of the things that I really wanted to add was the plugin support and here you have it. So now users can create their own addins which will plug into xamlpadX. Addin developers can use 3 functionalities of XamlPadX: void ChangeAppBackground( String str); String textBoxContents { get ; set ; } //this is the content in the xaml textbox int TextBoxCaretIndex //this is the caret index in the xaml textbox The color pallette is now included as an addin - so on installation we already have one plugin ready. All selected addins are included in the menu. To create a new addin, all you need is to create a control which extends AddInAddInView shown below ColorPallette : AddInViews. AddInAddInView...
Page 6 of 13 (241 items) «45678»