Dropdown Border is missing

6 posts, 0 answers
  1. Steve
    Steve avatar
    124 posts
    Member since:
    Jun 2011

    Posted 19 Aug 2013 Link to this post

    Hello,
    Is there any reason why the dropdown would not have a Border?
    Thanks in advance,
    Steve
  2. Kalin
    Admin
    Kalin avatar
    1209 posts

    Posted 20 Aug 2013 Link to this post

    Hello Steve,

    Could you please give us some more details on your case? The AutoCompleteBox does have a border by default, please check the attached screenshot.

    I'm looking forward to your response.

    Regards,
    Kalin
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
  3. UI for WPF is Visual Studio 2017 Ready
  4. Steve
    Steve avatar
    124 posts
    Member since:
    Jun 2011

    Posted 20 Aug 2013 Link to this post

    Here's the xaml (it's actually embedded in a UserControl with a dropdown button, but I disabled all of that to show just the RadAutoCompleteBox)....

    <telerik:RadAutoCompleteBox x:Name="RadAutoCompleteBox"
                                SelectionMode="Single"
                                VerticalAlignment="Top"
                                HorizontalAlignment="Left"
                                Width="{Binding ElementName=This, Path=ActualWidth}"
                                Height="22"
                                DropDownWidth="{Binding ElementName=This, Path=DropDownWidth}"
                                DisplayMemberPath="{Binding ElementName=This, Path=DisplayMemberPath}"
                                ItemsSource="{Binding ElementName=This, Path=ItemsSource}"
                                SelectedItem="{Binding ElementName=This, Path=SelectedItem}"/>


    And attached is an image of the problem.  As you can see, not only is there no border, but the dropdown seems to be disabled.

  5. Kalin
    Admin
    Kalin avatar
    1209 posts

    Posted 21 Aug 2013 Link to this post

    Hi Steve,

    Could you please provide us with more information about the setup as we were unable to reproduce the described issue. We need more information about the "This" element and all the bindings of the AutoCompleteBox. Another option is to isolate it in a sample project and send it to us so we can investigate the situation further.

    I'm looking forward to your response.

    Regards,
    Kalin
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
  6. Steve
    Steve avatar
    124 posts
    Member since:
    Jun 2011

    Posted 21 Aug 2013 Link to this post

    I found the cause of the problem, but for the life of me I can't figure out why it occurs.  Apparently use of the ReuxablesLegacy.dll ResourceLibrary is causing the problem.  If I don't use it, the AutoCompleteBox operates as expected.  The problem is that I need to use it.  If you guys can figure out why the Telerik control would be affected by it I would greatly appreciated it.  I tried applying the following Style to force the Border to show, but oddly enough the BorderBrush and BorderThickness Setters have no effect, whereas the Background Setter does. 

    <Style TargetType="{x:Type telerik:RadListBox}"
           BasedOn="{StaticResource {x:Type telerik:RadListBox}}">
        <Setter Property="BorderBrush"
                Value="#FF848484" />
        <Setter Property="BorderThickness"
                Value="1" />
        <Setter Property="Background"
                Value="#FFE9E9E9" />
    </Style>

    So for now, I'm leaving the Background color in to distinguish the dropdown from the rest of the screen.  Hopefully you'll be able to find resolution, as I am at a loss.

    Thanks,
    Steve



  7. Masha
    Admin
    Masha avatar
    355 posts

    Posted 26 Aug 2013 Link to this post

    Hi Steve,

    I assume that the explained appearance might be caused because the theme library that you are using is affecting the ScrollViewer which is part of the RadListBox control template. However without a runnable project I would suggest that you style the control using Implicit Styles and apply the style locally using x:Key, so the other styles can be overridden.

    Please check if this will work for you and let us know. If you still have any issues I would ask you to send us a sample project in order to help you further.

    Regards,
    Masha
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
Back to Top
UI for WPF is Visual Studio 2017 Ready