Browse by Tags

Tagged Content List
  • Blog Post: Given a point, how to get the element at that coordinate?

    UIElement.InputHitTest is a hidden function that could do just that, public IInputElement InputHitTest ( Point point ) Passing in the coordinate, and this function will look at the element subtree and get the element (IInputElement because it's a common interface between ContentElement and UIElement...
  • Blog Post: GetPointAtFractionLength

    This is such a cool API, this is one sample usage (ie. Drawing a clock). I could see things like manually tracing a PathGeometry which could contain complex Bezier segments. double len = 0d; Point pt, ptTan; EllipseGeometry geo = new EllipseGeometry ( new Point (50, 50), 50, 50); PathGeometry pathGeo...
  • Blog Post: PresentationSource

    System.Windows.PresentationSource PresentationSource is such a useful class after digging deeper into it. I’ve use it from time to time and looking at its members, I can see more use of it in the future. The purpose of PresentationSource is to handle interop scenarios. To begin using this, anytime...
  • Blog Post: Get notification from WPF dependency system

    This is valuable information on hooking into DP system of WPF. The answer is DependencyPropertyDescriptor. This is similar to PropertyDescriptor from WinForm. http://msdn2.microsoft.com/en-us/library/system.componentmodel.dependencypropertydescriptor_members.aspx For example, if you want to...
  • Blog Post: Hmmm... WPF popup is always TOP_MOST

    Recently I have this bug inherited from my good intern that WPF <Popup/> will always be TOP_MOST in terms of z-index. The bug scenario is that when you have another application (eg. notepad.exe) going on top of my WPF application (with Popup launched), Popup will be top most even though notepad...
  • Blog Post: My WPF Hobby project for 2006 "Portfolio Delta"... a little late.

    It's been sometime since I last post here. This site even come with a new blog software. Very nice. Every year during my OOF days, I worked on some hobby project that I will be using. Last year, I was doing a Stock reader for my own consumption. It comes with loads of features. Mostly...
  • Blog Post: 1 line XAML challenge and Popup ....

    I saw Tim's challenge and thought about some interesting single element XAML. One of my markup which I thought will cover the whole screen does not do that anymore, it just covers about 80% of the screen MAX. I remember going thru the threat modeling and having Markup injection like this a concern. The...
  • Blog Post: Tiling with VisualBrush - WPF Beta 2

    It has been a while since I last blog about WPF (Avalon) related work. Well, here’s some updates on something I tried recently. I have some requirement lately to implement some GridLines for Diagrams. I first try to use OnRender and doing DrawLine inside of OnRender. I found that this is somehow slow...
  • Blog Post: Calendar Printing Assistant for Outlook 2007

    If you have access to Microsoft Office 2007 Beta2, check out this new office program: http://www.microsoft.com/office/preview/programs/outlook/cpa.mspx This software has dependency on Windows Presentation Framework Beta 2 (codename: Avalon) and of course Office 2007 Beta2. This software also utilize...
  • Blog Post: A Collection of useful Avalon tutorial

    While researching for information about Avalon [ for play-n-learn sample app ], I realized that I'm always going back to the same site/blog over and over again. I thought it is nice to just compile a list of information that I'm always using from time to time so that other users of Avalon can make find...
  • Blog Post: Experimental US weather service exposed via XML web service

    Found out yesterday that this information is available. I'm adding to my sample app (virtual earth) to enrich user experience. For more information, refer to National Oceanic and Atmospheric Administration: http://www.weather.gov/xml/
  • Blog Post: New and improved Nntp [dude] for Avalon March CTP ...

    I read Chris Sell’s blog and found out that the new Avalon CTP is available to public. As a member of the public I was too excited and decided to download and play with the CTP, CLR beta 2 and Visual C# Express. I was a bit worried as I have all kinds of VS installations, Avalon and CLR bits on my laptop...
  • Blog Post: Avalon DrawingContext ...

    DrawingContext is Avalon's equivalent of hdc (handle to device context) in Win32 programming or Graphics in GDI+. It provides us with low level calls to render/draw on the surface (screen/print/other visuals). Here's a list of useful draw method in DrawingContext: 1. DrawDrawing 2. DrawEllipse...
  • Blog Post: Avalon Property Invalidation

    If you are writing custom control. You sometimes need to know if your property change so that you can do something about it. For example, your control is CustomControl and have Size property. If the Size property change, you need to Invalidate Measure so that it will go back and call your MeasureCore...
  • Blog Post: Avalon webcast ...

    Excellent Avalon/WinFX information (slides, webcasts + source code) from PDC2003 available online right now at MSDN .
Page 1 of 1 (15 items)