Lester's WPF\SL Blog


Simple, Easy & Beautiful


 

January, 2007

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

    Determining the Visibility of Elements inside Scrollviewer

    • 6 Comments
    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 the offset being the Y co-ordinate. But what if the element is partially visible and you do not want it to scroll. This would require determining if the element is in the ScrollViewers viewport. The way to achieve this is simple. Suppose ContainedObject is the element inside the Scrollviewer (ScrollViewerObj) // position of your visual inside the scrollviewer GeneralTransform childTransform = ContainedObject .TransformToAncestor...
  • Lester's WPF\Silverlight Blog

    Cool WPF app - Turning the Page 2.0

    • 6 Comments
    Just came across this super cool WPF web app… Its called “turning the pages” and is developed in partnership between the British Library and Armadillo Systems . This is one helluva app. Play the video below. If that got you interested check out the app here . For more information go to their site . Share this post
  • Lester's WPF\Silverlight Blog

    Printing RichTextBox content: (Find the idle printer)

    • 1 Comments
    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 not busy. Just don’t make me wait. It’s pretty simple to code and its worth it. No more waiting at the printer. ;) foreach ( PrintQueue pq in GetPrintQueues( "\\\\servername" )) { if (!pq.IsBusy) { Print(pq); return ; } } private IEnumerable < PrintQueue > GetPrintQueues( string servername) { PrintServer ps; if ( string .IsNullOrEmpty(servername)) { // local printer name ps = new LocalPrintServer (); } else { //...
  • Lester's WPF\Silverlight Blog

    Complementary copy of Office Professional 2007

    • 1 Comments
    Starting from Jan 15 through March 1, Microsoft has organized launch events for Office 2007, Vista and Exchange Server 2007 in 74 different cities. You can have some learning sessions, talk to experts, have some hands on experience and enjoy the events. And to top it all you get a FREE copy of Office Professional 2007 and Office Groove 2007*. To find if there is an event near you check out this link and register: http://www.microsoft.com/business/launch2007/signup/default.mspx *FREE copy of Microsoft Office Professional 2007 and Microsoft Office Groove 2007. Offer good only to registered attendees of event on the date they attend, while supplies last. This offer is nontransferable. Limit one item each per attendee. Taxes, if any, are...
  • Lester's WPF\Silverlight Blog

    Xbaps - Learn the basics

    • 1 Comments
    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 before you start developing one. Karen Corby has written a couple of posts on xbaps and they provide comprehensive info on xbaps. The first one delves on features ( Link ). The second post talks about the security levels ( Link ). These two posts are must reads in addition to the info in the SDK. Happy reading :) Share this post
  • Lester's WPF\Silverlight Blog

    Free Xceed datagrid control for WPF

    • 0 Comments
    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 , with an unlimited number of licenses per company, as long as each developer registers with their real name and valid email address at work. The free license is a perpetual license and includes royalty-free distribution, bugfixes, and new features, so your company can use it with full confidence. " - Xceed website The xbap demo can be seen here Share this post
  • Lester's WPF\Silverlight Blog

    WPF Technical Chat transcript

    • 0 Comments
    Now a lot of you guys know that we had a technical chat a week before Christmas. For those who missed out, do not despair; we upload the transcript to MSDN. Also, looking at the response we do plan to have another chat session soon :). The transcript is not yet uploaded to MSDN, but you could however, get it from here . The document is pretty long but its well worth a read.
Page 1 of 1 (7 items)