-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathExtendedUserControl.cs
More file actions
38 lines (33 loc) · 923 Bytes
/
ExtendedUserControl.cs
File metadata and controls
38 lines (33 loc) · 923 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
namespace Menees.Windows.Presentation
{
#region Using Directives
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Media;
#endregion
/// <summary>
/// The base class for Menees WPF UserControls.
/// </summary>
public partial class ExtendedUserControl : UserControl
{
#region Constructors
/// <summary>
/// Creates a new instance.
/// </summary>
public ExtendedUserControl()
{
// Note: Xaml classes can't derive from Xaml classes, so we have to do this in code.
// http://support.microsoft.com/kb/957231
//
// Make the text look MUCH better on screen.
// http://blogs.msdn.com/b/text/archive/2009/08/24/wpf-4-0-text-stack-improvements.aspx
TextOptions.SetTextFormattingMode(this, TextFormattingMode.Display);
}
#endregion
}
}