Click here to Skip to main content

Daniel Vaughan - Professional Profile

46,599
Author
1,373
Authority
1,717
Debator
138
Editor
29
Enquirer
1,498
Organiser
5,627
Participant
31 Dec 2010: CodeProject MVP 2011
26 Apr 2010: Best overall article of March 2010
26 Apr 2010: Best C# article of March 2010
26 Apr 2010: Best VB.NET article of March 2010
31 Dec 2009: CodeProject MVP 2010
22 Dec 2009: Best overall article of November 2009
26 Oct 2009: Best VB.NET article of Sep 2009
22 Jun 2009: Best C# article of May 2009
20 Apr 2009: Best overall article of March 2009
11 Feb 2008: Best C# article of December 2007
31 Dec 2007: CodeProject MVP 2008
29 Nov 2007: Best ASP.NET article of November 2007
Daniel Vaughan is a Microsoft MVP and cofounder 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 Silverlight, WPF, WinRT, and Windows Phone.
 
Daniel is the author of Windows Phone 7.5 Unleashed, the first comprehensive, start-to-finish developer's guide to Microsoft's Windows Phone 7.5.
 
Daniel is also the creator of a number of open-source projects, including Calcium SDK, and Clog.
 
Would you like Daniel to bring value to your organisation? Please contact

Daniel's Blog | MVP profile | Follow on Twitter
 
Windows Phone Experts
Member since Sunday, January 19, 2003 (9 years, 4 months)

Below is the list of groups in which the member is participating


CodeProject Beta Testers



United States United States

Member



Collaborative Group
members


For more information on Reputation please see the FAQ.
 
You must Sign In to use this message board. (secure sign-in)
 
Search this forum  
  Refresh
GeneralNew blog Pin
Monday, January 7, 2008 7:47 PM
Please see my new blog for more recent posts.
 


Daniel Vaughan


LinkedIn Profile
ShelfSpy

GeneralRe: New blog Pinmemberpradeepsisodia21:07 23 May '12  
GeneralRe: New blog PinmemberDaniel Vaughan23:12 23 May '12  
 
GeneralLegion released Pin
Tuesday, December 25, 2007 8:07 PM
Well, after some initial problems with the Article Submission Wizard, I have published a new article about a project that I have named Legion. Overall I am pretty pleased with this one.
The article can be found here.
 



Daniel Vaughan


LinkedIn Profile
ShelfSpy

 
GeneralCreating a Class Diagram in a Silverlight 1.1 Project Pin
Tuesday, December 18, 2007 4:52 PM
While writing up a new article I noticed that there isn't a 'create new' Class Diagram option in the add new item dialog for a Silverlight project.
 
But, as I soon discovered, it's easy to create one. First create it in a regular Desktop CLR project e.g. a regular class library project. Then, simply drag it into the Silverlight project. Type may then be happily dragged from the Solution Explorer.
 
Now sharing types... no, we can't do that yet unfortunately.



Daniel Vaughan


LinkedIn Profile
ShelfSpy

GeneralRe: Creating a Class Diagram in a Silverlight 1.1 Project PinmvpDustin Metzgar9:44 26 Dec '07  
GeneralRe: Creating a Class Diagram in a Silverlight 1.1 Project PinmemberDaniel Vaughan14:28 26 Dec '07  
 
GeneralMore on the Silverlight 1.1 September refresh BCL HtmlTimer Pin
Monday, December 17, 2007 11:55 PM
I've noticed that the HtmlTimer is a funny ol' thing. A static instance, present in different browsers shares state. No wonder it's deprecated eh. I'm really looking forward to SL 2.
 
try
{
	timer.Interval = 1;
	timer.Tick += timer_Tick;
	timer.Start();
}
catch (AccessViolationException)
{
/* Some strangeness ensues when one 
 * opens another browser window. 
 * It appears that the underlying native 
 * timer code uses shared memory. */
}




Daniel Vaughan


LinkedIn Profile
ShelfSpy

 
GeneralDisable obsolete warning in Visual Studio with pragma Pin
Thursday, December 6, 2007 4:47 PM
I've been using an HtmlTimer for synchronizing threads in Silverlight.
That class is deprecated, and the warnings were filling up my VS Error List.
To suppress them, do this:
 
#pragma warning disable 618
		static readonly HtmlTimer timer = new HtmlTimer();
#pragma warning restore 618

 
GeneralClog WPF edition released Pin
Sunday, December 2, 2007 12:24 AM
I've just release Clog - WPF edition. here.
Only one left in the Clog series is Clog - Ajax edition.
 
Should be good. Smile | :)
 






Daniel Vaughan
LinkedIn Profile
ShelfSpy

