PageRenderTime 41ms CodeModel.GetById 16ms RepoModel.GetById 0ms app.codeStats 0ms

/Main/src/Xbap/DynamicDataDisplay.Xbap.Samples/Internals/ResourceExtensions.cs

#
C# | 52 lines | 0 code | 6 blank | 46 comment | 0 complexity | 9d8c001809af96b63d202c80d673c9ec MD5 | raw file
Possible License(s): CC-BY-SA-3.0
  1. //using System;
  2. //using System.Collections.Generic;
  3. //using System.Linq;
  4. //using System.Text;
  5. //using System.Windows.Markup;
  6. //namespace Microsoft.Research.DynamicDataDisplay.Samples.Internals
  7. //{
  8. // /// <summary>
  9. // /// Represents a markup extension, which allows to get an access to application resource files.
  10. // /// </summary>
  11. // [MarkupExtensionReturnType(typeof(string))]
  12. // public class ResourceExtension : MarkupExtension
  13. // {
  14. // /// <summary>
  15. // /// Initializes a new instance of the <see cref="ResourceExtension"/> class.
  16. // /// </summary>
  17. // public ResourceExtension() { }
  18. // private string resourceKey;
  19. // [ConstructorArgument("resourceKey")]
  20. // public string ResourceKey
  21. // {
  22. // get { return resourceKey; }
  23. // set
  24. // {
  25. // if (resourceKey == null)
  26. // throw new ArgumentNullException("resourceKey");
  27. // resourceKey = value;
  28. // }
  29. // }
  30. // /// <summary>
  31. // /// Initializes a new instance of the <see cref="ResourceExtension"/> class.
  32. // /// </summary>
  33. // /// <param name="resourceKey">The resource key.</param>
  34. // public ResourceExtension(object resourceKey)
  35. // {
  36. // string resourceKeyString = resourceKey as string;
  37. // if (resourceKeyString == null)
  38. // throw new ArgumentNullException("resourceKey");
  39. // this.resourceKey = resourceKeyString;
  40. // }
  41. // public override object ProvideValue(IServiceProvider serviceProvider)
  42. // {
  43. // return Strings.UIResources.ResourceManager.GetString(resourceKey);
  44. // }
  45. // }
  46. //}