Is there a problem with RowSpan support in RadAutoCompleteBox class? The vertical scroll bar doesn't seem to extend all the way.
Try this out with your "Highlight Matching Items Text" example in your samples browser software.
Add new row to the grid:
<
Grid.RowDefinitions
>
<
RowDefinition
Height
=
"Auto"
/>
<
RowDefinition
Height
=
"Auto"
/>
<
RowDefinition
Height
=
"*"
/>
</
Grid.RowDefinitions
>
Then set RadAutoCompleteBox object's RowSpan to 2:
Grid.RowSpan=
"2"
Then subscribe to Loaded event in Example.xaml.cs:
public
Example()
{
InitializeComponent();
AutoComplete.Loaded += AutoComplete_Loaded;
}
private
void
AutoComplete_Loaded(
object
sender, RoutedEventArgs e)
{
RadWatermarkTextBox watermark = (sender
as
RadAutoCompleteBox).ChildrenOfType<RadWatermarkTextBox>().FirstOrDefault();
if
(watermark !=
null
)
{
watermark.AcceptsReturn =
true
;
watermark.TextWrapping = TextWrapping.Wrap;
watermark.VerticalAlignment = VerticalAlignment.Center;
watermark.VerticalScrollBarVisibility = ScrollBarVisibility.Visible;
}
}
Then run the example and you see how the scroll bar is only the height of the first row. It grows when you type text with new rows. Doesn't look good if you want to always show the vertical scroll bar (disabled when not enough text to scroll).
Haven't tested this with horizontal scroll bar.
By the way, is there a way to configure the RadAutoCompleteBox object to use textwrapping in XAML. I only found the above way by googling and I'd like not to use events. Handled with extending the class and subscribing to the event in the extended class' code.