Browse by Tags
All Tags »
WPF (RSS)
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
Read More...
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 (
Read More...
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
Read More...
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
Read More...
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),
Read More...
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
Read More...
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
Read More...
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
Read More...
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
Read More...
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
Read More...
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/
Read More...
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
Read More...
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:
Read More...
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
Read More...
Excellent Avalon/WinFX information (slides, webcasts + source code) from PDC2003 available online right now at MSDN .
Read More...