I have a situation in which I have to dither combo box while some process is being completed.
This snippet is of the Combo Box XAML (ItemSearchView.XAML)..
<StackPanel Margin="2.5">
<Label Content="{x:Static local:StringResources.LBL_FILL_LOC}" Target="
{Binding ElementName=CboFillLoc}"/>
<ComboBox x:Name="CboFillLoc" IsEnabled="{Binding IsComboEnabled}"
ItemsSource="{Binding Locations}" SelectedItem="{Binding
SelectedLocation, Mode=TwoWay}" Padding="2.5"/>
</StackPanel>
This is the method where combo box need to dithered at the beginning and needs to be enabled at the end.
private async void FetchItems()
{
try
{
do something
}
catch
{
}
finally
{
}
}
The purpose for this is that whenever a user is searching for the items manually, I have to restrict the user to perform other processes until all the items are loaded properly.
I am not able to achieve this since I am very new to WPF. Any suggestions or help will be highly appreciable.