PopupActivationMode.cs 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. // hardcodet.net NotifyIcon for WPF
  2. // Copyright (c) 2009 - 2013 Philipp Sumi
  3. // Contact and Information: http://www.hardcodet.net
  4. //
  5. // This library is free software; you can redistribute it and/or
  6. // modify it under the terms of the Code Project Open License (CPOL);
  7. // either version 1.0 of the License, or (at your option) any later
  8. // version.
  9. //
  10. // The above copyright notice and this permission notice shall be
  11. // included in all copies or substantial portions of the Software.
  12. //
  13. // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  14. // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
  15. // OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  16. // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
  17. // HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
  18. // WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  19. // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
  20. // OTHER DEALINGS IN THE SOFTWARE.
  21. //
  22. // THIS COPYRIGHT NOTICE MAY NOT BE REMOVED FROM THIS FILE
  23. namespace Hardcodet.Wpf.TaskbarNotification
  24. {
  25. /// <summary>
  26. /// Defines flags that define when a popup
  27. /// is being displyed.
  28. /// </summary>
  29. public enum PopupActivationMode
  30. {
  31. /// <summary>
  32. /// The item is displayed if the user clicks the
  33. /// tray icon with the left mouse button.
  34. /// </summary>
  35. LeftClick,
  36. /// <summary>
  37. /// The item is displayed if the user clicks the
  38. /// tray icon with the right mouse button.
  39. /// </summary>
  40. RightClick,
  41. /// <summary>
  42. /// The item is displayed if the user double-clicks the
  43. /// tray icon.
  44. /// </summary>
  45. DoubleClick,
  46. /// <summary>
  47. /// The item is displayed if the user clicks the
  48. /// tray icon with the left or the right mouse button.
  49. /// </summary>
  50. LeftOrRightClick,
  51. /// <summary>
  52. /// The item is displayed if the user clicks the
  53. /// tray icon with the left mouse button or if a
  54. /// double-click is being performed.
  55. /// </summary>
  56. LeftOrDoubleClick,
  57. /// <summary>
  58. /// The item is displayed if the user clicks the
  59. /// tray icon with the middle mouse button.
  60. /// </summary>
  61. MiddleClick,
  62. /// <summary>
  63. /// The item is displayed whenever a click occurs.
  64. /// </summary>
  65. All
  66. }
  67. }