Skip to content

Commit 7ab454a

Browse files
committed
add a lot of stuff
1 parent 3f94d33 commit 7ab454a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+1074
-78
lines changed

hub/dev-environment/toc.yml

Lines changed: 91 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,8 +361,64 @@ items:
361361
items:
362362
- name: OnPropertyChanged
363363
href: ../powertoys/command-palette/microsoft-commandpalette-extensions-toolkit/baseobservable_onpropertychanged.md
364+
- name: Choice
365+
href: ../powertoys/command-palette/microsoft-commandpalette-extensions-toolkit/choice.md
366+
- name: ChoiceSetSetting
367+
items:
368+
- name: ChoiceSetSetting
369+
href: ../powertoys/command-palette/microsoft-commandpalette-extensions-toolkit/choicesetsetting.md
370+
- name: Constructors
371+
href: ../powertoys/command-palette/microsoft-commandpalette-extensions-toolkit/choicesetsetting_constructor.md
372+
- name: Methods
373+
items:
374+
- name: LoadFromJson(JsonObject)
375+
href: ../powertoys/command-palette/microsoft-commandpalette-extensions-toolkit/choicesetsetting_loadfromjson.md
376+
- name: ToDictionary
377+
href: ../powertoys/command-palette/microsoft-commandpalette-extensions-toolkit/choicesetsetting_todictionary.md
378+
- name: ToState
379+
href: ../powertoys/command-palette/microsoft-commandpalette-extensions-toolkit/choicesetsetting_tostate.md
380+
- name: Update(JsonObject)
381+
href: ../powertoys/command-palette/microsoft-commandpalette-extensions-toolkit/choicesetsetting_update.md
382+
- name: ClipboardHelper
383+
items:
384+
- name: ClipboardHelper
385+
href: ../powertoys/command-palette/microsoft-commandpalette-extensions-toolkit/clipboardhelper.md
386+
- name: Methods
387+
items:
388+
- name: GetText
389+
href: ../powertoys/command-palette/microsoft-commandpalette-extensions-toolkit/clipboardhelper_gettext.md
390+
- name: SetRtf(String, String)
391+
href: ../powertoys/command-palette/microsoft-commandpalette-extensions-toolkit/clipboardhelper_setrtf.md
392+
- name: SetText(String)
393+
href: ../powertoys/command-palette/microsoft-commandpalette-extensions-toolkit/clipboardhelper_settext.md
394+
- name: ColorHelpers
395+
items:
396+
- name: ColorHelpers
397+
href: ../powertoys/command-palette/microsoft-commandpalette-extensions-toolkit/colorhelpers.md
398+
- name: Methods
399+
items:
400+
- name: FromArgb(Byte, Byte, Byte, Byte)
401+
href: ../powertoys/command-palette/microsoft-commandpalette-extensions-toolkit/colorhelpers_fromargb.md
402+
- name: FromRgb(Byte, Byte, Byte)
403+
href: ../powertoys/command-palette/microsoft-commandpalette-extensions-toolkit/colorhelpers_fromrgb.md
404+
- name: NoColor
405+
href: ../powertoys/command-palette/microsoft-commandpalette-extensions-toolkit/colorhelpers_nocolor.md
406+
- name: Transparent
407+
href: ../powertoys/command-palette/microsoft-commandpalette-extensions-toolkit/colorhelpers_transparent.md
364408
- name: Command
365409
href: ../powertoys/command-palette/microsoft-commandpalette-extensions-toolkit/command.md
410+
- name: CommandContextItem
411+
items:
412+
- name: CommandContextItem
413+
href: ../powertoys/command-palette/microsoft-commandpalette-extensions-toolkit/commandcontextitem.md
414+
- name: Constructors
415+
href: ../powertoys/command-palette/microsoft-commandpalette-extensions-toolkit/commandcontextitem_constructor.md
416+
- name: CommandItem
417+
items:
418+
- name: CommandItem
419+
href: ../powertoys/command-palette/microsoft-commandpalette-extensions-toolkit/commanditem.md
420+
- name: Constructors
421+
href: ../powertoys/command-palette/microsoft-commandpalette-extensions-toolkit/commanditem_constructor.md
366422
- name: CommandResult
367423
items:
368424
- name: CommandResult
@@ -421,8 +477,42 @@ items:
421477
items:
422478
- name: Invoke
423479
href: ../powertoys/command-palette/microsoft-commandpalette-extensions-toolkit/invokablecommand_invoke.md
424-
- name: Invoke(Object?)
480+
- name: Invoke(Object)
425481
href: ../powertoys/command-palette/microsoft-commandpalette-extensions-toolkit/invokablecommand_invoke_object.md
482+
- name: ISettingsForm
483+
items:
484+
- name: ISettingsForm
485+
href: ../powertoys/command-palette/microsoft-commandpalette-extensions-toolkit/isettingsform.md
486+
- name: Methods
487+
items:
488+
- name: ToDataIdentifier
489+
href: ../powertoys/command-palette/microsoft-commandpalette-extensions-toolkit/isettingsform_todataidentifier.md
490+
- name: ToDictionary
491+
href: ../powertoys/command-palette/microsoft-commandpalette-extensions-toolkit/isettingsform_todictionary.md
492+
- name: ToForm
493+
href: ../powertoys/command-palette/microsoft-commandpalette-extensions-toolkit/isettingsform_toform.md
494+
- name: ToState
495+
href: ../powertoys/command-palette/microsoft-commandpalette-extensions-toolkit/isettingsform_tostate.md
496+
- name: Update(JsonObject)
497+
href: ../powertoys/command-palette/microsoft-commandpalette-extensions-toolkit/isettingsform_update.md
498+
- name: Setting
499+
items:
500+
- name: Setting
501+
href: ../powertoys/command-palette/microsoft-commandpalette-extensions-toolkit/setting.md
502+
- name: Constructors
503+
href: ../powertoys/command-palette/microsoft-commandpalette-extensions-toolkit/setting_constructor.md
504+
- name: Methods
505+
items:
506+
- name: ToDataIdentifier
507+
href: ../powertoys/command-palette/microsoft-commandpalette-extensions-toolkit/setting_todataidentifier.md
508+
- name: ToDictionary
509+
href: ../powertoys/command-palette/microsoft-commandpalette-extensions-toolkit/setting_todictionary.md
510+
- name: ToForm
511+
href: ../powertoys/command-palette/microsoft-commandpalette-extensions-toolkit/setting_toform.md
512+
- name: ToState
513+
href: ../powertoys/command-palette/microsoft-commandpalette-extensions-toolkit/setting_tostate.md
514+
- name: Update(JsonObject)
515+
href: ../powertoys/command-palette/microsoft-commandpalette-extensions-toolkit/setting_update.md
426516
- name: ToastArgs
427517
href: ../powertoys/command-palette/microsoft-commandpalette-extensions-toolkit/toastargs.md
428518
- name: Crop And Lock

