Beispiel #1
0
        public CommandInfo(string id, string name, string text, string icon, KeyGesture key, Type owner, string viewKey, CommandAnchor anchor)
        {
            Id      = id;
            Name    = name;
            Text    = text;
            Key     = key;
            Icon    = icon;
            ViewKey = viewKey;

            Command = new RoutedUICommand(text,
                                          name,
                                          owner,
                                          new InputGestureCollection(new InputGesture[] { key }));

            CommandBinding = null;

            Anchor = anchor;
        }
Beispiel #2
0
        public CommandInfo(string id, string name, string text, string icon, KeyGesture key, Type owner, string viewKey, CommandAnchor anchor)
        {
            Id = id;
            Name = name;
            Text = text;
            Key = key;
            Icon = icon;
            ViewKey = viewKey;

            Command = new RoutedUICommand(text,
                            name,
                            owner,
                            new InputGestureCollection(new InputGesture[] { key }));

            CommandBinding = null;

            Anchor = anchor;
        }
Beispiel #3
0
        protected override async Task InitializeAsync(CancellationToken CancellationToken, IProgress <ServiceProgressData> Progress)
        {
            await JoinableTaskFactory.SwitchToMainThreadAsync(CancellationToken);

            await CommandLengthSort.InitializeAsync(this);

            await CommandLengthSortDesc.InitializeAsync(this);

            await CommandAlphSort.InitializeAsync(this);

            await CommandAlphSortDesc.InitializeAsync(this);

            await CommandRandomSort.InitializeAsync(this);

            await CommandUserSort.InitializeAsync(this);

            await CommandAnchor.InitializeAsync(this);

            Instance = this;
        }