diff --git a/MAUI/AIAssistView/styles.md b/MAUI/AIAssistView/styles.md index d2f2e2576..1b2178e1e 100644 --- a/MAUI/AIAssistView/styles.md +++ b/MAUI/AIAssistView/styles.md @@ -1181,3 +1181,115 @@ public MainPage() {% endtabs %} ![Common suggestion style in .NET MAUI AI AssistView](Images/styles/maui-aiassistview-styles-commonsuggestion.png) + +## Scroll to bottom button style + +To style the scroll to bottom button view based on its appearance, set values to the in-built keys in the resource dictionary. + + + + + + + + + + + + + + +
Key Description
SfAIAssistViewScrollToBottomButtonBackground Background color of the scroll to bottom button view.
SfAIAssistViewScrollToBottomButtonIconColor Color of the scroll to bottom button.
+ +{% tabs %} +{% highlight xaml %} + + + + + + CustomTheme + Orange + White + + + + + +{% endhighlight %} +{% highlight c# %} + +public MainPage() +{ + InitializeComponent(); + ResourceDictionary dictionary = new ResourceDictionary(); + dictionary.Add("SfAIAssistViewTheme", "CustomTheme"); + dictionary.Add("SfAIAssistViewScrollToBottomButtonBackground", Colors.Orange); + dictionary.Add("SfAIAssistViewScrollToBottomButtonIconColor", Colors.White); + this.Resources.Add(dictionary); +} + +{% endhighlight %} +{% endtabs %} + +## Action button style + +To style the action button view based on its appearance, set values to the in-built keys in the resource dictionary. + + + + + + + + + + + + + + + + + + + + + + +
Key Description
SfAIAssistViewActionButtonBackground Background color of the action button.
SfAIAssistViewActionButtonIconColor Color of the action button.
SfAIAssistViewActionButtonViewTextColor Text color of an item in the action button.
SfAIAssistViewActionButtonsPopupBackground Background color of the action buttons view.
+ +{% tabs %} +{% highlight xaml %} + + + + + + CustomTheme + Orange + White + Black + LightGray + + + + + +{% endhighlight %} +{% highlight c# %} + +public MainPage() +{ + InitializeComponent(); + ResourceDictionary dictionary = new ResourceDictionary(); + dictionary.Add("SfAIAssistViewTheme", "CustomTheme"); + dictionary.Add("SfAIAssistViewActionButtonBackground", Colors.Orange); + dictionary.Add("SfAIAssistViewActionButtonIconColor", Colors.White); + dictionary.Add("SfAIAssistViewActionButtonViewTextColor", Colors.Black); + dictionary.Add("SfAIAssistViewActionButtonsPopupBackground", Colors.LightGray); + this.Resources.Add(dictionary); +} + +{% endhighlight %} +{% endtabs %}