hub/powertoys/command-palette/microsoft-commandpalette-extensions-toolkit/baseobservable.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: BaseObservable Class
33
description:
4-
ms.date: 2/10/2025
4+
ms.date: 2/11/2025
55
ms.topic: reference
66
no-loc: [PowerToys, Windows, Insider]
77
---
@@ -18,7 +18,7 @@ Implements [INotifyPropChanged](../microsoft-commandpalette-extensions/inotifypr
1818

1919
| Event | Description |
2020
| :--- | :--- |
21-
| Windows.Foundation.TypedEventHandler<object, [IPropChangedEventArgs](../microsoft-commandpalette-extensions/ipropchangedeventargs.md)>? PropChanged | Notifies that a property value has changed. |
21+
| Windows.Foundation.TypedEventHandler<object, [IPropChangedEventArgs](../microsoft-commandpalette-extensions/ipropchangedeventargs.md)> PropChanged | Notifies that a property value has changed. |
2222

2323
## Methods
2424

hub/powertoys/command-palette/microsoft-commandpalette-extensions-toolkit/baseobservable_onpropertychanged.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ no-loc: [PowerToys, Windows, Insider]
1010

1111
## Definition
1212

13-
Namespace: [Microsoft.CommandPalette.Extensions](microsoft-commandpalette-extensions.md)
13+
Namespace: [Microsoft.CommandPalette.Extensions.Toolkit](microsoft-commandpalette-extensions.toolkit.md)
1414

1515
Raises the [PropChanged](baseobservable.md#events) event to notify that a property value has changed.
1616

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
---
2+
title: Choice Class
3+
description:
4+
ms.date: 2/11/2025
5+
ms.topic: reference
6+
no-loc: [PowerToys, Windows, Insider]
7+
---
8+
9+
# Choice Class
10+
11+
## Definition
12+
13+
Namespace: [Microsoft.CommandPalette.Extensions.Toolkit](microsoft-commandpalette-extensions.toolkit.md)
14+
15+
## Choice(String, String) Constructor
16+
17+
### Definition
18+
19+
Initializes a new instance of the `Choice` class with the given `title` and `value`.
20+
21+
```C#
22+
public Choice(string title, string value)
23+
{
24+
Value = value;
25+
Title = title;
26+
}
27+
```
28+
29+
### Parameters
30+
31+
**`title`** String
32+
33+
**`value`** String
34+
35+
## Properties
36+
37+
| Property | Type | Description |
38+
| :--- | :--- | :--- |
39+
| Title | String | |
40+
| Value | String | |
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
---
2+
title: ChoiceSetSetting Class
3+
description:
4+
ms.date: 2/19/2025
5+
ms.topic: reference
6+
no-loc: [PowerToys, Windows, Insider]
7+
---
8+
9+
# ChoiceSetSetting Class
10+
11+
## Definition
12+
13+
Namespace: [Microsoft.CommandPalette.Extensions.Toolkit](microsoft-commandpalette-extensions.toolkit.md)
14+
15+
Inherits [Setting<String>](setting.md)
16+
17+
## Constructors
18+
19+
| Constructor | Description |
20+
| :--- | :--- |
21+
| [ChoiceSetSetting()](choicesetsetting_constructor.md#choicesetsetting-constructor) | Initializes `Choices` to an empty list. |
22+
| [ChoiceSetSetting(String, List<Choice>)](choicesetsetting_constructor.md#choicesetsettingstring-list-constructor) | |
23+
| [ChoiceSetSetting(String, String, String, List<Choice>)](choicesetsetting_constructor.md#choicesetsettingstring-string-string-list-constructor) | |
24+
25+
## Nested classes
26+
27+
| Class | Description |
28+
| :--- | :--- |
29+
| [Choice](choice.md) | |
30+
31+
## Properties
32+
33+
| Property | Type | Description |
34+
| :--- | :--- | :--- |
35+
| Choices | List<[Choice](choice.md)> | |
36+
37+
## Methods
38+
39+
| Method | Description |
40+
| :--- | :--- |
41+
| [LoadFromJson(JsonObject)](choicesetsetting_loadfromjson.md) | |
42+
| [ToDictionary()](choicesetsetting_todictionary.md) | |
43+
| [ToState()](choicesetsetting_tostate.md) | |
44+
| [Update(JsonObject)](choicesetsetting_update.md) | |
Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
---
2+
title: ChoiceSetSetting Constructors
3+
description:
4+
ms.date: 2/19/2025
5+
ms.topic: reference
6+
no-loc: [PowerToys, Windows, Insider]
7+
---
8+
9+
# ChoiceSetSetting Constructors
10+
11+
## ChoiceSetSetting() Constructor
12+
13+
### Definition
14+
15+
Namespace: [Microsoft.CommandPalette.Extensions.Toolkit](microsoft-commandpalette-extensions.toolkit.md)
16+
17+
Initializes a new instance of the [ChoiceSetSetting](choicesetsetting.md) class with [Choices](choicesetsetting.md#properties) set to an empty list.
18+
19+
```C#
20+
private ChoiceSetSetting()
21+
: base()
22+
{
23+
Choices = [];
24+
}
25+
```
26+
27+
## ChoiceSetSetting(String, List<Choice>) Constructor
28+
29+
### Definition
30+
31+
Namespace: [Microsoft.CommandPalette.Extensions.Toolkit](microsoft-commandpalette-extensions.toolkit.md)
32+
33+
Initializes a new instance of the [ChoiceSetSetting](choicesetsetting.md) class from the base [Setting](setting.md) class, setting its [Key](setting.md#properties) property to `key` and its [Choices](choicesetsetting.md#properties) set to `choices`.
34+
35+
```C#
36+
public ChoiceSetSetting(string key, List<Choice> choices)
37+
: base(key, choices.ElementAt(0).Value)
38+
{
39+
Choices = choices;
40+
}
41+
```
42+
43+
## Parameters
44+
45+
**`key`** String
46+
47+
**`choices`** List<[Choice](choice.md)>
48+
49+
## ChoiceSetSetting(String, String, String, List<Choice>) Constructor
50+
51+
### Definition
52+
53+
Namespace: [Microsoft.CommandPalette.Extensions.Toolkit](microsoft-commandpalette-extensions.toolkit.md)
54+
55+
Initializes a new instance of the [ChoiceSetSetting](choicesetsetting.md) class from the base [Setting](setting.md) class, setting its [Key](setting.md#properties) property to `key`, its [Label](setting.md#properties) to `label`, its [Description](setting.md#properties) to `description`, and its [Choices](choicesetsetting.md#properties) to `choices`.
56+
57+
```C#
58+
public ChoiceSetSetting(string key, string label, string description, List<Choice> choices)
59+
: base(key, label, description, choices.ElementAt(0).Value)
60+
{
61+
Choices = choices;
62+
}
63+
```
64+
65+
## Parameters
66+
67+
**`key`** String
68+
69+
**`label`** String
70+
71+
**`description`** String
72+
73+
**`choices`** List<[Choice](choice.md)>
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
title: ChoiceSetSetting.LoadFromJson(JsonObject) Method
3+
description:
4+
ms.date: 2/19/2025
5+
ms.topic: reference
6+
no-loc: [PowerToys, Windows, Insider]
7+
---
8+
9+
# ChoiceSetSetting.LoadFromJson(JsonObject) Method
10+
11+
## Definition
12+
13+
Namespace: [Microsoft.CommandPalette.Extensions.Toolkit](microsoft-commandpalette-extensions.toolkit.md)
14+
15+
## Parameters
16+
17+
**`jsonObject`** JsonObject
18+
19+
## Returns
20+
21+
[ChoiceSetSetting](choicesetsetting.md)
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
title: ChoiceSetSetting.ToDictionary() Method
3+
description:
4+
ms.date: 2/19/2025
5+
ms.topic: reference
6+
no-loc: [PowerToys, Windows, Insider]
7+
---
8+
9+
# ChoiceSetSetting.ToDictionary() Method
10+
11+
## Definition
12+
13+
Namespace: [Microsoft.CommandPalette.Extensions.Toolkit](microsoft-commandpalette-extensions.toolkit.md)
14+
15+
## Returns
16+
17+
Dictionary<String, Object>
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
title: ChoiceSetSetting.ToState() Method
3+
description:
4+
ms.date: 2/19/2025
5+
ms.topic: reference
6+
no-loc: [PowerToys, Windows, Insider]
7+
---
8+
9+
# ChoiceSetSetting.ToState() Method
10+
11+
## Definition
12+
13+
Namespace: [Microsoft.CommandPalette.Extensions.Toolkit](microsoft-commandpalette-extensions.toolkit.md)
14+
15+
## Returns
16+
17+
String
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
title: ChoiceSetSetting.Update(JsonObject) Method
3+
description:
4+
ms.date: 2/19/2025
5+
ms.topic: reference
6+
no-loc: [PowerToys, Windows, Insider]
7+
---
8+
9+
# ChoiceSetSetting.Update(JsonObject) Method
10+
11+
## Definition
12+
13+
Namespace: [Microsoft.CommandPalette.Extensions.Toolkit](microsoft-commandpalette-extensions.toolkit.md)
14+
15+
## Parameters
16+
17+
**`payload`** JsonObject

0 commit comments

Comments
 (0)