Click here to Skip to main content
15,314,965 members

Articles by Daniel Vaughan (Articles: 47, Technical Blogs: 17, Tip/Tricks: 7)

Articles: 47, Technical Blogs: 17, Tip/Tricks: 7

RSS Feed

Average article rating: 4.89

All Topics
28 Sep 2011   Updated: 28 Sep 2011   Rating: 4.88/5    Votes: 31   Popularity: 7.28
Licence: CPOL    Views: 52,363     Bookmarked: 13   Downloaded: 0
Please Sign up or sign in to vote.
Welcome to our continuing series of Code Project interviews in which we talk to developers about their backgrounds, projects, interests and pet peeves. In this installment we track down Code Project member Daniel Vaughan.
CodeProject
23 Aug 2013   Updated: 23 Aug 2013   Rating: 5.00/5    Votes: 7   Popularity: 4.23
Licence: CPOL    Views: 20,620     Bookmarked: 6   Downloaded: 0
Please Sign up or sign in to vote.
In honour of the 10 million member milestone, CodeProject members Sacha Barber and Daniel Vaughan reflect back on their time as part of the developer community.
Containers
Virtual Machine
24 Mar 2010   Updated: 23 Jul 2010   Rating: 4.99/5    Votes: 88   Popularity: 9.70
Licence: CPOL    Views: 202,608     Bookmarked: 186   Downloaded: 6,812
Please Sign up or sign in to vote.
Get a head start with the new Windows Phone 7 developer tools. Learn how to create a Sokoban game in Silverlight for the WP7 platform.
Desktop Programming
Universal Windows Platform
29 Mar 2019   Updated: 29 Mar 2019   Rating: 5.00/5    Votes: 4   Popularity: 3.01
Licence: CPOL    Views: 5,563     Bookmarked: 3   Downloaded: 47
Please Sign up or sign in to vote.
Create a dynamic settings screen for your UWP app. Add a setting with a single line of code.
13 Oct 2016   Updated: 13 Oct 2016   Rating: 4.95/5    Votes: 12   Popularity: 5.34
Licence: BSD    Views: 27,651     Bookmarked: 18   Downloaded: 324
Please Sign up or sign in to vote.
A fun UWP implementation of the game Sokoban, demonstrating some new features of XAML and C# 6.0. Part 1
18 Oct 2016   Updated: 18 Oct 2016   Rating: 5.00/5    Votes: 14   Popularity: 5.73
Licence: CPOL    Views: 14,113     Bookmarked: 10   Downloaded: 0
Please Sign up or sign in to vote.
A fun UWP implementation of the game Sokoban, demonstrating some new features of XAML and C# 6.0. Part 2
26 Oct 2016   Updated: 26 Oct 2016   Rating: 5.00/5    Votes: 7   Popularity: 4.23
Licence: CPOL    Views: 9,001     Bookmarked: 6   Downloaded: 0
Please Sign up or sign in to vote.
A fun UWP implementation of the game Sokoban, demonstrating some new features of XAML and C# 6.0. Part 3
22 Jan 2017   Updated: 22 Jan 2017   Rating: 5.00/5    Votes: 5   Popularity: 3.49
Licence: CPOL    Views: 13,233     Bookmarked: 2   Downloaded: 188
Please Sign up or sign in to vote.
Implementing synchronous and asynchronous form validation for XAML based apps.
Windows Forms
1 Dec 2007   Updated: 25 Dec 2008   Rating: 4.51/5    Votes: 68   Popularity: 8.17
Licence: LGPL3    Views: 145,794     Bookmarked: 114   Downloaded: 954
Please Sign up or sign in to vote.
A customizable log provider system that allows you to harness your existing logging system to log client side messages to your server using WCF. Includes WPF sample applications.
2 Sep 2009   Updated: 7 Nov 2009   Rating: 4.97/5    Votes: 45   Popularity: 8.01
Licence: BSD    Views: 153,902     Bookmarked: 152   Downloaded: 1,449
Please Sign up or sign in to vote.
Generate project metadata with T4 and unburden yourself from string literals in XAML binding expressions and INotifyPropertyChanged event arguments.
WPF
22 Mar 2009   Updated: 22 Mar 2009   Rating: 4.95/5    Votes: 126   Popularity: 10.30
Licence: LGPL3    Views: 162,788     Bookmarked: 217   Downloaded: 1,616
Please Sign up or sign in to vote.
Knowledge acquired by a neural network is used to predict the element to which a user may intend to navigate.
1 May 2010   Updated: 1 May 2010   Rating: 4.93/5    Votes: 69   Popularity: 9.04
Licence: BSD    Views: 143,465     Bookmarked: 172   Downloaded: 854
Please Sign up or sign in to vote.
Reduce threading code, and increase UI responsiveness with a new pattern extending MVVM.
31 May 2009   Updated: 1 Jun 2009   Rating: 4.93/5    Votes: 70   Popularity: 9.03
Licence: BSD    Views: 233,335     Bookmarked: 208   Downloaded: 0
Please Sign up or sign in to vote.
Calcium provides much of what one needs to rapidly build a multifaceted and sophisticated modular application. Includes a host of modules and services, and an infrastructure that is ready to use in your next application.
21 Nov 2009   Updated: 21 Nov 2009   Rating: 4.96/5    Votes: 48   Popularity: 8.30
Licence: BSD    Views: 104,832     Bookmarked: 92   Downloaded: 0
Please Sign up or sign in to vote.
Introducing the Calcium SDK. Calcium provides much of what one needs to rapidly build a multifaceted and sophisticated modular application. Includes a host of modules and services, and an infrastructure that is ready to use in your next application.
5 Jul 2009   Updated: 23 Nov 2009   Rating: 5.00/5    Votes: 47   Popularity: 8.22
Licence: BSD    Views: 101,976     Bookmarked: 89   Downloaded: 1
Please Sign up or sign in to vote.
Calcium provides much of what one needs to rapidly build a multifaceted and sophisticated modular application. Includes a host of modules and services, and an infrastructure that is ready to use in your next application.
1 Nov 2007   Updated: 16 Jun 2008   Rating: 4.88/5    Votes: 44   Popularity: 7.82
Licence: BSD    Views: 118,163     Bookmarked: 78   Downloaded: 3,411
Please Sign up or sign in to vote.
A fun implementation of the game Sokoban, written to showcase some features of WPF, C# 3.0, Expression Design, and Visual Studio 2008.
24 Feb 2010   Updated: 24 Feb 2010   Rating: 4.98/5    Votes: 56   Popularity: 8.66
Licence: LGPL3    Views: 85,187     Bookmarked: 114   Downloaded: 0
Please Sign up or sign in to vote.
A Desktop and Silverlight user action management system, with undo, redo, and repeat. Allowing actions to be monitored, and grouped according to a context (such as a UI control), executed sequentially or in parallel, and even to be rolled back on failure.
13 Mar 2010   Updated: 13 Mar 2010   Rating: 4.98/5    Votes: 42   Popularity: 7.74
Licence: BSD    Views: 72,802     Bookmarked: 54   Downloaded: 0
Please Sign up or sign in to vote.
A Desktop and Silverlight user action management system, with undo, redo, and repeat; allowing actions to be monitored, and grouped according to a context (such as a UI control), executed sequentially or in parallel, and even to be rolled back on failure.
Mobile Apps
Android
12 Nov 2016   Updated: 12 Nov 2016   Rating: 5.00/5    Votes: 3   Popularity: 2.39
Licence: CPOL    Views: 10,055     Bookmarked: 2   Downloaded: 76
Please Sign up or sign in to vote.
Using resource switching to support multiple deployment scenarios in Xamarin.Android projects.
Xamarin
15 Sep 2014   Updated: 15 Sep 2014   Rating: 5.00/5    Votes: 29   Popularity: 7.31
Licence: CPOL    Views: 65,750     Bookmarked: 56   Downloaded: 0
Please Sign up or sign in to vote.
Create best-in-breed cross-platform MVVM apps using Calcium for Xamarin.Forms.
17 Sep 2014   Updated: 17 Sep 2014   Rating: 5.00/5    Votes: 10   Popularity: 5.00
Licence: CPOL    Views: 43,815     Bookmarked: 22   Downloaded: 0
Please Sign up or sign in to vote.
Create a Xamarin Forms tabbed page or carousel page by binding to a collection of ViewModels; extending beyond the current capabilities of Xamarin Forms.
2 Oct 2014   Updated: 2 Oct 2014   Rating: 4.76/5    Votes: 8   Popularity: 4.30
Licence: CPOL    Views: 26,870     Bookmarked: 15   Downloaded: 0
Please Sign up or sign in to vote.
Leverage existing .resx files to localize Windows Phone, Android, and iOS apps in Xamarin.Forms.
7 Oct 2014   Updated: 7 Oct 2014   Rating: 4.94/5    Votes: 21   Popularity: 6.42
Licence: CPOL    Views: 81,970     Bookmarked: 24   Downloaded: 0
Please Sign up or sign in to vote.
Using Xamarin Forms platform specific rendering to create a cross-platform application bar.
13 Nov 2014   Updated: 13 Nov 2014   Rating: 4.97/5    Votes: 18   Popularity: 6.24
Licence: CPOL    Views: 77,783     Bookmarked: 22   Downloaded: 0
Please Sign up or sign in to vote.
Learn how to combine T4 and a custom markup extension to share and consume image files between projects.
10 Jan 2016   Updated: 10 Jan 2016   Rating: 4.88/5    Votes: 20   Popularity: 6.24
Licence: BSD    Views: 40,745     Bookmarked: 13   Downloaded: 635
Please Sign up or sign in to vote.
A powerful, yet light-weight, data-binding library for binding XML layout files in Xamarin.Android.
25 Nov 2016   Updated: 25 Nov 2016   Rating: 4.89/5    Votes: 21   Popularity: 6.47
Licence: CPOL    Views: 42,047     Bookmarked: 34   Downloaded: 1,561
Please Sign up or sign in to vote.
A fun Xamarin Forms implementation of the game Sokoban, demonstrating how to port a UWP puzzle game to both Android and iOS while sharing nearly all code across platforms.
4 Apr 2017   Updated: 4 Apr 2017   Rating: 4.85/5    Votes: 16   Popularity: 5.70
Licence: CPOL    Views: 15,871     Bookmarked: 9   Downloaded: 0
Please Sign up or sign in to vote.
Codon is a zero-dependency cross-platform MVVM framework for creating UWP, WPF, and Xamarin based applications.
4 Apr 2017   Updated: 4 Apr 2017   Rating: 4.60/5    Votes: 5   Popularity: 3.22
Licence: CPOL    Views: 7,851     Bookmarked: 1   Downloaded: 0
Please Sign up or sign in to vote.
Storing and retrieving settings with the cross-platform Codon framework's settings service.
4 Apr 2017   Updated: 4 Apr 2017   Rating: 4.50/5    Votes: 4   Popularity: 2.71
Licence: CPOL    Views: 7,770     Bookmarked: 1   Downloaded: 0
Please Sign up or sign in to vote.
Navigating between pages using Codon's navigation service.
4 Apr 2017   Updated: 4 Apr 2017   Rating: 4.56/5    Votes: 4   Popularity: 2.74
Licence: CPOL    Views: 7,650     Bookmarked: 1   Downloaded: 0
Please Sign up or sign in to vote.
Using Codon's Messenger to pass messages between app components
1 Apr 2018   Updated: 1 Apr 2018   Rating: 5.00/5    Votes: 3   Popularity: 2.39
Licence: CPOL    Views: 6,300     Bookmarked: 5   Downloaded: 49
Please Sign up or sign in to vote.
Learn how to leverage the asynchronous ICommand implementation in Codon FX to support commands that kick-off long-running operations.
Programming Languages
C#
29 Aug 2009   Updated: 29 Aug 2009   Rating: 5.00/5    Votes: 2   Popularity: 1.51
Licence: LGPL3    Views: 28,561     Bookmarked: 12   Downloaded: 0
Please Sign up or sign in to vote.
Property Change Notification using a Weak Referencing Strategy
29 Aug 2009   Updated: 29 Aug 2009   Rating: 4.64/5    Votes: 5   Popularity: 3.24
Licence: LGPL3    Views: 12,841     Bookmarked: 2   Downloaded: 0
Please Sign up or sign in to vote.
A location agnostic message service
17 Oct 2009   Updated: 17 Oct 2009   Rating: 4.89/5    Votes: 15   Popularity: 5.61
Licence: Ms-PL    Views: 46,772     Bookmarked: 28   Downloaded: 314
Please Sign up or sign in to vote.
How to use an MSBuild custom task to provide compile time verification of string type names in app.config files.
29 Aug 2009   Updated: 29 Aug 2009   Rating: 4.50/5    Votes: 3   Popularity: 2.15
Licence: LGPL3    Views: 18,331     Bookmarked: 6   Downloaded: 0
Please Sign up or sign in to vote.
I have used T4 to build a metadata generator for your Silverlight and Desktop CLR projects. It can be used as a replacement for static reflection (expression trees), reflection (walking the stack), and various other means for deriving the name of a property, method, or field.
C# 4.0
16 Nov 2008   Updated: 16 Nov 2008   Rating: 4.95/5    Votes: 47   Popularity: 8.18
Licence: LGPL3    Views: 398,119     Bookmarked: 81   Downloaded: 3,974
Please Sign up or sign in to vote.
In this article, we look at the asynchronous web service model in Silverlight, and how it can be augmented to allow synchronous web service calls. We also explore efficient channel caching, and asynchronous Silverlight Unit Tests.
C# 7.0
24 Aug 2017   Updated: 24 Aug 2017   Rating: 5.00/5    Votes: 10   Popularity: 5.00
Licence: CPOL    Views: 12,367     Bookmarked: 11   Downloaded: 129
Please Sign up or sign in to vote.
Using steganography to conceal text within a document or watermark a code file, using a whitespace encoder. Hide text in plain sight!
Quantum Computing
27 Jun 2019   Updated: 27 Jun 2019   Rating: 5.00/5    Votes: 5   Popularity: 3.49
Licence: CPOL    Views: 7,326     Bookmarked: 8   Downloaded: 0
Please Sign up or sign in to vote.
Part 3 in a series where you learn the fundamentals of quantum computation. In this part we see how to rotate and swap qubits, and we delve further into controlled gates.
24 Jun 2019   Updated: 24 Jun 2019   Rating: 5.00/5    Votes: 27   Popularity: 7.16
Licence: CPOL    Views: 31,323     Bookmarked: 26   Downloaded: 0
Please Sign up or sign in to vote.
Learn the fundamentals of quantum computation. Understand Dirac notation and design and build quantum circuits.
26 Jun 2019   Updated: 26 Jun 2019   Rating: 5.00/5    Votes: 12   Popularity: 5.40
Licence: CPOL    Views: 15,198     Bookmarked: 9   Downloaded: 0
Please Sign up or sign in to vote.
Learn the fundamentals of quantum computation. In this part we look at using gates to create quantum states.
WCF
29 Aug 2009   Updated: 29 Aug 2009   Rating: 4.64/5    Votes: 5   Popularity: 3.24
Licence: LGPL3    Views: 24,830     Bookmarked: 3   Downloaded: 0
Please Sign up or sign in to vote.
Transparent WCF Channel Management with Unity
Web Development
ASP.NET
26 Jan 2008   Updated: 25 Jan 2008   Rating: 4.91/5    Votes: 42   Popularity: 7.70
Licence: LGPL3    Views: 162,560     Bookmarked: 89   Downloaded: 566
Please Sign up or sign in to vote.
A URL Object Serialization component that provides compression and encryption of CLR objects, enabling embedding within URLs. Also includes a user account purging component that performs the periodic removal of unconfirmed user accounts, and a website that demonstrates the user account confirmation.
11 Nov 2007   Updated: 11 Nov 2007   Rating: 4.88/5    Votes: 59   Popularity: 8.50
Licence: Not specified    Views: 125,534     Bookmarked: 138   Downloaded: 990
Please Sign up or sign in to vote.
A fun Silverlight implementation of the game Sokoban. Contrasting Silverlight 1.1 and WPF, while showcasing some new features of C# 3.0, Expression Design, Expression Blend, and Visual Studio 2008.
25 Dec 2007   Updated: 27 Oct 2008   Rating: 4.87/5    Votes: 138   Popularity: 10.34
Licence: LGPL3    Views: 390,542     Bookmarked: 335   Downloaded: 1,054
Please Sign up or sign in to vote.
Legion is a grid computing framework that uses the Silverlight CLR to execute user definable tasks. It provides grid-wide thread-safe operations for web clients. Client performance metrics, such as bandwidth and processor speed, may be used to tailor jobs. Also includes a WPF Manager application.
22 Nov 2007   Updated: 16 Apr 2009   Rating: 4.84/5    Votes: 55   Popularity: 8.23
Licence: CPOL    Views: 262,729     Bookmarked: 112   Downloaded: 3,090
Please Sign up or sign in to vote.
A customizable log provider system that allows you to harness your existing logging system to log client side messages to your server. Includes a Silverlight interface and Log Viewer.
21 Oct 2007   Updated: 29 Dec 2007   Rating: 4.86/5    Votes: 19   Popularity: 5.98
Licence: BSD    Views: 80,696     Bookmarked: 59   Downloaded: 348
Please Sign up or sign in to vote.
Yet another list pager, but this one can use LinkButtons or simple Hyperlinks, provides scrolling within an ASP.NET AJAX UpdatePanel, and behaves similarly to the paging found on Amazon.com.
HTML
27 Aug 2017   Updated: 27 Aug 2017   Rating: 5.00/5    Votes: 14   Popularity: 5.73
Licence: CPOL    Views: 10,581     Bookmarked: 12   Downloaded: 80
Please Sign up or sign in to vote.
Use, and learn how to build, a Markdown Monster add-in that outputs HTML compatible with CodeProject's article submission wizard.

