ASP.Net MVC Modal Dialog

by Weifen Luo (DevZest) 15. May 2013 21:19
Download source code from CodePlex Currently I’m working on a project using ASP.Net MVC, which is my first ASP.Net MVC project. What really surprises me is, although ASP.Net MVC has been years old, there is no neat solution to open/close modal dialog. Here are some of the google search results with... [More]


.Net | ASP.Net | ASP.Net MVC | JQuery | JavaScript | Code Sample

WPF Data Virtualization

by Weifen Luo (DevZest) 11. April 2010 19:12
Download (40KB) Introduction In a typical WPF + WCF LOB application, displaying and interacting a large data set is not a trivial task. While several posts on internet forums discuss data virtualization, none of them has all the following: Selection, sorting and... [More]

Tags: ,

.Net | Code Sample | Freebies | WPF

Model-View-ViewModel (MVVM) Design Pattern with WPF Docking

by Weifen Luo (DevZest) 10. February 2010 13:37
Download Source: (183KB)   Today an evaluation user asked how to implement MVVM design pattern with WPF Docking. Here is a sample application modified from the MSDN Magazine article WPF Apps With The Model-View-ViewModel Design Pattern(by Josh Smith): the application c... [More]

Tags: ,

.Net | Code Sample | WPF

IList in Expression Blend Designer

by Weifen Luo (DevZest) 17. December 2009 09:31
Recently an user of WPF Dockingreported a bug that in Expression Blend the sample window is not rendering. The Blend window says "Invalid XML", the error message in the results pane says: The property "ShowActions" can only be set once; The property "ShowActions" ... [More]


WPF | Expression Blend

WPF Survey Form Implementation

by Weifen Luo (DevZest) 11. December 2009 13:08
Download Source Code (29KB) Introduction Recently I’m working on a LOB (Line-of-Business) application requires implementing couple of survey forms to collect data from the user (yes, in addition to sell our software products, we provide .Net consulting service too). Here is a clean implementat... [More]


WPF | Code Sample

Object.ToString() Using Invariant Culture

by Weifen Luo (DevZest) 17. September 2009 23:29
Today, an Italian user of WPF Docking reported a bug in BrowserDockSample: the saved floating window position is not correctly loaded - it seems the loaded floating window is displayed at far right bottom of the screen. Taking the saved XAML text under the Italian culture: <DockLayout xmlns... [More]



Local Machine Copy Protected Licensing

by Weifen Luo (DevZest) 14. September 2009 11:55
There are many ways to enforce the software licensing for local machine copy protection: CPU ID, network card mac address, hard disk serial number, etc. But they all have some pitfalls: the first is hard to get these information reliably; the second is these information is the privacy of the users a... [More]

Tags: , ,


Debug.Assert vs. Exception

by Weifen Luo (DevZest) 2. September 2009 17:40
In .Net programming, you can check for a condition and outputs the call stack if the condition is false: // Test that the index value is valid. Debug.Assert(index > -1); Or throw an exception under a certain condition: // Test that the index value is valid. if (index <= -1) throw n... [More]



UAC Demystified

by Weifen Luo (DevZest) 25. August 2009 11:00
After posting the blog Programming Elevated Privilege / UAC, I realized I should post a separate blog to discuss UAC first. Before Window NT (Windows 3.1, Win95, 98), there is no concept of user or user privilege. At that time, Windows are built on top of DOS, and DOS is a very simple operating sys... [More]

Tags: ,

Windows Forms | WPF | .Net | Windows

WPF Docking Document Tab Icon

by Weifen Luo (DevZest) 25. August 2009 09:52
A commonly required feature for WPF Docking is the ability to show/hide icon for document tab. Though it can be accomplished by apply a custom template for DocumentTab class, we added this feature in version 1.0.3520 to make everybody’s life easier. A new DocumentTab.ShowsIcon attached pro... [More]

Tags: ,


Copyright DevZest, 2008 - 2018