/MyMenu.cs

https://github.com/shader/QuickArch · C# · 27 lines · 24 code · 3 blank · 0 comment · 0 complexity · 5b706a256350079aa85bc776b06135a6 MD5 · raw file

  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Windows.Controls;
  6. using System.Windows;
  7. namespace QuickArch
  8. {
  9. class MyMenu : Menu
  10. {
  11. public MyMenu() : base()
  12. {
  13. }
  14. public MyMenu(Point position) : this()
  15. {
  16. this.setPosition(position);
  17. }
  18. public void setPosition(Point position)
  19. {
  20. Canvas.SetLeft(this, position.X);
  21. Canvas.SetTop(this, position.Y);
  22. }
  23. }
  24. }