PageRenderTime 47ms CodeModel.GetById 21ms RepoModel.GetById 0ms app.codeStats 0ms

/Experiments.Wif/Microsoft.Samples.DPE.Identity.Controls/SecurityTokenVisualizerControlDesigner.cs

https://github.com/bihter/Visual-Studio-Experiments
C# | 41 lines | 22 code | 4 blank | 15 comment | 0 complexity | cac5f1a4f8db086f616ff7ea3737d6ba MD5 | raw file
Possible License(s): GPL-2.0
  1. // ----------------------------------------------------------------------------------
  2. // Microsoft Developer & Platform Evangelism
  3. //
  4. // Copyright (c) Microsoft Corporation. All rights reserved.
  5. //
  6. // THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND,
  7. // EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES
  8. // OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
  9. // ----------------------------------------------------------------------------------
  10. // The example companies, organizations, products, domain names,
  11. // e-mail addresses, logos, people, places, and events depicted
  12. // herein are fictitious. No association with any real company,
  13. // organization, product, domain name, email address, logo, person,
  14. // places, or events is intended or should be inferred.
  15. // ----------------------------------------------------------------------------------
  16. namespace Microsoft.Samples.DPE.Identity.Controls
  17. {
  18. using System.Web.UI.Design;
  19. public class SecurityTokenVisualizerControlDesigner : ControlDesigner
  20. {
  21. public override bool AllowResize
  22. {
  23. get
  24. {
  25. return false;
  26. }
  27. }
  28. public override string GetDesignTimeHtml()
  29. {
  30. this.ViewControl = new System.Web.UI.WebControls.Image()
  31. {
  32. ImageUrl = this.ViewControl.Page.ClientScript.GetWebResourceUrl(typeof(SecurityTokenVisualizerControl), "Microsoft.Samples.DPE.Identity.Controls.Content.images.icon.png")
  33. };
  34. return base.GetDesignTimeHtml();
  35. }
  36. }
  37. }