Lester's WPF\SL Blog


Simple, Easy & Beautiful


 

Browse by Tags

  • Blog Post: Using RibbonGallery Control

    The Ribbon Control is a pretty big control owing to the complexity of the Ribbon design guidelines. You can give it a try by downloading from LINK While there are several things to blog about, this post will focus on RibbonGallery. The download provides a sample that covers all features by implementing...
  • Blog Post: WPF Ribbon Basics

    The WPF Ribbon control is easy to use once you get the basics of it. The structure is simple < ribbon : Ribbon x : Name ="Ribbon" > < ribbon : Ribbon.ApplicationMenu > < ribbon : RibbonApplicationMenu SmallImageSource ="Images\SmallIcon.png" > < ribbon : RibbonApplicationMenuItem...
  • Blog Post: WPF WebBrowser - Awesome!!

    Just came back from vacation, which was great. Going through the blog posts i missed, I saw the WPF browser app which I thought you should definitely take a look. Its a mix of the Google Chromium project, (a wrapper called Awesomium ) and a WPF. The source code is also available - so makes for some nice...
  • Blog Post: MDI task switching sample

    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
  • Blog Post: Clipping of child elements

    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...
  • Blog Post: Split Button\Menu Item\Automation

    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...
  • Blog Post: Xbaps using Cookies

    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...
  • Blog Post: 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 up ... One frequent problem...
  • Blog Post: Maximizing borderless window using SysParameter values

    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...
  • Blog Post: Another MindMapping Tool

    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...
  • Blog Post: WPF weather reader user control

    Recently Ahmad, our test intern, created a WPF weather user control and it came out really nice. Take a look. The code is available on code plex .. The code also includes a sample which is demo desktop weather gadget using the usercontrol. The user control provides 2 dependency properties, IsMaximized...
  • Blog Post: 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...
  • Blog Post: 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} " >...
  • Blog Post: 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...
  • Blog Post: 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...
  • Blog Post: WPF Balloon comments :)

    Pavan has a nice post on creating baloon comments. The first thing that comes to mind on seeing the balloon comments is Comics. And guess what! thats exactly what I tried.. and presto You can get the original source code here . It overlooks positioning the arrows coming out of the comment boxes...
  • Blog Post: WpfPerf tools now available as a msi

    A couple of weeks ago I had posted an entry about the WPF perf tools being part of the SDK.. One of the readers asked for a separate installable since the SDK is huge and downloading the SDK just for the perf tools really didnt make sense... So we listened, and the WPF perf tools are now available as...
  • Blog Post: WPF Blog Writer

    Recently, I was trying my hand at creating a simple blog writer. The writer came out pretty nice. The app makes use of a base richEditor control (thanks to Praj ).. After a bit of tweaking it ended up like the above... So the app just makes a simple call in the xaml <custom:RichEditor/> ...
  • Blog Post: Xaml shield image in plain Xaml

    just came across a post which includes xaml to display the xaml shield. That looks sweet.. and all the more when its in Xaml... Xaml code attached Share this post
  • Blog Post: Vista style Open/Save FileDialogs

    If you have tried creating FileDialogs in WPF, they usually do not blend well into the Vista look. The solution is to use the wrappers provided in the VistaBridge library which is part of the SDK samples. You could include the library dll (around 100k) in your project and then make the simple call...
  • Blog Post: Xaml FlowDoc to XPS

    Feng Yuan has a nice blog post on how to convert FlowDocuments to an XPS document with the header. The code is in the form of a wrapper class so its gonna be handy. I tried out the code on a RichTextBox and it worked like a charm J I reused one of my old samples and it looks great :) ... The sample...
  • Blog Post: Sample form using listview

    Recently I was clearing up my documents and I came across this sample I made. Thought it might be useful to someone out there and here it is. It’s basically something like a form but which dynamically grows as and when you fill up the rows. So the typical ‘Add New Row’ button is missing. J … Red...
  • Blog Post: BitmapSource-Bitmap interop

    Recently I was trying my hand at a rough image editing scenario and one of the things was changing into gray scale, brightness and so forth. If you have played with .NET 2.0 you get quite a few functions which help in these types of operations and it would be nice shifting Images to Bitmaps and vice...
  • Blog Post: Listening to DependencyProperty changes

    Dependency property is a pretty kewl concept. You got to agree on that J . One the nice features is the ability to listen to the changes in these properties and I tend to use it a lot. The SDK way would be to derive from the control, override the dependencyproperty metadata and specify the propertychangedCallback...
  • Blog Post: Capturing Frame content

    Some time back I got a question about capturing the contents of a frame and it seemed easy, but every time I tried capturing the frame i was getting a blank image. The trick here is that the frame loads the content asynchronously - the simplest thing to do is wait for some time :) ... The frame is...
Page 1 of 3 (58 items) 123