|
38 | 38 |
|
39 | 39 | </ContentPage.Resources>
|
40 | 40 |
|
41 |
| - |
| 41 | + |
42 | 42 | <ContentPage.Content>
|
43 |
| - <Grid> |
44 |
| - <Grid |
| 43 | + <Grid> |
| 44 | + <Grid |
45 | 45 | ColumnDefinitions="{OnPlatform WinUI='7*,3*', MacCatalyst='7*,3*'}"
|
46 | 46 | RowDefinitions="Auto,*">
|
47 | 47 |
|
|
127 | 127 | RequestCommand="{Binding RequestCommand}"
|
128 | 128 | ShowHeader="{Binding ShowHeader}"
|
129 | 129 | AssistItems="{Binding Messages}">
|
130 |
| - <aiassistview:SfAIAssistView.HeaderTemplate> |
131 |
| - <DataTemplate> |
132 |
| - <VerticalStackLayout |
| 130 | + <aiassistview:SfAIAssistView.HeaderTemplate> |
| 131 | + <DataTemplate> |
| 132 | + <VerticalStackLayout |
133 | 133 | Spacing="12">
|
134 |
| - <Label Text="How can I assist with generated chart?" Padding="0,20,0,0" LineBreakMode="WordWrap" |
| 134 | + <Label Text="How can I assist with generated chart?" Padding="0,20,0,0" LineBreakMode="WordWrap" |
135 | 135 | FontSize="Subtitle"
|
136 | 136 | HorizontalOptions="Center" />
|
137 |
| - <HorizontalStackLayout x:Name="listView" |
| 137 | + <HorizontalStackLayout x:Name="listView" |
138 | 138 | HeightRequest="{OnPlatform WinUI=140, Android=160, MacCatalyst=180, iOS=150}"
|
139 | 139 | WidthRequest="{OnPlatform MacCatalyst= 430,Android=335, iOS=310}"
|
140 | 140 | HorizontalOptions="Center" Padding="{OnPlatform MacCatalyst=20}"
|
141 | 141 | BindableLayout.ItemsSource="{Binding Path=ModelPrompts}">
|
142 |
| - <BindableLayout.ItemTemplate> |
143 |
| - <DataTemplate> |
144 |
| - <Grid Padding="4"> |
145 |
| - <Border |
| 142 | + <BindableLayout.ItemTemplate> |
| 143 | + <DataTemplate> |
| 144 | + <Grid Padding="4"> |
| 145 | + <Border |
146 | 146 | WidthRequest="{OnPlatform WinUI=120,Android=150,MacCatalyst= 150 , iOS=140}"
|
147 | 147 | HeightRequest="{OnPlatform WinUI=120,Android=130, MacCatalyst= 100, iOS=120}"
|
148 | 148 | Stroke="Gray"
|
149 | 149 | Padding="4">
|
150 |
| - <Border.GestureRecognizers> |
151 |
| - <TapGestureRecognizer Tapped="TapGestureRecognizer_Tapped"/> |
152 |
| - </Border.GestureRecognizers> |
153 |
| - <VisualStateManager.VisualStateGroups> |
154 |
| - <VisualStateGroup x:Name="CommonStates"> |
155 |
| - <VisualState x:Name="Normal"> |
156 |
| - <VisualState.Setters> |
157 |
| - <Setter Property="Background" Value="Transparent" /> |
158 |
| - </VisualState.Setters> |
159 |
| - </VisualState> |
160 |
| - <VisualState x:Name="PointerOver"> |
161 |
| - <VisualState.Setters> |
162 |
| - <Setter Property="Background" Value="#14000000" /> |
163 |
| - </VisualState.Setters> |
164 |
| - </VisualState> |
165 |
| - </VisualStateGroup> |
166 |
| - </VisualStateManager.VisualStateGroups> |
167 |
| - <Border.StrokeShape> |
168 |
| - <RoundRectangle CornerRadius="10" /> |
169 |
| - </Border.StrokeShape> |
170 |
| - <Grid RowDefinitions="*"> |
171 |
| - <Label Text="{Binding .}" |
| 150 | + <Border.GestureRecognizers> |
| 151 | + <TapGestureRecognizer Tapped="TapGestureRecognizer_Tapped"/> |
| 152 | + </Border.GestureRecognizers> |
| 153 | + <VisualStateManager.VisualStateGroups> |
| 154 | + <VisualStateGroup x:Name="CommonStates"> |
| 155 | + <VisualState x:Name="Normal"> |
| 156 | + <VisualState.Setters> |
| 157 | + <Setter Property="Background" Value="Transparent" /> |
| 158 | + </VisualState.Setters> |
| 159 | + </VisualState> |
| 160 | + <VisualState x:Name="PointerOver"> |
| 161 | + <VisualState.Setters> |
| 162 | + <Setter Property="Background" Value="#14000000" /> |
| 163 | + </VisualState.Setters> |
| 164 | + </VisualState> |
| 165 | + </VisualStateGroup> |
| 166 | + </VisualStateManager.VisualStateGroups> |
| 167 | + <Border.StrokeShape> |
| 168 | + <RoundRectangle CornerRadius="10" /> |
| 169 | + </Border.StrokeShape> |
| 170 | + <Grid RowDefinitions="*"> |
| 171 | + <Label Text="{Binding .}" |
172 | 172 | LineBreakMode="WordWrap"
|
173 | 173 | VerticalTextAlignment="Center"
|
174 | 174 | HorizontalTextAlignment="Center" />
|
175 |
| - </Grid> |
176 |
| - </Border> |
177 |
| - </Grid> |
178 |
| - </DataTemplate> |
179 |
| - </BindableLayout.ItemTemplate> |
180 |
| - </HorizontalStackLayout> |
181 |
| - </VerticalStackLayout> |
182 |
| - </DataTemplate> |
183 |
| - </aiassistview:SfAIAssistView.HeaderTemplate> |
184 |
| - <aiassistview:SfAIAssistView.Shadow> |
185 |
| - <Shadow Brush="Black" Offset="0,0" Radius="1" Opacity="0.5" /> |
186 |
| - </aiassistview:SfAIAssistView.Shadow> |
187 |
| - </aiassistview:SfAIAssistView> |
188 |
| - |
189 |
| - <ActivityIndicator IsRunning="{Binding ShowIndicator}" |
| 175 | + </Grid> |
| 176 | + </Border> |
| 177 | + </Grid> |
| 178 | + </DataTemplate> |
| 179 | + </BindableLayout.ItemTemplate> |
| 180 | + </HorizontalStackLayout> |
| 181 | + </VerticalStackLayout> |
| 182 | + </DataTemplate> |
| 183 | + </aiassistview:SfAIAssistView.HeaderTemplate> |
| 184 | + <aiassistview:SfAIAssistView.Shadow> |
| 185 | + <Shadow Brush="Black" Offset="0,0" Radius="1" Opacity="0.5" /> |
| 186 | + </aiassistview:SfAIAssistView.Shadow> |
| 187 | + </aiassistview:SfAIAssistView> |
| 188 | + |
| 189 | + <ActivityIndicator IsRunning="{Binding ShowIndicator}" |
190 | 190 | x:Name="Indicator"
|
191 | 191 | Color="{AppThemeBinding Light=#1E201E, Dark=#FEFAF6}"
|
192 | 192 | Grid.Column="{OnPlatform Android='0',iOS='0', Default='1'}"
|
193 | 193 | VerticalOptions="Center"
|
194 | 194 | HorizontalOptions="Center"/>
|
195 |
| - <buttons:SfButton Grid.Row="0" |
196 |
| - Margin="0,0,60,0" |
197 |
| - Grid.Column="{OnPlatform Android='0',iOS='0', Default='1'}" |
198 |
| - x:Name="exportchartbutton" |
199 |
| - Text="Export Chart" |
| 195 | + <buttons:SfButton Grid.Row="0" Margin="0,0,60,0" |
| 196 | + Grid.Column="{OnPlatform Android='0',iOS='0', Default='1'}" |
| 197 | + x:Name="exportchartbutton" |
| 198 | + Text="Export Chart" |
200 | 199 | Clicked="Exportchartbutton_Clicked"
|
201 | 200 | FontFamily="MauiSampleFontIcon"
|
202 | 201 | CornerRadius="5"
|
203 | 202 | TextColor="White"
|
204 | 203 | BackgroundColor="#6750a4"
|
205 | 204 | FontSize="{OnPlatform WinUI=17, Android=15, MacCatalyst=17, iOS=17}" WidthRequest="120" HeightRequest="30"
|
206 | 205 | ToolTipProperties.Text="Click to Export the Chart"
|
207 |
| - FontAttributes="Bold" VerticalOptions="Start" |
| 206 | + FontAttributes="Bold" |
| 207 | + VerticalOptions="Start" |
208 | 208 | HorizontalOptions="End"/>
|
209 | 209 | <buttons:SfButton
|
210 | 210 | Grid.Row="0"
|
|
221 | 221 | VerticalOptions="Start"
|
222 | 222 | HorizontalOptions="End"/>
|
223 | 223 | </Grid>
|
224 |
| - </Grid> |
| 224 | + </Grid> |
225 | 225 | </ContentPage.Content>
|
226 | 226 |
|
227 | 227 | <ContentPage.Behaviors>
|
|
0 commit comments