Lester's WPF\SL Blog


Simple, Easy & Beautiful


 

Browse by Tags

  • Blog Post: ABCs of Threat modeling ...

    Larry Osterman has an interesting series of posts on Threat modeling.. It starts from the basics and is very comprehensive. A application needs to go through the threat modeling process to identify possible threats, the mitigations, and the risks involved. From a tester's perspective it opens up several...
  • 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: Filtering text with IME languages

    So 3.5 beta2 is out and it has quite a lot of features. So one of them is the filtering mechanism for IME languages. This was not a problem in the english and other non-IME languages. The problems were the events associated with IME input - TextInputStart/Update/input... A major concern was that it was...
  • Blog Post: 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, ContainerUIElement3D...
  • 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: 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: Update: XamlPadX v2.5

    I was pleasantly surprised by the response I got for the last update of the tool. Along with the feedback I got a few bugs... ahh the bugs ... so went about fixing them ... Got a couple of new features too. :) If you have noticed above, theres a System Tray option to minimize to the systray. Now...
  • 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: Smalltalk sessions in a XBAP

    Xbaps are just multiplying by the day... Just came across this interesting xbap which runs VistaSmalltalk sessions. Its got a nice usage of popups. http://vistascript.net/vistascript/vsb/Vsb.xbap Share this post
  • 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: NewsReader apps (built using NewsReader SDK)

    I hope you guys out there have tried out the New York Times NewsReader. It enriches the reading experience. It’s more immersive in the sense that you get the feel of reading a newspaper J . Now we expand this experience to more readers. We now have Seattle P-I, Daily Mail, and Forbes.com come out with...
  • 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...
  • Blog Post: WPF/E 3D(like) photo app

    Often times when I go through the WPF forums, I see people getting confused with WPF and WPF/E..... (don’t miss the ‘E’).. One of things that is on many of our minds is ‘why not xbap’. Chad summarizes the difference in his blog pretty well. “ WPF/E Applications · Are cross-platform ready (Mac OS...
  • Blog Post: Changing caret color in (Rich)TextBox

    This sounds simple but its not so since we do not make it public. So what are the options we have here. hmmm... How about an hack J . The caret color is the inverse of the background color. So a very simple way is to set the background which then doesn’t get rendered. <Style TargetType="{x:Type...
  • Blog Post: Localizing WPF apps

    Localization does pose some difficulties even though I would like to believe the exact opposite :) ... So it was nice to read a post that is pretty comprehensive and makes it look easy. hmm... my belief is strengthened ;) brunzefb has posted this localization article on Codeproject and it is a must...
  • Blog Post: Free Xceed datagrid control for WPF

    One of the topmost customer requests has been for the datagrid. Unfortunately, we couldnt provide it for the V1 release. However, if this is a show stopper for you then you could use the xceed datagrid for WPF. It comes free and looks good from the demo. "Xceed DataGrid for WPF is licensed for free...
  • Blog Post: Printing RichTextBox content: (Find the idle printer)

    Recently, Praj blogged about printing content of a RichTextBox. Normally, if you use the documentPaginator or the visual, you might end up with some text clipped. Not a nice thing to happen J . One thing that bugs me while printing is the print dialog. Often times, I just want to use a printer that’s...
  • Blog Post: Determining the Visibility of Elements inside Scrollviewer

    A ScrollViewer is a very handy control. One of the problems, however, is bringing a control to Focus or scrolling to the item. If this is done manually, that’s not an issue. But programmatically hmm.. You can hit some issues. The simplest way is to call the scrollviewer’s ScrollToVerticalOffset() with...
  • Blog Post: Xbaps - Learn the basics

    Developing Xbaps (WPF web apps) can be a frustrating experience IF you are not sure about the supported features and the trust levels. A simple scenario would be copying text content from a xbap. Ouch! that wont work because of the heightened security. So its always a good thing to first read the basics...
  • Blog Post: XamlPadX v2

    Season's greetings guys :) Hope your Christmas was great. Ok so before we go into the next year I thought I'll take a look at XamlPadX since it will get a bit tough to spend some time on it in the next year. So XamlpadX v2 looks like: New features: 1> Line numbers in the Editing box 2> Written...
Page 1 of 3 (68 items) 123