Average blogs rating: 4.75

Desktop Programming
Universal Windows Platform
1 Oct 2015   Updated: 1 Oct 2015   Rating: 5.00/5    Votes: 4   Popularity: 3.01
Licence: BSD    Views: 15,551     Bookmarked: 5   Downloaded: 0
Please Sign up or sign in to vote.
IntroductionWith UWP and WinRT, Microsoft introduced a new means for localizability, which differs significantly from the method employed in Silverlight and .NET desktop apps.
28 Aug 2015   Updated: 28 Aug 2015   Rating: 4.00/5    Votes: 1   Popularity: 0.00
Licence: BSD    Views: 7,972     Bookmarked: 0   Downloaded: 0
Please Sign up or sign in to vote.
When submitting a UWP or WinRT app to the Windows Store, you must increase the Version number of the package or the submission will fail. It can be a chore to manually update the version number.
WPF
1 Aug 2010   Updated: 1 Aug 2010   Rating: 3.68/5    Votes: 5   Popularity: 2.58
Licence: LGPL3    Views: 19,130     Bookmarked: 11   Downloaded: 0
Please Sign up or sign in to vote.
How to enforce single instance WPF applications
7 Nov 2009   Updated: 7 Nov 2009   Rating: 4.33/5    Votes: 2   Popularity: 1.30
Licence: LGPL3    Views: 10,920     Bookmarked: 2   Downloaded: 0
Please Sign up or sign in to vote.
Prompted by a recent comment on the T4 Metadata Generation template article, which I released some weeks ago, I have implemented a new mechanism for concatenating property paths. This allows compile time validation of properties that exist on composite or nested members.
17 Jul 2012   Updated: 17 Jul 2012   Rating: 5.00/5    Votes: 8   Popularity: 4.52
Licence: BSD    Views: 17,142     Bookmarked: 11   Downloaded: 0
Please Sign up or sign in to vote.
Implementing field level change notification in WPF, and how a Lambda Expression can be used to specify a composite property that raises change notifications automatically whenever an associated property changes.
XAML
25 Nov 2009   Updated: 25 Nov 2009   Rating: 5.00/5    Votes: 2   Popularity: 1.51
Licence: LGPL3    Views: 11,940     Bookmarked: 9   Downloaded: 0
Please Sign up or sign in to vote.
How to use T4 to generate Pack URIs for XAML files
Mobile Apps
Android
15 Apr 2013   Updated: 15 Apr 2013   Rating: 5.00/5    Votes: 1   Popularity: 0.00
Licence: BSD    Views: 14,790     Bookmarked: 3   Downloaded: 0
Please Sign up or sign in to vote.
Generating localized resources in Mono for Android using T4.
Windows Phone 7
20 Jul 2011   Updated: 20 Jul 2011   Rating: 0.00/5    Votes: 0   Popularity: 0.00
Licence: LGPL3    Views: 16,151     Bookmarked: 2   Downloaded: 268
Please Sign up or sign in to vote.
The custom ProgressIndicatorProxy provides a simple way to harness the new ProgressIndicator from your XAML.
20 Jul 2011   Updated: 20 Jul 2011   Rating: 4.80/5    Votes: 4   Popularity: 2.89
Licence: LGPL3    Views: 35,300     Bookmarked: 8   Downloaded: 568
Please Sign up or sign in to vote.
Some really nice techniques for handling asynchronous network calls.
26 Aug 2011   Updated: 26 Aug 2011   Rating: 4.95/5    Votes: 5   Popularity: 3.46
Licence: LGPL3    Views: 23,230     Bookmarked: 4   Downloaded: 0
Please Sign up or sign in to vote.
The custom ProgressIndicatorProxy provides a simple way to harness the new ProgressIndicator from your XAML.
24 Jan 2011   Updated: 24 Jan 2011   Rating: 5.00/5    Votes: 3   Popularity: 2.39
Licence: LGPL3    Views: 17,272     Bookmarked: 8   Downloaded: 0
Please Sign up or sign in to vote.
How to load data when the user scrolls to the end of a list in Windows Phone 7
7 Apr 2012   Updated: 8 Apr 2012   Rating: 5.00/5    Votes: 2   Popularity: 1.51
Licence: BSD    Views: 14,610     Bookmarked: 1   Downloaded: 1
Please Sign up or sign in to vote.
How to use T4 to generate Windows Phone WMAppManifest files
Multimedia
GDI
3 Oct 2009   Updated: 3 Oct 2009   Rating: 4.50/5    Votes: 3   Popularity: 2.15
Licence: LGPL3    Views: 14,892     Bookmarked: 8   Downloaded: 0
Please Sign up or sign in to vote.
Banishing String Literals from XAML Resource References
MVVM
10 Jan 2010   Updated: 10 Jan 2010   Rating: 5.00/5    Votes: 3   Popularity: 2.39
Licence: LGPL3    Views: 23,980     Bookmarked: 7   Downloaded: 0
Please Sign up or sign in to vote.
In this post, I would like to briefly discuss the System.Windows.Threading.Dispatcher class, and the significant differences between its Silverlight and Desktop CLR implementations.
Programming Languages
C#
14 Aug 2010   Updated: 26 Nov 2012   Rating: 5.00/5    Votes: 3   Popularity: 2.39
Licence: LGPL3    Views: 30,790     Bookmarked: 8   Downloaded: 0
Please Sign up or sign in to vote.
The ReaderWriterLockSlim class is used to protect a resource that is read by multiple threads and written to by one thread at a time.
5 Feb 2010   Updated: 5 Feb 2010   Rating: 4.78/5    Votes: 2   Popularity: 1.44
Licence: LGPL3    Views: 25,230     Bookmarked: 5   Downloaded: 0
Please Sign up or sign in to vote.
ViewModel Active awareness in a Prism based application
Javascript
19 Oct 2009   Updated: 19 Oct 2009   Rating: 4.90/5    Votes: 10   Popularity: 4.90
Licence: LGPL3    Views: 41,271     Bookmarked: 28   Downloaded: 0
Please Sign up or sign in to vote.
There are two things I wanted to look at. Firstly, I wanted to allow a web service to be called after the Silverlight application’s Exit event is raised. Secondly, I wanted to provide the Silverlight application with the opportunity to cancel, or at least interrupt the close window process.

