Free cookie consent management tool by TermsFeed Policy Generator

source: branches/HeuristicLab.Problems.GrammaticalOptimization/DynamicDataDisplay/Common/Auxiliary/MarkupExtensions/XbapConditionalExpression.cs @ 13862

Last change on this file since 13862 was 12503, checked in by aballeit, 10 years ago

#2283 added GUI and charts; fixed MCTS

File size: 847 bytes
Line 
1using System;
2using System.Collections.Generic;
3using System.Linq;
4using System.Text;
5using System.Windows.Markup;
6using System.Windows;
7using System.ComponentModel;
8
9namespace Microsoft.Research.DynamicDataDisplay.MarkupExtensions
10{
11  [EditorBrowsable(EditorBrowsableState.Never)]
12  public class XbapConditionalExpression : MarkupExtension
13  {
14    public XbapConditionalExpression() { }
15
16    public XbapConditionalExpression(object value)
17    {
18      this.Value = value;
19    }
20
21    [ConstructorArgument("value")]
22    public object Value { get; set; }
23
24    public override object ProvideValue(IServiceProvider serviceProvider)
25    {
26#if RELEASEXBAP
27      return null;
28#else
29      return ((ResourceDictionary)Application.LoadComponent(new Uri("/DynamicDataDisplay;component/Themes/Generic.xaml", UriKind.Relative)))[Value];
30#endif
31    }
32  }
33}
Note: See TracBrowser for help on using the repository browser.