This file contains hidden or 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
using System.Collections.Generic; | |
using System.Text.RegularExpressions; | |
namespace Ghostly.Utilities | |
{ | |
// Emoji list borrowed from https://github.com/lunet-io/markdig/blob/25959174d521c7f4458fa7b340d58a4ac136fa30/src/Markdig/Extensions/Emoji/EmojiParser.cs | |
public static class EmojiReplacer | |
{ | |
private static Regex _regex; | |
private static Dictionary<string, string> _lookup; |
This file contains hidden or 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 PackIconControl : ContentControl | |
{ | |
public PackIconControl() | |
{ | |
SizeChanged += OnSizeChanged; | |
} | |
public static readonly DependencyProperty PackIconKindProperty = | |
DependencyProperty.Register(nameof(PackIconKind), typeof(object), typeof(PackIconControl), | |
new PropertyMetadata(default(object), PackIconKindPropertyChangedCallback)); |
This file contains hidden or 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
https://dev.azure.com/mahapps/MahApps.Metro.IconPacks/_build/results?buildId=36 | |
##[section]Starting: NuGet restore | |
============================================================================== | |
Task : NuGet | |
Description : Restore, pack, or push NuGet packages, or run a NuGet command. Supports NuGet.org and authenticated feeds like Package Management and MyGet. Uses NuGet.exe and works with .NET Framework apps. For .NET Core and .NET Standard apps, use the .NET Core task. | |
Version : 2.147.6 | |
Author : Microsoft Corporation | |
Help : [More Information](https://go.microsoft.com/fwlink/?LinkID=613747) | |
============================================================================== |
This file contains hidden or 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
<Page | |
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
xmlns:dd="urn:gong-wpf-dragdrop"> | |
<Grid> | |
<ItemsControl x:Name="pnlBilder" | |
HorizontalAlignment="Center" | |
Width="300" Height="100" | |
dd:DragDrop.IsDragSource="True" | |
ScrollViewer.HorizontalScrollBarVisibility="Disabled" |
This file contains hidden or 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 x:Class="WpfApp1.MainWindow" | |
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | |
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | |
xmlns:local="clr-namespace:WpfApp1" | |
mc:Ignorable="d" | |
Title="MainWindow" Height="450" Width="800"> | |
<Grid> |
This file contains hidden or 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
using System.Windows; | |
using System.Windows.Input; | |
using System.Windows.Interactivity; | |
namespace ExtraBehaviors | |
{ | |
/// <summary> | |
/// The BubbleScrollEvent behavior can be used to prevent the mousewheel scrolling on a scrollable control. | |
/// The event will be bubble up to the parent control. | |
/// This behavior can be prevent with the left Shift key. |
This file contains hidden or 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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Windows; | |
using System.Windows.Controls; | |
using System.Windows.Media; | |
using System.Windows.Threading; | |
namespace ListBoxScrollSync | |
{ |
This file contains hidden or 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
/// <summary> | |
/// Identifies the <see cref="$propertyName$"/> dependency property. | |
/// </summary> | |
public static readonly $dependencyProperty$ $propertyName$Property | |
= $dependencyProperty$.Register(nameof($propertyName$), typeof($propertyType$), typeof($containingType$), new PropertyMetadata(default($propertyType$))); | |
/// <summary> | |
/// Get or sets the $propertyName$ property. | |
/// </summary> | |
public $propertyType$ $propertyName$ |
This file contains hidden or 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"?> | |
<configuration> | |
<startup> | |
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" /> | |
</startup> | |
<runtime> | |
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> | |
<dependentAssembly> | |
<assemblyIdentity name="SkiaSharp" publicKeyToken="0738eb9f132ed756" culture="neutral" /> |
This file contains hidden or 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
<controls:MetroWindow.Resources> | |
<ControlTemplate x:Key="WindowCommandsButtonTemplate" TargetType="{x:Type Button}"> | |
<Grid x:Name="RootGrid" Background="{TemplateBinding Background}"> | |
<controls:ContentControlEx x:Name="PART_ContentControlEx" | |
Padding="{TemplateBinding Padding}" | |
HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}" | |
VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}" | |
Content="{TemplateBinding Content}" | |
ContentCharacterCasing="{Binding RelativeSource={RelativeSource AncestorType={x:Type controls:WindowCommands}}, Path=(controls:ControlsHelper.ContentCharacterCasing)}" |