Click here to Skip to main content
13,506,729 members

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

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

RSS Feed

Average article rating: 4.88

Smart Client
General
Posted: 22 Mar 2009   Updated: 22 Mar 2009   Views: 137,050   Rating: 4.95/5    Votes: 126   Popularity: 10.39
Licence: The GNU Lesser General Public License (LGPLv3)      Bookmarked: 218   Downloaded: 1,549
Knowledge acquired by a neural network is used to predict the element to which a user may intend to navigate.
Tabs & Property Pages
Tabs and Property Pages
Posted: 29 Aug 2009   Updated: 29 Aug 2009   Views: 23,000   Rating: 5.00/5    Votes: 2   Popularity: 1.51
Licence: The GNU Lesser General Public License (LGPLv3)      Bookmarked: 12   Downloaded: 0
Property Change Notification using a Weak Referencing Strategy
ASP.NET
General
Posted: 26 Jan 2008   Updated: 25 Jan 2008   Views: 138,350   Rating: 4.91/5    Votes: 42   Popularity: 7.97
Licence: The GNU Lesser General Public License (LGPLv3)      Bookmarked: 89   Downloaded: 543
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.
Silverlight
General
Posted: 11 Nov 2007   Updated: 11 Nov 2007   Views: 110,970   Rating: 4.88/5    Votes: 60   Popularity: 8.68
Licence: Not specified      Bookmarked: 139   Downloaded: 937
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.
Posted: 25 Dec 2007   Updated: 27 Oct 2008   Views: 341,760   Rating: 4.96/5    Votes: 138   Popularity: 10.63
Licence: The GNU Lesser General Public License (LGPLv3)      Bookmarked: 337   Downloaded: 1,027
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.
Posted: 22 Nov 2007   Updated: 16 Apr 2009   Views: 231,830   Rating: 4.84/5    Votes: 55   Popularity: 8.42
Licence: The Code Project Open License (CPOL)      Bookmarked: 111   Downloaded: 3,051
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.
Posted: 1 May 2010   Updated: 1 May 2010   Views: 115,570   Rating: 4.93/5    Votes: 69   Popularity: 9.07
Licence: The BSD License      Bookmarked: 171   Downloaded: 783
Reduce threading code, and increase UI responsiveness with a new pattern extending MVVM.
HowTo
Posted: 16 Nov 2008   Updated: 16 Nov 2008   Views: 349,520   Rating: 4.95/5    Votes: 47   Popularity: 8.27
Licence: The GNU Lesser General Public License (LGPLv3)      Bookmarked: 82   Downloaded: 3,924
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.
User Controls
General
Posted: 21 Oct 2007   Updated: 29 Dec 2007   Views: 64,380   Rating: 4.86/5    Votes: 19   Popularity: 6.24
Licence: The BSD License      Bookmarked: 60   Downloaded: 327
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.
Mobile Development
General
Posted: 15 Sep 2014   Updated: 15 Sep 2014   Views: 46,440   Rating: 5.00/5    Votes: 28   Popularity: 7.24
Licence: The Code Project Open License (CPOL)      Bookmarked: 54   Downloaded: 0
Create best-in-breed cross-platform MVVM apps using Calcium for Xamarin.Forms.
Posted: 17 Sep 2014   Updated: 17 Sep 2014   Views: 27,810   Rating: 5.00/5    Votes: 10   Popularity: 5.00
Licence: The Code Project Open License (CPOL)      Bookmarked: 22   Downloaded: 0
Create a Xamarin Forms tabbed page or carousel page by binding to a collection of ViewModels; extending beyond the current capabilities of Xamarin Forms.
Posted: 2 Oct 2014   Updated: 2 Oct 2014   Views: 19,780   Rating: 4.74/5    Votes: 7   Popularity: 3.93
Licence: The Code Project Open License (CPOL)      Bookmarked: 15   Downloaded: 0
Leverage existing .resx files to localize Windows Phone, Android, and iOS apps in Xamarin.Forms.
Posted: 7 Oct 2014   Updated: 7 Oct 2014   Views: 58,600   Rating: 4.93/5    Votes: 19   Popularity: 6.31
Licence: The Code Project Open License (CPOL)      Bookmarked: 23   Downloaded: 0
Using Xamarin Forms platform specific rendering to create a cross-platform application bar.
Posted: 13 Nov 2014   Updated: 13 Nov 2014   Views: 52,650   Rating: 4.97/5    Votes: 17   Popularity: 6.12
Licence: The Code Project Open License (CPOL)      Bookmarked: 22   Downloaded: 0
Learn how to combine T4 and a custom markup extension to share and consume image files between projects.
Posted: 10 Jan 2016   Updated: 10 Jan 2016   Views: 21,930   Rating: 4.83/5    Votes: 19   Popularity: 6.23
Licence: The BSD License      Bookmarked: 11   Downloaded: 432
A powerful, yet light-weight, data-binding library for binding XML layout files in Xamarin.Android.
Posted: 12 Nov 2016   Updated: 12 Nov 2016   Views: 5,300   Rating: 5.00/5    Votes: 3   Popularity: 2.39
Licence: The Code Project Open License (CPOL)      Bookmarked: 2   Downloaded: 58
Using resource switching to support multiple deployment scenarios in Xamarin.Android projects.
Posted: 25 Nov 2016   Updated: 25 Nov 2016   Views: 22,080   Rating: 4.89/5    Votes: 19   Popularity: 6.23
Licence: The Code Project Open License (CPOL)      Bookmarked: 31   Downloaded: 769
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.
Posted: 4 Apr 2017   Updated: 4 Apr 2017   Views: 9,861   Rating: 4.85/5    Votes: 16   Popularity: 5.83
Licence: The Code Project Open License (CPOL)      Bookmarked: 9   Downloaded: 0
Codon is a zero-dependency cross-platform MVVM framework for creating UWP, WPF, and Xamarin based applications.
Posted: 4 Apr 2017   Updated: 4 Apr 2017   Views: 4,360   Rating: 4.60/5    Votes: 5   Popularity: 3.18
Licence: The Code Project Open License (CPOL)      Bookmarked: 1   Downloaded: 0
Storing and retrieving settings with the cross-platform Codon framework's settings service.
Posted: 4 Apr 2017   Updated: 4 Apr 2017   Views: 4,280   Rating: 4.50/5    Votes: 4   Popularity: 3.01
Licence: The Code Project Open License (CPOL)      Bookmarked: 1   Downloaded: 0
Navigating between pages using Codon's navigation service.
Posted: 4 Apr 2017   Updated: 4 Apr 2017   Views: 4,460   Rating: 4.56/5    Votes: 4   Popularity: 3.01
Licence: The Code Project Open License (CPOL)      Bookmarked: 1   Downloaded: 0
Using Codon's Messenger to pass messages between app components
Windows Phone 7/8
General
Posted: 24 Mar 2010   Updated: 23 Jul 2010   Views: 173,980   Rating: 4.98/5    Votes: 88   Popularity: 9.68
Licence: The Code Project Open License (CPOL)      Bookmarked: 186   Downloaded: 6,722
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.
C#
General
Posted: 17 Oct 2009   Updated: 17 Oct 2009   Views: 35,210   Rating: 4.86/5    Votes: 14   Popularity: 5.55
Licence: The Microsoft Public License (Ms-PL)      Bookmarked: 27   Downloaded: 278
How to use an MSBuild custom task to provide compile time verification of string type names in app.config files.
Posted: 27 Aug 2017   Updated: 27 Aug 2017   Views: 4,570   Rating: 5.00/5    Votes: 12   Popularity: 5.40
Licence: The Code Project Open License (CPOL)      Bookmarked: 11   Downloaded: 44
Use, and learn how to build, a Markdown Monster add-in that outputs HTML compatible with CodeProject's article submission wizard.
.NET Framework
General
Posted: 1 Apr 2018   Updated: 1 Apr 2018   Views: 2,760   Rating: 5.00/5    Votes: 3   Popularity: 2.39
Licence: The Code Project Open License (CPOL)      Bookmarked: 3   Downloaded: 26
Learn how to leverage the asynchronous ICommand implementation in Codon FX to support commands that kick-off long-running operations.
Universal Windows Platform and Windows Runtime
General
Posted: 13 Oct 2016   Updated: 13 Oct 2016   Views: 17,270   Rating: 4.95/5    Votes: 12   Popularity: 5.34
Licence: The BSD License      Bookmarked: 15   Downloaded: 231
A fun UWP implementation of the game Sokoban, demonstrating some new features of XAML and C# 6.0. Part 1
Posted: 18 Oct 2016   Updated: 18 Oct 2016   Views: 6,880   Rating: 5.00/5    Votes: 14   Popularity: 5.73
Licence: The Code Project Open License (CPOL)      Bookmarked: 7   Downloaded: 0
A fun UWP implementation of the game Sokoban, demonstrating some new features of XAML and C# 6.0. Part 2
Posted: 26 Oct 2016   Updated: 26 Oct 2016   Views: 4,200   Rating: 5.00/5    Votes: 7   Popularity: 4.23
Licence: The Code Project Open License (CPOL)      Bookmarked: 5   Downloaded: 0
A fun UWP implementation of the game Sokoban, demonstrating some new features of XAML and C# 6.0. Part 3
Posted: 22 Jan 2017   Updated: 22 Jan 2017   Views: 5,780   Rating: 5.00/5    Votes: 5   Popularity: 3.49
Licence: The Code Project Open License (CPOL)      Bookmarked: 2   Downloaded: 82
Implementing synchronous and asynchronous form validation for XAML based apps.
Posted: 24 Aug 2017   Updated: 24 Aug 2017   Views: 4,820   Rating: 5.00/5    Votes: 10   Popularity: 5.00
Licence: The Code Project Open License (CPOL)      Bookmarked: 10   Downloaded: 67
Using steganography to conceal text within a document or watermark a code file, using a whitespace encoder. Hide text in plain sight!
Windows Communication Foundation
General
Posted: 29 Aug 2009   Updated: 29 Aug 2009   Views: 20,490   Rating: 4.64/5    Votes: 5   Popularity: 3.22
Licence: The GNU Lesser General Public License (LGPLv3)      Bookmarked: 3   Downloaded: 0
Transparent WCF Channel Management with Unity
Windows Presentation Foundation
Applications
Posted: 31 May 2009   Updated: 1 Jun 2009   Views: 200,030   Rating: 4.93/5    Votes: 70   Popularity: 9.09
Licence: The BSD License      Bookmarked: 208   Downloaded: 0
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.
Posted: 21 Nov 2009   Updated: 21 Nov 2009   Views: 86,150   Rating: 4.96/5    Votes: 48   Popularity: 8.35
Licence: The BSD License      Bookmarked: 92   Downloaded: 0
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.
Posted: 5 Jul 2009   Updated: 23 Nov 2009   Views: 82,220   Rating: 5.00/5    Votes: 47   Popularity: 8.36
Licence: The BSD License      Bookmarked: 89   Downloaded: 0
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.
Data Binding
Posted: 1 Nov 2007   Updated: 16 Jun 2008   Views: 99,750   Rating: 4.88/5    Votes: 44   Popularity: 8.02
Licence: The BSD License      Bookmarked: 78   Downloaded: 3,162
A fun implementation of the game Sokoban, written to showcase some features of WPF, C# 3.0, Expression Design, and Visual Studio 2008.
General
Posted: 1 Dec 2007   Updated: 25 Dec 2008   Views: 124,550   Rating: 4.51/5    Votes: 68   Popularity: 8.74
Licence: The GNU Lesser General Public License (LGPLv3)      Bookmarked: 113   Downloaded: 894
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.
Posted: 24 Feb 2010   Updated: 24 Feb 2010   Views: 68,630   Rating: 4.98/5    Votes: 56   Popularity: 8.71
Licence: The GNU Lesser General Public License (LGPLv3)      Bookmarked: 113   Downloaded: 0
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.
Posted: 13 Mar 2010   Updated: 13 Mar 2010   Views: 57,570   Rating: 4.97/5    Votes: 42   Popularity: 8.07
Licence: The BSD License      Bookmarked: 54   Downloaded: 0
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.
Code Generation
General
Posted: 2 Sep 2009   Updated: 7 Nov 2009   Views: 113,740   Rating: 4.98/5    Votes: 45   Popularity: 8.23
Licence: The BSD License      Bookmarked: 150   Downloaded: 1,350
Generate project metadata with T4 and unburden yourself from string literals in XAML binding expressions and INotifyPropertyChanged event arguments.
Interviews
General
Posted: 28 Sep 2011   Updated: 28 Sep 2011   Views: 38,100   Rating: 4.90/5    Votes: 30   Popularity: 7.23
Licence: The Code Project Open License (CPOL)      Bookmarked: 13   Downloaded: 0
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.
Posted: 23 Aug 2013   Updated: 23 Aug 2013   Views: 13,320   Rating: 5.00/5    Votes: 7   Popularity: 4.23
Licence: The Code Project Open License (CPOL)      Bookmarked: 6   Downloaded: 0
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.
Uncategorised Technical Blogs
General
Posted: 29 Aug 2009   Updated: 29 Aug 2009   Views: 10,220   Rating: 4.64/5    Votes: 5   Popularity: 3.24
Licence: The GNU Lesser General Public License (LGPLv3)      Bookmarked: 2   Downloaded: 0
A location agnostic message service
Posted: 29 Aug 2009   Updated: 29 Aug 2009   Views: 13,100   Rating: 4.56/5    Votes: 3   Popularity: 2.17
Licence: The GNU Lesser General Public License (LGPLv3)      Bookmarked: 6   Downloaded: 0
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.

