<UserControl x:Class="SPCode.UI.Components.HotkeyEditorControl"
             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"
             x:Name="UserControl"
             mc:Ignorable="d" 
             Height="60" 
             Width="250">

  <UserControl.Resources>
    <ResourceDictionary>
      <ResourceDictionary.MergedDictionaries>
        <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Controls.xaml" />
        <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Fonts.xaml" />
        <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Colors.xaml" />
        <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Accents/BaseDark.xaml" />
        <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Accents/Red.xaml" />
      </ResourceDictionary.MergedDictionaries>
    </ResourceDictionary>
  </UserControl.Resources>
  <TextBox x:Name="HotkeyTextBox"
           HorizontalContentAlignment="Center"
           VerticalContentAlignment="Center"
           IsReadOnly="True"
           IsReadOnlyCaretVisible="False"
           IsUndoEnabled="False"
           PreviewKeyDown="HotkeyTextBox_PreviewKeyDown"
           Text="{Binding Hotkey, ElementName=UserControl, Mode=OneWay, TargetNullValue=None}" BorderBrush="#FF444444"/>
</UserControl>
  
