Hi
I was trying to set margin of RadAutoCompleteBox by override the default style of the control. If I'm doing it this way, the margin works as well. But if I'm searching for some items, no entries are shown. If I'm setting margin explicite on the control it self it works perfectly.
Do you know how to prevent this issue?
Here my Style:
And here the Control:
The Issue looks like this:
That's how it should look like:
Thanks for your help
Michael
I was trying to set margin of RadAutoCompleteBox by override the default style of the control. If I'm doing it this way, the margin works as well. But if I'm searching for some items, no entries are shown. If I'm setting margin explicite on the control it self it works perfectly.
Do you know how to prevent this issue?
Here my Style:
<
Style
x:Key
=
"RadAutoCompleteBoxStyle"
TargetType
=
"{x:Type telerik:RadAutoCompleteBox}"
><
br
> <
Setter
Property
=
"IsTabStop"
Value
=
"True"
/><
br
> <
Setter
Property
=
"TextBoxStyle"
><
br
> <
Setter.Value
><
br
> ....<
br
> </
Setter.Value
><
br
> </
Setter
><
br
> <
Setter
Property
=
"BorderBrush"
Value
=
"#FF848484"
/><
br
> <
Setter
Property
=
"BorderThickness"
Value
=
"1"
/><
br
> <
Setter
Property
=
"Background"
Value
=
"White"
/><
br
> <
Setter
Property
=
"Padding"
Value
=
"0,0,3,3"
/><
br
> <
Setter
Property
=
"Cursor"
Value
=
"IBeam"
/><
br
> <
Setter
Property
=
"ScrollViewer.VerticalScrollBarVisibility"
Value
=
"Disabled"
/><
br
> <
Setter
Property
=
"ScrollViewer.HorizontalScrollBarVisibility"
Value
=
"Disabled"
/><
br
> <
Setter
Property
=
"SnapsToDevicePixels"
Value
=
"True"
/><
br
> <
b
><
Setter
Property
=
"Margin"
Value
=
"5,2"
/></
b
><
br
> </
Style
>
And here the Control:
<telerik:RadAutoCompleteBox Grid.Row="0" Grid.Column="1"
SelectionMode="Single"
ItemsSource="{Binding LandItems}"
SelectedItem="{Binding SelectedLand}"
DisplayMemberPath="LanISOCodeBezeichnungConcat" TextSearchMode="Contains"
Style="{DynamicResource RadAutoCompleteBoxStyle}"/>
SelectionMode="Single"
ItemsSource="{Binding LandItems}"
SelectedItem="{Binding SelectedLand}"
DisplayMemberPath="LanISOCodeBezeichnungConcat" TextSearchMode="Contains"
Style="{DynamicResource RadAutoCompleteBoxStyle}"/>
The Issue looks like this:
That's how it should look like:
Thanks for your help
Michael