ToolBar Commands
Adding a Command
By default, the toolbar of RadChat
will not be visible. When a ToolBarCommand
is added to the ToolBarCommands
collection, the ToggleButton
for opening the toolbar will appear next to the Send Button. The ToolBarCommand
element exposes the following two properties:
-
Text
: The text Content that will be set to the generatedButton
. -
Command
: TheICommand
that is to be executed when clicking theButton
.
Adding a ToolBarCommand to the ToolBarCommands collection
ToolBarCommandTemplateSelector
RadChat supports defining custom DataTemplate
for the elements generated in its toolbar. This is done via its ToolBarCommandTemplateSelector
property. Its conditional logic can be implemented based on the given ToolBarCommand
.
Defining a custom DataTemplateSelector
Adding the ToolBarCommandTemplateSelector
ToolBarCommandTemplateSelector
property of RadChat.
Applying the ToolBarCommandTemplateSelector
ToolBarCommandTemplateSelector