Skip to content

Instantly share code, notes, and snippets.

@chuckdee68
chuckdee68 / 0_reuse_code.js
Created June 14, 2014 02:44
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@chuckdee68
chuckdee68 / NotifyingObject.cs
Created June 13, 2014 20:19
NotifyingObject - Making Magic Strings not a necessity for INotifyPropertyChanged
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
namespace Supporting
{
/// <summary>
@chuckdee68
chuckdee68 / FocusBehavior.cs
Created June 13, 2014 20:09
FocusBehavior - Set the focus when a form first opens
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Input;
namespace Supporting
{
@chuckdee68
chuckdee68 / FocusExtension.cs
Created June 13, 2014 19:58
FocusExtension - Focusing Controls in View from ViewModel using MVVM principles
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Input;
namespace Supporting
{
@chuckdee68
chuckdee68 / clickdefaultbutton.cs
Last active August 29, 2015 14:02
Programmatically Click the Default Button in WPF
System.Windows.Input.AccessKeyManager.ProcessKey(null, "\x000D", false);