Пример #1
0
            public TopLevelView(TopLevelImpl tl)
            {
                _tl       = tl;
                _mouse    = AvaloniaLocator.Current.GetService <IMouseDevice>();
                _keyboard = AvaloniaLocator.Current.GetService <IKeyboardDevice>();

                RegisterForDraggedTypes(new string[] {
                    "public.data" // register for any kind of data.
                });
            }
Пример #2
0
 public TopLevelView(TopLevelImpl tl)
 {
     _tl       = tl;
     _mouse    = AvaloniaLocator.Current.GetService <IMouseDevice>();
     _keyboard = AvaloniaLocator.Current.GetService <IKeyboardDevice>();
 }