GeneralRe: Clog WPF edition released PinmemberDaniel Vaughan14:28 3 Dec '07  
 
GeneralPowerShell script to clean solution for article submission Pin
Sunday, December 2, 2007 12:20 AM
Here's a little powershell script to clean a solution before you submit it to CodeProject.
 
get-childitem .\SilverlightEdition\Source -include *.dll -recurse | foreach ($_) {remove-item $_.fullname}
get-childitem .\SilverlightEdition\Source -include *.pdb -recurse | foreach ($_) {remove-item $_.fullname}
get-childitem .\SilverlightEdition\Source -include *.suo -force -recurse | foreach ($_) {remove-item -force $_.fullname}
get-childitem .\SilverlightEdition\Source -include *.user -recurse | foreach ($_) {remove-item $_.fullname}
get-childitem .\SilverlightEdition\Source -include *.resharper -recurse | foreach ($_) {remove-item $_.fullname}

 





Daniel Vaughan
LinkedIn Profile
ShelfSpy

 
GeneralVisual Studio jump to file and line Pin
Sunday, November 25, 2007 3:48 PM
For the demo app in the Clog WPF edition project that I'm working on, I've enhanced the CodeLocation class as you can see below.
By printing out the File location in the format (line number)
Visual Studio will happily jump there for you. I trace the CodeLocation instance, and Visual Studio recognizes the string format, and provides visual recognition of it in the output window. Not a big deal, but I thought it worth mentioning.
 
I'll probably include this in the WPF edition article.
 
/// <summary>
/// Specifies a place in the source code or class,
/// where an logging event occurred.
/// </summary>
[DataContract]
public class CodeLocation : ICodeLocation
{
	/// <summary>
	/// Gets or sets the name of the class.
	/// </summary>
	/// <value>The name of the class.</value>
	[DataMember]
	public string ClassName 
	{
		get;
		set;
	}
 
	/// <summary>
	/// Gets or sets the name of the method.
	/// </summary>
	/// <value>The name of the method.</value>
	[DataMember]
	public string MethodName
	{
		get;
		set;
	}
 
	/// <summary>
	/// Gets or sets the name of the file.
	/// </summary>
	/// <value>The name of the file.</value>
	[DataMember]
	public string FileName
	{
		get;
		set;
	}
 
	/// <summary>
	/// Gets or sets the line number of the location.
	/// </summary>
	/// <value>The line number.</value>
	[DataMember]
	public int LineNumber
	{
		get;
		set;
	}
 
	public override string ToString()
	{
		return string.Format("{0}({1}): {2}.{3}", 
			FileName, LineNumber, ClassName, MethodName);
	}
}

 





Daniel Vaughan
LinkedIn Profile
ShelfSpy

 
GeneralWPF, get URL of browser page Pin
Saturday, November 24, 2007 5:19 PM
Here's a tip.
 
To get the URL of the current page from within a WPF Browser application do this:
 
reference System.Deployment.dll
then
 
if (System.Deployment.Application.ApplicationDeployment.IsNetworkDeployed)
{
     Uri uri = System.Deployment.Application.ApplicationDeployment.CurrentDeployment.ActivationUri;
}

 





Daniel Vaughan
LinkedIn Profile
ShelfSpy

 
GeneralIP Address of Client in WCF Pin
Saturday, November 24, 2007 4:45 PM
I've been looking for a means to retrieve the IP Address of the client in a WCF service. Unfortunately, in .NET 3.5 Beta 2, it looks like it can't be done without using a custom channel. I did find a post though:
See here for info.
 
			
MessageProperties properties = OperationContext.Current.IncomingMessageProperties;
RemoteEndpointMessageProperty endpoint 
= (RemoteEndpointMessageProperty)properties[RemoteEndpointMessageProperty.Name];
IPAddress address = endpoint.Address; 
 
I will open this up later in Clog WPF edition.
 

 





Daniel Vaughan
LinkedIn Profile
ShelfSpy

 
NewsClog initial release Pin
Friday, November 23, 2007 3:24 PM
I’m extremely excited about the release of Clog – Silverlight edition today.
I’ve already started work on Clog for WPF and can’t wait to get it out there. I like Clog’s extensibility. I just hope I can drum up some community support for it. It would be great to get some more Log Strategies implemented.

 





Daniel Vaughan
LinkedIn Profile
ShelfSpy

GeneralRe: Clog initial release PinmemberDaniel Vaughan1:01 19 Dec '07  
RantRe: Clog initial release Pinmemberanakonda345:27 25 Feb '09  

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   


Advertise | Privacy | Mobile
Web04 | 2.5.120529.1 | Last Updated 3 Jun 2012
Copyright © CodeProject, 1999-2012
All Rights Reserved. Terms of Use
Layout: fixed | fluid