Paradox Game Engine  v1.0.0 beta06
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros Pages
BoolExtension.cs
Go to the documentation of this file.
1 // Copyright (c) 2014 Silicon Studio Corp. (http://siliconstudio.co.jp)
2 // This file is distributed under GPL v3. See LICENSE.md for details.
3 using System;
4 using System.Windows.Markup;
5 
6 namespace SiliconStudio.Presentation.MarkupExtensions
7 {
8  [MarkupExtensionReturnType(typeof(bool))]
10  {
11  public bool Value { get; set; }
12 
13  public BoolExtension(bool value)
14  {
15  Value = value;
16  }
17 
18  public override object ProvideValue(IServiceProvider serviceProvider)
19  {
20  return Value;
21  }
22  }
23 }
override object ProvideValue(IServiceProvider serviceProvider)