Average blogs rating: 4.75

Files and Folders
Configuration Files
Posted: 25 Nov 2009   Updated: 25 Nov 2009   Views: 10,440   Rating: 5.00/5    Votes: 2   Popularity: 1.51
Licence: The GNU Lesser General Public License (LGPLv3)      Bookmarked: 9   Downloaded: 0
How to use T4 to generate Pack URIs for XAML files
Applications & Tools
Applications
Posted: 1 Aug 2010   Updated: 1 Aug 2010   Views: 16,430   Rating: 3.68/5    Votes: 5   Popularity: 3.43
Licence: The GNU Lesser General Public License (LGPLv3)      Bookmarked: 11   Downloaded: 0
How to enforce single instance WPF applications
Silverlight
General
Posted: 10 Jan 2010   Updated: 10 Jan 2010   Views: 20,070   Rating: 5.00/5    Votes: 3   Popularity: 2.39
Licence: The GNU Lesser General Public License (LGPLv3)      Bookmarked: 7   Downloaded: 0
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.
Validation
Validation Controls
Posted: 7 Nov 2009   Updated: 7 Nov 2009   Views: 9,270   Rating: 4.33/5    Votes: 2   Popularity: 1.30
Licence: The GNU Lesser General Public License (LGPLv3)      Bookmarked: 2   Downloaded: 0
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.
Web Services
ATL Web Services
Posted: 19 Oct 2009   Updated: 19 Oct 2009   Views: 35,800   Rating: 4.90/5    Votes: 10   Popularity: 4.90
Licence: The GNU Lesser General Public License (LGPLv3)      Bookmarked: 28   Downloaded: 0
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.
Android
General
Posted: 15 Apr 2013   Updated: 15 Apr 2013   Views: 11,030   Rating: 5.00/5    Votes: 1   Popularity: 0.00
Licence: The BSD License      Bookmarked: 3   Downloaded: 0
Generating localized resources in Mono for Android using T4.
Windows Phone 7/8
Controls
Posted: 20 Jul 2011   Updated: 20 Jul 2011   Views: 13,940   Rating: 0.00/5    Votes:    Popularity: 0.00
Licence: The GNU Lesser General Public License (LGPLv3)      Bookmarked: 2   Downloaded: 268
The custom ProgressIndicatorProxy provides a simple way to harness the new ProgressIndicator from your XAML.
Posted: 20 Jul 2011   Updated: 20 Jul 2011   Views: 29,720   Rating: 4.80/5    Votes: 4   Popularity: 2.86
Licence: The GNU Lesser General Public License (LGPLv3)      Bookmarked: 8   Downloaded: 568
Some really nice techniques for handling asynchronous network calls.
Posted: 26 Aug 2011   Updated: 26 Aug 2011   Views: 20,690   Rating: 4.95/5    Votes: 5   Popularity: 3.46
Licence: The GNU Lesser General Public License (LGPLv3)      Bookmarked: 4   Downloaded: 0
The custom ProgressIndicatorProxy provides a simple way to harness the new ProgressIndicator from your XAML.
General
Posted: 24 Jan 2011   Updated: 24 Jan 2011   Views: 14,360   Rating: 5.00/5    Votes: 3   Popularity: 2.39
Licence: The GNU Lesser General Public License (LGPLv3)      Bookmarked: 8   Downloaded: 0
How to load data when the user scrolls to the end of a list in Windows Phone 7
Posted: 7 Apr 2012   Updated: 8 Apr 2012   Views: 12,080   Rating: 5.00/5    Votes: 2   Popularity: 1.51
Licence: The BSD License      Bookmarked: 1   Downloaded: 0
How to use T4 to generate Windows Phone WMAppManifest files
C#
General
Posted: 14 Aug 2010   Updated: 26 Nov 2012   Views: 24,500   Rating: 5.00/5    Votes: 3   Popularity: 2.39
Licence: The GNU Lesser General Public License (LGPLv3)      Bookmarked: 7   Downloaded: 0
The ReaderWriterLockSlim class is used to protect a resource that is read by multiple threads and written to by one thread at a time.
.NET Framework
General
Posted: 1 Oct 2015   Updated: 1 Oct 2015   Views: 10,290   Rating: 5.00/5    Votes: 4   Popularity: 3.01
Licence: The BSD License      Bookmarked: 5   Downloaded: 0
IntroductionWith UWP and WinRT, Microsoft introduced a new means for localizability, which differs significantly from the method employed in Silverlight and .NET desktop apps.
Universal Windows Platform and Windows Runtime
General
Posted: 28 Aug 2015   Updated: 28 Aug 2015   Views: 6,170   Rating: 4.00/5    Votes: 1   Popularity: 0.00
Licence: The BSD License      Bookmarked: 0   Downloaded: 0
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.
Windows Presentation Foundation
General
Posted: 17 Jul 2012   Updated: 17 Jul 2012   Views: 12,620   Rating: 5.00/5    Votes: 8   Popularity: 4.52
Licence: The BSD License      Bookmarked: 11   Downloaded: 0
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.
String handling
Text Search and Replace
Posted: 3 Oct 2009   Updated: 3 Oct 2009   Views: 13,230   Rating: 4.50/5    Votes: 3   Popularity: 2.15
Licence: The GNU Lesser General Public License (LGPLv3)      Bookmarked: 8   Downloaded: 0
Banishing String Literals from XAML Resource References
Uncategorised Technical Blogs
General
Posted: 5 Feb 2010   Updated: 5 Feb 2010   Views: 20,870   Rating: 4.78/5    Votes: 2   Popularity: 1.44
Licence: The GNU Lesser General Public License (LGPLv3)      Bookmarked: 5   Downloaded: 0
ViewModel Active awareness in a Prism based application

