diff --git a/BeWo/View/ChatEmojisView.xaml b/BeWo/View/ChatEmojisView.xaml index 01c572f1c..944e7360a 100644 --- a/BeWo/View/ChatEmojisView.xaml +++ b/BeWo/View/ChatEmojisView.xaml @@ -9,8 +9,6 @@ BorderThickness="2" BorderBrush="Black" > - - @@ -185,8 +183,6 @@ - - diff --git a/BeWo/View/ChatEmojisView.xaml.cs b/BeWo/View/ChatEmojisView.xaml.cs index 1de2ebe66..a960cea43 100644 --- a/BeWo/View/ChatEmojisView.xaml.cs +++ b/BeWo/View/ChatEmojisView.xaml.cs @@ -587,21 +587,4 @@ namespace BeWo.View public string EmojiCode { get; set; } } - - - public class DpiDecorator : Decorator - { - public DpiDecorator() - { - this.Loaded += (s, e) => - { - Matrix m = PresentationSource.FromVisual(this).CompositionTarget.TransformToDevice; - ScaleTransform dpiTransform = new ScaleTransform(1 / m.M11, 1 / m.M22); - if (dpiTransform.CanFreeze) - dpiTransform.Freeze(); - this.LayoutTransform = dpiTransform; - }; - } - } - }