Skip to content

Instantly share code, notes, and snippets.

View main.cs
using System.Collections.ObjectModel;
using System.ComponentModel;
using System.Linq;
using System.Windows;
using System.Windows.Controls;
namespace WpfApplication12
{
public partial class MainWindow : INotifyPropertyChanged
{
View MainVm.cs
using System.Collections.ObjectModel;
using System.ComponentModel;
using WpfApplication14.Annotations;
namespace WpfApplication14
{
public class MainVm : INotifyPropertyChanged
{
#region Singleton Setup
View MainWindow.cs
using System.Collections.ObjectModel;
using System.Windows;
namespace WpfApplication28
{
public partial class MainWindow : Window
{
public ObservableCollection<MyItem> MyItems { get; set; }
private void MyListBox_OnPreviewMouseUp(object sender, MouseButtonEventArgs e)
View Masking.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Input;
namespace Instacom___Windows_V3.Behaviors
View MainWindow.cs
using System.ComponentModel;
using System.Runtime.CompilerServices;
using System.Threading;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Input;
using WpfApplication30.Annotations;
namespace WpfApplication30
{
View MainWindow.cs
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
View yes.cs
public class Program
{
public enum MyEnum { Ready, Set, Go, Stop }
public static List<Enum> MyEnums = new List<Enum>();
public static List<CustomClass> MyClass = new List<CustomClass>();
static void Main(string[] args)
{
MyEnums.Add(MyEnum.Ready);
View select.xaml
<Window x:Class="WpfApplication33.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="MainWindow" Height="350" Width="525">
<FlowDocumentScrollViewer>
<FlowDocument>
<Table>
<TableRowGroup>
<TableRow>
<TableCell>
View Main.xaml
<Window x:Class="WpfApplication1.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="MainWindow" Height="350" Width="525">
<StackPanel Orientation="Vertical">
<Label Content="{Binding TestString}" />
<Button Content="Click Me" Click="Button_Click" />
</StackPanel>
</Window>
View gist:bc21947a26e4e1e1a692
using System;
using System.Reflection;
namespace ConsoleApplication1
{
class Program
{
private static void Main(string[] args)
{
var temp = new Test();
You can’t perform that action at this time.