This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private void DNDEnter(object sender, DragEventArgs e) | |
{ | |
if (!e.Data.GetDataPresent(DataFormats.FileDrop) || | |
sender == e.Source) | |
{ | |
e.Effects = DragDropEffects.None; | |
} | |
} | |
private void DNDFeedback(object sender, GiveFeedbackEventArgs e) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private void MouseWheelScroll(object sender, MouseWheelEventArgs e) | |
{ | |
if (Keyboard.Modifiers != ModifierKeys.Control) | |
return; | |
var delta = (e.Delta > 0) ? 2 : -2; | |
var change = VM.MainFontSize + delta; | |
if (change < 8) | |
change = 8; | |
VM.MainFontSize = change; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Window.Resources> | |
<BooleanToVisibilityConverter x:Key="BooleanToVisibility" /> <!-- System.Windows.Controls. --> | |
</Windown.Resources> | |
<Grid> | |
<Grid.RowDefinitions> | |
<RowDefinition Height="auto" /> | |
<RowDefinition Height="200*" /> | |
<RowDefinition Height="auto" /> | |
</Grid.RowDefinitions> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class MRU | |
{ | |
public string Name { get; set; } | |
public string Address { get; set; } | |
public string Data { get; set; } | |
public bool IsValid => !string.IsNullOrWhiteSpace(Name); | |
public bool IsFile => !string.IsNullOrWhiteSpace(Address); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8" ?> | |
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet"> | |
<CodeSnippet Format="1.0.0"> | |
<Header> | |
<Title>Generic FK Create/Drop</Title> | |
<Shortcut>FKMSTS</Shortcut> | |
<Description>Code snippet for Foreign Key Creation and Dropping</Description> | |
<Author>William Wegerson</Author> | |
<SnippetTypes> | |
<SnippetType>Expansion</SnippetType> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// This is a repistory of many differen extensions I use throughout multiple projects. | |
/// A location here for ultimate move to other named extensions. | |
public static class HTTPExtensions | |
{ | |
/// <summary> | |
/// Allow one to build a URL from its parts, similar to Path.Combine. | |
/// </summary> | |
/// <remarks>HMTL Extensions</Remarks> | |
/// <param name="baseUrl">Initial bitof the url</param> |
OlderNewer