@@ -26,10 +26,11 @@ You can use three different approaches to add a logic that will be executed when
2626Let'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+ });
3334this .CheckSyntaxCommand = new Command (this .ExecuteCheckSyntaxCommand );
3435```
3536
@@ -49,9 +50,10 @@ In case the `AIPromptCommand` has `Command` applied, that `Command` will be exec
4950In 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+ });
5557this .CommandTappedCommand = new Command (this .ExecuteCommandTappedCommand );
5658```
5759
0 commit comments