Free cookie consent management tool by TermsFeed Policy Generator

source: branches/HeuristicLab.Problems.GrammaticalOptimization/SharpVectorRuntime/SvgFontUriExtension.cs @ 13945

Last change on this file since 13945 was 12762, checked in by aballeit, 9 years ago

#2283 GUI updates, Tree-chart, MCTS Version 2 (prune leaves)

File size: 602 bytes
Line 
1using System;
2using System.Text;
3using System.Windows;
4using System.Windows.Media;
5using System.Windows.Markup;
6using System.Collections.Generic;
7
8namespace SharpVectors.Runtime
9{
10    public sealed class SvgFontUriExtension : MarkupExtension
11    {
12        private string _inputUri;
13
14        public SvgFontUriExtension(string inputUri)
15        {
16            _inputUri = Environment.ExpandEnvironmentVariables(inputUri);
17        }
18
19        public override object ProvideValue(IServiceProvider serviceProvider)
20        {
21            return new Uri(_inputUri);
22        }
23    }
24}
Note: See TracBrowser for help on using the repository browser.