|
11 | 11 | xmlns:PresentationOptions="http://schemas.microsoft.com/winfx/2006/xaml/presentation/options" |
12 | 12 | xmlns:sys="clr-namespace:System;assembly=mscorlib" |
13 | 13 | mc:Ignorable="d" |
14 | | - Title="MainWindow" Height="700" Width="1100"> |
| 14 | + Title="MainWindow" Height="800" Width="1100"> |
| 15 | + <Window.Resources> |
| 16 | + <BooleanToVisibilityConverter x:Key="boolToVisibility"/> |
| 17 | + </Window.Resources> |
| 18 | + |
15 | 19 | <Grid> |
16 | 20 | <Grid.ColumnDefinitions> |
17 | 21 | <ColumnDefinition Width="5*"/> |
|
200 | 204 | <ComboBox x:Name="cboThemes" Grid.Row="1" Grid.Column="1" SelectionChanged="cboThemes_SelectionChanged" Margin="2" Style="{StaticResource ComboBoxText}"/> |
201 | 205 | </Grid> |
202 | 206 |
|
| 207 | + <!-- Separator --> |
| 208 | + <Rectangle Height="1" HorizontalAlignment="Stretch" Fill="Gray" Margin="5,20,5,0"/> |
| 209 | + |
| 210 | + <Rectangle Width="1" Height="20" Fill="Transparent"/> |
| 211 | + <TextBlock Text="MISC SETTINGS" Style="{StaticResource HeaderText1}"/> |
| 212 | + |
| 213 | + <!-- BusyIndicator Settings --> |
| 214 | + <Rectangle Width="1" Height="5" Fill="Transparent"/> |
| 215 | + <TextBlock Text="BUSY INDICATOR SETTINGS" Style="{StaticResource HeaderText2}"/> |
| 216 | + <Grid> |
| 217 | + <Grid.ColumnDefinitions> |
| 218 | + <ColumnDefinition Width="3*"/> |
| 219 | + <ColumnDefinition Width="2*"/> |
| 220 | + </Grid.ColumnDefinitions> |
| 221 | + |
| 222 | + <Grid.RowDefinitions> |
| 223 | + <RowDefinition /> |
| 224 | + <RowDefinition /> |
| 225 | + </Grid.RowDefinitions> |
| 226 | + |
| 227 | + <TextBlock Grid.Row="0" Grid.Column="0" Text="SHOW BUSY INDICATOR" Style="{StaticResource LabelText}"/> |
| 228 | + <CheckBox x:Name="chkShowBusyIndicator" Grid.Row="0" Grid.Column="1" IsThreeState="False" IsChecked="True" Style="{StaticResource CheckBoxText}"/> |
| 229 | + |
| 230 | + <TextBlock Grid.Row="1" Grid.Column="0" Text="BUSY INDICATOR ANIMATION" Style="{StaticResource LabelText}"/> |
| 231 | + <ComboBox x:Name="cboBusyIndicatorAnimations" Grid.Row="1" Grid.Column="1" Margin="2" Style="{StaticResource ComboBoxText}"/> |
| 232 | + </Grid> |
| 233 | + |
203 | 234 | </StackPanel> |
204 | 235 | </StackPanel> |
205 | 236 |
|
|
214 | 245 | <igDP:FieldSettings LabelClickAction="SortByMultipleFieldsTriState" AllowRecordFiltering="True"/> |
215 | 246 | </igDP:XamDataPresenter.FieldSettings> |
216 | 247 | </igDP:XamDataPresenter> |
| 248 | + |
| 249 | + <igControls:XamBusyIndicator Grid.Column="2" |
| 250 | + IsBusy="{Binding ElementName=dataPresenter1, Path=IsAsyncDataPending}" |
| 251 | + Visibility="{Binding ElementName=chkShowBusyIndicator, Path=IsChecked, Converter={StaticResource boolToVisibility}}" |
| 252 | + BusyContent="Fetching Data..." |
| 253 | + Animation="{Binding ElementName=cboBusyIndicatorAnimations, Path=SelectedValue}" |
| 254 | + DisplayAfter="0:0:00" |
| 255 | + HorizontalAlignment="Center" |
| 256 | + VerticalAlignment="Center"/> |
217 | 257 | </Grid> |
218 | 258 | </Window> |
0 commit comments