コード例 #1
0
        public ContextMenu(BladeManager bladeManager, Button target, params Item[] items)
        {
            _items        = items;
            _bladeManager = bladeManager;
            _target       = target;

            target.Click += (_, __) =>
            {
                Show();
            };

            this.VisualTree.Add(target);
        }
コード例 #2
0
 public AlertBuilder(BladeManager manager, object body = null, string title = null)
 {
     _manager = manager;
     _body    = body;
     _title   = title;
 }