<
Style
TargetType
=
"telerik:RadComboBox"
>
<
Setter
Property
=
"OpenDropDownOnFocus"
Value
=
"True"
/>
<!--<Setter Property="MinHeight" Value="50"/>-->
<
Setter
Property
=
"ItemContainerStyle"
Value
=
"{DynamicResource RadComboBoxItemStyle1}"
/>
<
Setter
Property
=
"MaxDropDownHeight"
Value
=
"500"
/>
</
Style
>
<
Style
x:Key
=
"RadComboBoxItemStyle1"
TargetType
=
"{x:Type telerik:RadComboBoxItem}"
>
<
Setter
Property
=
"Background"
Value
=
"Transparent"
/>
<
Setter
Property
=
"Template"
>
<
Setter.Value
>
<
ControlTemplate
TargetType
=
"{x:Type telerik:RadComboBoxItem}"
>
<
Border
x:Name
=
"Background"
BorderBrush
=
"steelblue"
BorderThickness
=
"1"
Background
=
"{TemplateBinding Background}"
Margin
=
"5,2"
CornerRadius
=
"2"
>
<
Grid
>
<
Rectangle
x:Name
=
"Highlight"
Visibility
=
"Collapsed"
>
<
Rectangle.Fill
>
<
LinearGradientBrush
EndPoint
=
"0.5,1"
MappingMode
=
"RelativeToBoundingBox"
StartPoint
=
"0.5,0"
>
<
GradientStop
Color
=
"#FF5F9DD6"
/>
<
GradientStop
Color
=
"White"
Offset
=
"1"
/>
</
LinearGradientBrush
>
</
Rectangle.Fill
>
</
Rectangle
>
<
ContentPresenter
x:Name
=
"Content"
ContentTemplate
=
"{TemplateBinding ContentTemplate}"
Content
=
"{TemplateBinding Content}"
ContentStringFormat
=
"{TemplateBinding ContentStringFormat}"
TextElement.Foreground
=
"Black"
HorizontalAlignment
=
"{TemplateBinding HorizontalContentAlignment}"
VerticalAlignment
=
"{TemplateBinding VerticalContentAlignment}"
OpacityMask
=
"Black"
Margin
=
"2,10"
/>
</
Grid
>
</
Border
>
<
ControlTemplate.Triggers
>
<
Trigger
Property
=
"IsHighlighted"
Value
=
"True"
>
<
Setter
Property
=
"Visibility"
TargetName
=
"Highlight"
Value
=
"Visible"
/>
<
Setter
Property
=
"BorderBrush"
TargetName
=
"Background"
Value
=
"SteelBlue"
/>
<
Setter
Property
=
"Background"
Value
=
"#FF001720"
TargetName
=
"Background"
/>
</
Trigger
>
</
ControlTemplate.Triggers
>
</
ControlTemplate
>
</
Setter.Value
>
</
Setter
>
<
Setter
Property
=
"HorizontalContentAlignment"
Value
=
"Left"
/>
<
Setter
Property
=
"VerticalContentAlignment"
Value
=
"Center"
/>
<
Setter
Property
=
"Padding"
Value
=
"3,1"
/>
<
Setter
Property
=
"SnapsToDevicePixels"
Value
=
"True"
/>
<
Setter
Property
=
"FocusVisualStyle"
Value
=
"{x:Null}"
/>
</
Style
>
<
telerik:GridViewComboBoxColumn
DataMemberBinding
=
"{Binding TubeType}"
DisplayMemberPath
=
"TubeType"
SelectedValueMemberPath
=
"TubeType"
Header
=
"Tube Type"
MinWidth
=
"200"
EditTriggers
=
"CellClick"
/>
Hello
I have a WPF Telerik RadGrid View, in which the row should have different colors based on a boolean. i was able to do this with data triggers, but the problem is that i was unable to disable the mouse over and select effects on the row. as a result, even though a particular row has a different color due to the boolean, when the mouse moves over or when the row is selected, it gets selected/mouse over color effect. is tere a way i can disable the mouse over and selected properties for this particular row. Setting the IsSelected and Focusable properties to false also didnt make any difference. The style and data triggers is as follows:
<Style x:Key="RadRowStyle" TargetType="{x:Type telerik:GridViewRow}">
<Style.Triggers>
<DataTrigger Binding="{Binding ABC}" Value="True">
<Setter Property="Background" Value="Blue"/>
<Setter Property="IsSelected" Value="False"/>
<Setter Property="Focusable" Value="False"/>
<Setter Property="FocusVisualStyle" Value="{x:Null}"/>
</DataTrigger>
<DataTrigger Binding="{Binding ABC}" Value="false">
<Setter Property="Background" Value="Transparent"/>
</DataTrigger>
</Style.Triggers>
</Style>
Hello,
I wan to export data asynchronously. During exporting I want to display progress bar.Here is the code, with is working, but unfortunatelly not asynchronously - my UI is still freezed. I think it's because of Dispatcher. I have to use dispatcher because grid is created in another thread. So even if I created separated thead function grid.Export() is still invoked by main UI thread.
How I can resolve this problem?
ThreadStart start = delegate()
{
grid.Dispatcher.Invoke((EventHandler)delegate(object ss, EventArgs ee)
{
grid.Export(ms);
}, new object[2]);
};
new Thread(start).Start();