Files
dotnet/UnitTests/Extensions/Helpers/ObjectWithNullableBoolProperty.cs
T
Nikola Metulev 2f1b010c0c updated header
2018-05-23 15:12:18 -07:00

24 lines
919 B
C#

// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using Windows.UI.Xaml;
using Windows.UI.Xaml.Data;
namespace UnitTests.Extensions.Helpers
{
[Bindable]
public class ObjectWithNullableBoolProperty : DependencyObject
{
public bool? NullableBool
{
get { return (bool?)GetValue(NullableBoolProperty); }
set { SetValue(NullableBoolProperty, value); }
}
// Using a DependencyProperty as the backing store for NullableBool. This enables animation, styling, binding, etc...
public static readonly DependencyProperty NullableBoolProperty =
DependencyProperty.Register(nameof(NullableBool), typeof(bool?), typeof(ObjectWithNullableBoolProperty), new PropertyMetadata(null));
}
}