Skip to content

Instantly share code, notes, and snippets.

View SlidingImage.xaml.cs
using System;
using Windows.Foundation;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
using Windows.UI.Xaml.Media;
using Windows.UI.Xaml.Media.Animation;
namespace KenBurns
{
public sealed partial class SlidingImage2 : UserControl
View SlidingImage.xaml
<UserControl
x:Name="Root"
x:Class="KenBurns.SlidingImage2"
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"
mc:Ignorable="d"
d:DesignHeight="300"
d:DesignWidth="400">
View Manifest.xml
<Capabilities>
<!-- ... -->
</Capabilities>
<Tasks>
<!-- ... -->
</Tasks>
<Tokens>
<!-- ... -->
</Tokens>
<Extensions>
View AdaptiveImageSource.cs
namespace CustomControls
{
public class AdaptiveImageSource
{
public AdaptiveImageSource(string hiResSource, string lowResSource)
{
this.HiResSource = hiResSource;
this.LowResSource = lowResSource;
}
View Timers.cs
var dataTarget = DataTarget.LoadCrashDump(path);
var runtime = dataTarget.ClrVersions[0].CreateRuntime(Path.Combine(folder, "mscordacwks.dll"));
var heap = runtime.GetHeap();
ClrInstanceField field = null;
var targets = new List<string>();
View FeedbackViewModel.cs
[Export(typeof(IDbgRibbonTabGroupExtension))]
[RibbonTabGroupExtensionMetadata("HomeRibbonTab", "Help", 0)]
public class FeedbackViewModel : IDbgRibbonTabGroupExtension
View HistoryButton.xaml
<fluent:Button x:Class="WinDbgExt.History.HistoryButton"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:fluent="urn:fluent-ribbon"
mc:Ignorable="d"
Header="History"
LargeIcon="pack://application:,,,/WinDbgExt.History;component/Time-Window-256.png"
Command="{Binding Path=ShowCommand}">
View HistoryViewModel.cs
using System.Collections.Generic;
using System.ComponentModel.Composition;
using System.Windows;
using DbgX.Interfaces;
using DbgX.Util;
namespace WinDbgExt.History
{
[RibbonTabGroupExtensionMetadata("ViewRibbonTab", "Windows", 5), Export(typeof(IDbgRibbonTabGroupExtension))]
public class HistoryViewModel : IDbgRibbonTabGroupExtension
View HistoryViewModel.cs
[Import]
private IDbgToolWindowManager _toolWindowManager;
View HistoryViewModel.cs
private void Show()
{
_toolWindowManager.OpenToolWindow("CommandHistoryWindow");
}