Set a default value for the Foreground instead one from the constructor in order to make the control work in 1809.

This commit is contained in:
Atanas Popatanasov 2018-10-16 18:10:58 +03:00
Родитель fbe72229dc
Коммит 3b84ad6909
2 изменённых файлов: 4 добавлений и 5 удалений

Просмотреть файл

@ -1,4 +1,5 @@
using Windows.UI.Text;
using Windows.UI;
using Windows.UI.Text;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Data;
using Windows.UI.Xaml.Media;
@ -33,7 +34,7 @@ namespace Telerik.UI.Xaml.Controls.Input
/// Identifies the <see cref="Foreground"/> dependency property.
/// </summary>
public static readonly DependencyProperty ForegroundProperty =
DependencyProperty.Register(nameof(Foreground), typeof(Brush), typeof(HighlightStyle), null);
DependencyProperty.Register(nameof(Foreground), typeof(Brush), typeof(HighlightStyle), new PropertyMetadata(new SolidColorBrush(Color.FromArgb(0xFF, 0x26, 0xA0, 0xDA))));
/// <summary>
/// Identifies the <see cref="FontFamily"/> dependency property.

Просмотреть файл

@ -6,7 +6,6 @@ using Telerik.UI.Automation.Peers;
using Telerik.UI.Xaml.Controls.Input.AutoCompleteBox;
using Windows.Foundation;
using Windows.System;
using Windows.UI;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Automation;
using Windows.UI.Xaml.Automation.Peers;
@ -14,7 +13,6 @@ using Windows.UI.Xaml.Controls;
using Windows.UI.Xaml.Controls.Primitives;
using Windows.UI.Xaml.Data;
using Windows.UI.Xaml.Input;
using Windows.UI.Xaml.Media;
namespace Telerik.UI.Xaml.Controls.Input
{
@ -119,7 +117,7 @@ namespace Telerik.UI.Xaml.Controls.Input
/// Identifies the RadAutoCompleteBox.TextMatchHighlightStyle attached property.
/// </summary>
public static readonly DependencyProperty TextMatchHighlightStyleProperty =
DependencyProperty.RegisterAttached("TextMatchHighlightStyle", typeof(HighlightStyle), typeof(RadAutoCompleteBox), new PropertyMetadata(new HighlightStyle() { Foreground = new SolidColorBrush(Color.FromArgb(0xFF, 0x26, 0xA0, 0xDA)) }));
DependencyProperty.RegisterAttached("TextMatchHighlightStyle", typeof(HighlightStyle), typeof(RadAutoCompleteBox), new PropertyMetadata(new HighlightStyle()));
/// <summary>
/// Identifies the RadAutoCompleteBox.IsTextMatchHighlightEnabled attached property.