Average tips rating: 4.56

Silverlight
General
Posted: 27 Feb 2010   Updated: 27 Feb 2010   Views: 14,520   Rating: 5.00/5    Votes: 5   Popularity: 3.49
Licence: The Code Project Open License (CPOL)      Bookmarked: 2   Downloaded: 0
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...
Posted: 27 Feb 2010   Updated: 27 Feb 2010   Views: 19,240   Rating: 4.00/5    Votes: 5   Popularity: 3.22
Licence: The Code Project Open License (CPOL)      Bookmarked: 2   Downloaded: 0
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( ...
Windows Phone 7/8
General
Posted: 24 Oct 2010   Updated: 24 Oct 2010   Views: 16,520   Rating: 4.25/5    Votes: 3   Popularity: 2.03
Licence: The Code Project Open License (CPOL)      Bookmarked: 1   Downloaded: 0
Stop trailling nulls from preventing deserialization.
Libraries
General
Posted: 19 Feb 2010   Updated: 19 Feb 2010   Views: 7,480   Rating: 4.33/5    Votes: 3   Popularity: 1.43
Licence: The Code Project Open License (CPOL)      Bookmarked: 2   Downloaded: 0
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); ...
Windows Presentation Foundation
General
Posted: 23 Feb 2010   Updated: 27 Feb 2010   Views: 22,890   Rating: 4.54/5    Votes: 9   Popularity: 4.48
Licence: The Code Project Open License (CPOL)      Bookmarked: 15   Downloaded: 0
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...
Posted: 27 Feb 2010   Updated: 24 Mar 2010   Views: 43,370   Rating: 4.79/5    Votes: 14   Popularity: 5.47
Licence: The Code Project Open License (CPOL)      Bookmarked: 7   Downloaded: 0
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...
Programming Tips
General
Posted: 23 Nov 2009   Updated: 23 Nov 2009   Views: 19,220   Rating: 5.00/5    Votes: 12   Popularity: 5.40
Licence: The Code Project Open License (CPOL)      Bookmarked: 7   Downloaded: 0
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.
No reference articles have been posted.

Daniel Vaughan
President Outcoder
Switzerland Switzerland
Daniel Vaughan is a eight-time Microsoft MVP and co-founder of Outcoder, a Swiss software and consulting company dedicated to creating best-of-breed user experiences and leading-edge back-end solutions, using the Microsoft stack of technologies--in particular Xamarin, WPF, and the UWP.

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 | MVP profile | Twitter


Xamarin Experts
Windows 10 Experts


Advertise | Privacy |
Web02 | 2.8.180417.1 | Last Updated 23 Apr 2018
Copyright © CodeProject, 1999-2018
All Rights Reserved. Terms of Service
Layout: fixed | fluid