Average tips rating: 4.60

Desktop Programming
WPF
19 Feb 2010   Updated: 19 Feb 2010   Rating: 4.33/5    Votes: 3   Popularity: 2.07
Licence: CPOL    Views: 9,520     Bookmarked: 2   Downloaded: 0
Please Sign up or sign in to vote.
When using the Calcium SDK[^]to replace the shell implementation entirely with your own implementation, use:void Application_Startup(object sender, StartupEventArgs e){ var container = new UnityContainer(); ServiceLocatorSingleton.Instance.InitializeServiceLocator(container); ...
23 Feb 2010   Updated: 27 Feb 2010   Rating: 4.83/5    Votes: 10   Popularity: 4.36
Licence: CPOL    Views: 28,131     Bookmarked: 15   Downloaded: 0
Please Sign up or sign in to vote.
In a WPF application, the first window opened is deemed to be the main window. In order to prevent an application from closing when an initial dialog is closed, use the Application.Current.ShutdownMode property as demonstrated in the following example:protected override void...
27 Feb 2010   Updated: 24 Mar 2010   Rating: 4.81/5    Votes: 14   Popularity: 5.36
Licence: CPOL    Views: 57,866     Bookmarked: 7   Downloaded: 0
Please Sign up or sign in to vote.
In order to detect whether your application is executing as a result of being in a designer use the GetIsInDesignMode method of DesignerProperties as the following demonstrate.C#bool designTime = System.ComponentModel.DesignerProperties.GetIsInDesignMode( new...
General Programming
Regular Expressions
23 Nov 2009   Updated: 23 Nov 2009   Rating: 5.00/5    Votes: 12   Popularity: 5.40
Licence: CPOL    Views: 26,204     Bookmarked: 7   Downloaded: 0
Please Sign up or sign in to vote.
A Visual Studio regex to remove someone's overzealous use of regions in VS. Find and replace: (^.*\#region.*$)|(^.*\#endregion.*$) Remember to enable regular expressions in the Visual Studio find and replace dialog.
Mobile Apps
Windows Phone 7
24 Oct 2010   Updated: 24 Oct 2010   Rating: 4.25/5    Votes: 3   Popularity: 2.03
Licence: CPOL    Views: 21,511     Bookmarked: 1   Downloaded: 0
Please Sign up or sign in to vote.
Stop trailling nulls from preventing deserialization.
Silverlight
27 Feb 2010   Updated: 27 Feb 2010   Rating: 5.00/5    Votes: 5   Popularity: 3.49
Licence: CPOL    Views: 17,950     Bookmarked: 2   Downloaded: 0
Please Sign up or sign in to vote.
Ordinarily the Application.Current.RootVisual.Dispatcher property is used to retrieve the System.Windows.Threading.Dispatcher for an application. Of course this won't work if performed before the RootVisual has been assigned. To get the Dispatcher for an application before the RootVisual has...
27 Feb 2010   Updated: 27 Feb 2010   Rating: 4.00/5    Votes: 5   Popularity: 2.80
Licence: CPOL    Views: 24,611     Bookmarked: 2   Downloaded: 0
Please Sign up or sign in to vote.
In order to detect whether your application is executing in a designer you can either use the GetIsInDesignMode method of DesignerProperties,or the Dependency Property metadata directly like so:C#:bool designTime = (bool)DesignerProperties.IsInDesignModeProperty.GetMetadata( ...

Average reference rating:

No reference articles have been posted.

Average project rating:

No projects have been posted.
Daniel Vaughan
Engineer Microsoft
United States United States
Daniel Vaughan is a Senior Software Engineer at Microsoft.

Previously Daniel was a nine-time Microsoft MVP and co-founder of Outcoder, a Swiss software and consulting company.

Daniel is the author of Windows Phone 8 Unleashed and Windows Phone 7.5 Unleashed, both published by SAMS.

Daniel is the developer behind several acclaimed mobile apps including Surfy Browser for Android and Windows Phone. Daniel is the creator of a number of popular open-source projects, most notably Codon.

Would you like Daniel to bring value to your organisation? Please contact

Blog | Twitter


Xamarin Experts
Windows 10 Experts