Paradox Game Engine  v1.0.0 beta06
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros Pages
DoubleExtension.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(double))]
10  {
11  public double Value { get; set; }
12 
13  public DoubleExtension(double 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)