Line | |
---|
1 | using System;
|
---|
2 | using System.Collections.Generic;
|
---|
3 | using System.Linq;
|
---|
4 | using System.Text;
|
---|
5 | using System.Windows.Markup;
|
---|
6 | using System.Windows;
|
---|
7 | using System.ComponentModel;
|
---|
8 |
|
---|
9 | namespace 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.