Geeks With Blogs
New Things I Learned WPF Posts that talk about WPF
Materials for the St. Louis Day of .NET 2010 presentations - part one
I'm going to be giving a presentation for the St. Louis Day of .NET 2010 - TODAY! Worked out my materials for the first 2 sessions, for those that are interested, they can download the materials: The first session is: JumpStart: Workflow 4. The session describes the core features and technology involved in developing and managing your Activity enriched application workflows using Windows Workflow Foundation 4.0. The files can be downloaded here. The second session is Introduction to 3D in WPF. This ......

Posted On Thursday, August 19, 2010 11:51 PM

Presenting for the St. Louis .NET User Group – What’s new in VS2010 and .NET 4.0
Last night I had the pleasure of presenting a session on ‘What’s new in VS2010 and .NET 4.0’ for the St. Louis .NET User Group. Got to meet with lots of people there, so greets go to all . I had fun with the session; I liked talking about new technology and it’s pretty neat to see everyone and just mingle around with people in general. Pizza was great (thanks to last night’s sponsor: Quilogy) – I have to also thank Scott Spradlin for allowing me to present to the group. The session itself has the ......

Posted On Tuesday, September 29, 2009 9:53 AM

Intermediate WPF session material
One of the sessions I did in St. Louis Day of .NET is about Intermediate WPF. It seems to be one that people seem to have liked, so I’m making the materials available here first for those that may be interested in playing around with it. The overview description was made before the material is done, and I was not able to show 3D graphics within the sample; my apologies. In any case, there’s really no text out there that defines what is Intermediate WPF; so I just created one . The session goes through ......

Posted On Thursday, September 3, 2009 8:22 AM

Displaying Rich-Formatted Text in WPF
One project was put forth that essentially requires creating a MessageBox look-alike, but the text supports rich-format, and we can do it in WPF. It's a pretty neat task, and in this post I'll focus on just the text side; the easiest way possible most probably is to just use a RichTextBox control, make it to have no border, and everything will be fine. However, I'd like to do it efficiently as well. FormattedText can be used; however it's hard to make it generic - essentially code has to be written ......

Posted On Monday, November 17, 2008 5:18 PM

Refresh / Update WPF controls
Sometime in the past, a friend asked me how to update a control to show status while his code is doing a loop of stuff. Essentially changing the text of a label (or sophisticatedly we can say a text-based progress bar). In my past coding with MFC and WinForms, it's fairly easy enough, you just invalidate and do an update (Invalidate / UpdateWindow in MFC or Invalidate / Update in WinForms). This approach also coincides with how Windows UI operate, where you specify the region that needs to be redrawn ......

Posted On Monday, August 25, 2008 10:22 AM

Pack URI Authority - Local Assembly = Executable
I had a post about accessing XAML resources using Pack URI, and actually had the chance to try it out. The format of the pack URI is "pack://authority/path", and there are only 2 valid authority: application:/// and siteoforigin:///, as described in Microsoft's Pack URI documentation. The path will just point to the resource you want to get; you can include the folder / subfolder, other assemblies (containing the resource), even versions of the assembly. The simplest example they had was: pack://application:,,,/Reso... ......

Posted On Wednesday, April 30, 2008 11:02 AM

Refer to resources in WPF with Pack URI
It's been over 2 months since I last updated my blog. I have been busy; we got a new VP of IT and he made some changes and there are a bunch of stuff that's getting rejigged and people moved, projects retargeted, etc. etc. In the end, it's not enough reason for me to not blog at all. I started this blog so I can record my experiences with learning new stuff. I have to say that I came back to this blog more than enough times to relook at the stuff I had learnt, to the point where my lapse in adding ......

Posted On Monday, April 28, 2008 1:41 PM

Disposing CollectionView (Detaching your data and the CollectionView)
One of my prior post talks about how CollectionView (and anything deriving from it like ListCollectionView) doesn't get garbage collected after use - even worse it continues to hang onto the data it was bound to, which may cause performance issues. After fiddling through this, I found 3 ways to disconnect them, which I'll detail below. - Derive classes from CollectionView that can dispose itself. The subscriber to the CollectionChanged event is a protected function named 'OnCollectionChanged' - so ......

Posted On Thursday, February 7, 2008 6:08 PM

An alternative to notifying CollectionView of multiple items changed
While trying to sort out a different problem, I ended up looking at the NotifyCollectionChangedEven... constructor where the first overload only needs a NotifyCollectionChangedAction enumeration with no items needed. It must've escaped my mind since most of the implementation I had so far will actually raise the CollectionChanged event when adding or removing an item, and most of those implementation will just specify the item being added/removed. This single parameter constructor documentation ......

Posted On Friday, January 25, 2008 12:10 PM

Understanding Garbage Collection in relation to CollectionView classes
In my post yesterday, I created a rudimentary mechanism to detect if/when an object is garbage collected in .NET. In the example I gave, I created a ListCollectionViewEx class deriving from ListCollectionView. The sample code then tries to create 100 ListCollectionViewEx and then for a GC.Collect. To my surprise, the ListCollectionViewEx objects are not garbage collected. Now, I know the mechanism to record garbage collected item works, because I've tried it with other objects. So what gives? From ......

Posted On Friday, January 18, 2008 3:06 PM

Copyright © Muljadi Budiman | Powered by: GeeksWithBlogs.net