/MyMenu.cs
C# | 27 lines | 24 code | 3 blank | 0 comment | 0 complexity | 5b706a256350079aa85bc776b06135a6 MD5 | raw file
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Windows.Controls;
- using System.Windows;
-
-
- namespace QuickArch
- {
- class MyMenu : Menu
- {
-
- public MyMenu() : base()
- {
- }
- public MyMenu(Point position) : this()
- {
- this.setPosition(position);
- }
- public void setPosition(Point position)
- {
- Canvas.SetLeft(this, position.X);
- Canvas.SetTop(this, position.Y);
- }
- }
- }