Hi,
I have a Usercontrol contains a Radlistbox which is surrounded by a radbusyindicator.Radlistbox's ItemsSource is from a WCF request in async mode.Generally, the indicator is showing when the request begin and hide after handler completed.My question is, after populating data on listbox, the indicator is collapsed but the listboxitems get the gray overlay until moving mouse over them.I've tried the following ways to find problem, but all failed.
1. reproduce this in other project with same code;
2. use busyindicator of microsoft toolkit to replace radbusyindicator;
3. remove all customized style
4. catch IsEnabledChanged event of radlistbox and invoke control.Fosus().
any suggest?
My Source Code:
I have a Usercontrol contains a Radlistbox which is surrounded by a radbusyindicator.Radlistbox's ItemsSource is from a WCF request in async mode.Generally, the indicator is showing when the request begin and hide after handler completed.My question is, after populating data on listbox, the indicator is collapsed but the listboxitems get the gray overlay until moving mouse over them.I've tried the following ways to find problem, but all failed.
1. reproduce this in other project with same code;
2. use busyindicator of microsoft toolkit to replace radbusyindicator;
3. remove all customized style
4. catch IsEnabledChanged event of radlistbox and invoke control.Fosus().
any suggest?
My Source Code:
<StackPanel x:Name=
"LayoutRoot"
Background=
"White"
>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width=
"150"
/>
<ColumnDefinition Width=
"*"
/>
</Grid.ColumnDefinitions>
<telerik:RadBusyIndicator x:Name=
"querySourceIndicator"
Grid.Column=
"0"
IsBusy=
"{Binding IsOPBusying}"
>
<StackPanel Margin=
"3"
>
<StackPanel Orientation=
"Horizontal"
Margin=
"2"
>
<telerik:RadWatermarkTextBox x:Name=
"searchTextBox"
VerticalAlignment=
"Center"
Width=
"119"
>
<telerik:RadWatermarkTextBox.WatermarkContent>
<TextBlock VerticalAlignment=
"Center"
Text=
"Enter Your Searching Name"
FontStyle=
"Normal"
/>
</telerik:RadWatermarkTextBox.WatermarkContent>
</telerik:RadWatermarkTextBox>
<telerik:RadButton Style=
"{StaticResource SearchButton}"
>
<i:Interaction.Triggers>
<i:EventTrigger EventName=
"Click"
>
<i:InvokeCommandAction Command=
"{Binding Search}"
CommandParameter=
"{Binding Text, ElementName=searchTextBox}"
/>
</i:EventTrigger>
</i:Interaction.Triggers>
</telerik:RadButton>
</StackPanel>
<telerik:RadListBox x:Name=
"sourceList"
MinHeight=
"360"
Margin=
"2"
ItemsSource=
"{Binding SourceList}"
SelectedItem=
"{Binding SelectedSource, Mode=TwoWay}"
ItemTemplate=
"{StaticResource sourceListItemTemplate}"
/>
</StackPanel>
</telerik:RadBusyIndicator>
<StackPanel Grid.Column=
"1"
Margin=
"3"
>
<StackPanel Orientation=
"Horizontal"
VerticalAlignment=
"Center"
Margin=
"2"
>
<TextBlock Text=
"Name"
Margin=
"3"
/>
<TextBox Text=
"{Binding SelectedSource.DisplayName, Mode=TwoWay}"
Width=
"150"
/>
</StackPanel>
<telerik:RadBusyIndicator x:Name=
"previewBusyIndicator"
IsBusy=
"{Binding IsPreviewDatatBusy}"
>
<telerik:RadGridView x:Name=
"gridViewSourceData"
ShowGroupPanel=
"False"
MinHeight=
"360"
Margin=
"2"
AutoGenerateColumns=
"True"
ItemsSource=
"{Binding PreviewDataList}"
/>
</telerik:RadBusyIndicator>
</StackPanel>
</Grid>
</StackPanel>