Skip to content

Commit e16dbc7

Browse files
Update predefined-ai-commands.md
1 parent 346dfc7 commit e16dbc7

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

controls/aiprompt/predefined-ai-commands.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,11 @@ You can use three different approaches to add a logic that will be executed when
2626
Let's, for example, add the following `AIPromptCommand` to `Commands` collection:
2727

2828
```C#
29-
this.Commands.Add(new AIPromptCommand
30-
{ mageSource = new FontImageSource() { FontFamily = TelerikFont.Name, Size = 12, Glyph = TelerikFont.IconPaste},
31-
Text = "Simplify",
32-
Command = this.CheckSyntaxCommand });
29+
this.Commands.Add(new AIPromptCommand {
30+
mageSource = new FontImageSource() { FontFamily = TelerikFont.Name, Size = 12, Glyph = TelerikFont.IconPaste },
31+
Text = "Simplify",
32+
Command = this.CheckSyntaxCommand
33+
});
3334
this.CheckSyntaxCommand = new Command(this.ExecuteCheckSyntaxCommand);
3435
```
3536

@@ -49,9 +50,10 @@ In case the `AIPromptCommand` has `Command` applied, that `Command` will be exec
4950
In case the `AIPromptCommand`'`Command` is null, the AIPrompt's `CommandTappedCommand` will be executed:
5051

5152
```C#
52-
this.Commands.Add(new AIPromptCommand
53-
{ mageSource = new FontImageSource() { FontFamily = TelerikFont.Name, Size = 12, Glyph = TelerikFont.IconPaste},
54-
Text = "Simplify"});
53+
this.Commands.Add(new AIPromptCommand {
54+
mageSource = new FontImageSource() { FontFamily = TelerikFont.Name, Size = 12, Glyph = TelerikFont.IconPaste },
55+
Text = "Simplify"
56+
});
5557
this.CommandTappedCommand = new Command(this.ExecuteCommandTappedCommand);
5658
```
5759

0 commit comments

Comments
 (0)