Lester's WPF\SL Blog


Simple, Easy & Beautiful


 

March, 2006

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

    Annotations in WPF

    • 0 Comments
    Currently working on some Annotation stuff. So I thought it would be nice to post something on Annotations. It actually is pretty sinple to create/delete annotations- a couple of lines and its done. viewer = new FlowDocumentPageViewer(); //viewer needs to be populated :) XmlStreamStore myStream = new XmlStreamStore ( new FileStream ( "annotations.xml" , FileMode .OpenOrCreate) ); service = new AnnotationService (viewer); service.Enable(myStream); AnnotationService .CreateTextStickyNoteCommand.Execute( null , viewer); There are commands fro creating and deleting highlights as part of the AnnotationService. In the above code, the annotations are stored in the xml file. A more popular form is to store it in an xps file and Derek's blog explains...
  • Lester's WPF\Silverlight Blog

    Post-it notes using WPF.

    • 0 Comments
    I am a very big fan of Post-it notes. It keeps my day organized. But one problem with these notes are that they are physical and once you are not physically present in your office, theres no way to access them.. So that was when I shifted to the software Post-it notes. This is very handy and I have been using them for a couple of years. It looked like a nice app to make in WPF and I spent some time on it in December and it came out pretty nice. So heres how it looks like: Looks good!! aint it .. :) ... There can be enhancements but i havent touched it for quite some time.... so what does it have - a splash screen the old alpha-chanel way (its much simpler using WPF and I have a couple of posts on it ) and some post-it note logic. So...
  • Lester's WPF\Silverlight Blog

    Part III: Non-Rectangular Window in WPF (use of Thumb)

    • 0 Comments
    There seemed to be quite a lot of interest in my previous post on non-rectangular spash screen and I also received a lot of requests to post code to move around such a window. The magic to this is to use a thumb and then use the dragdelta event. The code would look something like this: void b_Click( object sender, RoutedEventArgs e) { HwndSourceParameters sParams = new HwndSourceParameters ( "Layered window" , 200, 200); sParams.UsesPerPixelOpacity = true ; _source = new HwndSource (sParams); _source.Disposed += new EventHandler (_source_Disposed); Thumb t = new Thumb (); t.Height = 200; t.Width = 200; t.DragDelta += MoveImage; Image vista = new Image (); vista.Margin = new Thickness (0); BitmapImage bi = new BitmapImage (); bi.BeginInit...
  • Lester's WPF\Silverlight Blog

    WPF-Winforms Interop functionality PART of WPF V1!!

    • 0 Comments
    Whats a product without customers.. the same applies to WPF. Its good to know that our customer has been increasing tremendously and this reach has been possible because we deliver excellent stuff and also we are good listeners. For instance, we had planned on shipping the WPF-Winforms Interop functionality (code named "CrossBow") along with Visual Studio "Orcas". But many of our customers came to us with their concern about this functionality being delivered at a later date. So the custamers requested and we went about making their wishes come true. So now we have decided to make this functionality a part of WPF V1. ...yoooohoooo!!!! .... So this would "enable customers to leverage their existing Winforms code base (hosting WPF controls...
Page 1 of 1 (4 items)