RadDropDownButton.DropDownContent on top of the modalbackground after ShowDialog()

3 posts, 1 answers
  1. Ted
    Ted avatar
    2 posts
    Member since:
    Sep 2011

    Posted 16 Sep 2011 Link to this post

    I have a question for RadDropDownButton and Modal window in XBAP model. If you click the dropdown item of RadDropDownButton, it will popup the modal window (ShowDialog), but the DropDownContent doesn't disappear and it is on top of the ModalBackground. If you click the other place, the DropDownContent disappears. I want to know how can i resolve it?

    <Page x:Class="WpfBrowserApplication1.Page1"
          d:DesignHeight="600" d:DesignWidth="800"
        <Grid VerticalAlignment="Top">
            <StackPanel Orientation="Horizontal" >
                <telerik:RadDropDownButton Focusable="False" x:Name="RadDropDownButton1" Width="120" Height="120" Background="{x:Null}" Margin="20" CornerRadius="8" BorderThickness="1" BorderBrush="#E0E0E0"  DropDownButtonPosition="Bottom" DropDownIndicatorVisibility="{Binding IsShowContent}">
                    <StackPanel Orientation="Vertical" Margin="0,0,0,0">
                        <Image Width="84" Height="84" Source="/WpfBrowserApplication1;component/Images/soundforge.ico" />
                        <TextBlock HorizontalAlignment="Center" FontWeight="Bold"  VerticalAlignment="Center" Text="soundforge" />
                        <ListBox BorderThickness="0" Focusable="False">
                            <telerik:RadMenuItem Focusable="False" Height="32" Width="230" Header="Header1" Click="RadMenuItem_Click">
                                    <Image Height="16" Width="16" Source="/WpfBrowserApplication1;component/Images/Bmp.ico" />
    private void RadMenuItem_Click(object sender, RoutedEventArgs e)
                RadControlsScenario1 dd = new RadControlsScenario1();
                dd.WindowStartupLocation = WindowStartupLocation.CenterScreen;

  2. Answer
    Zarko avatar
    755 posts

    Posted 21 Sep 2011 Link to this post

    Hi Ted,
    You could try to close it manually in the event handler like this:
    this.RadDropDownButton1.IsOpen = false;
    If you have more questions please feel free to ask.

    Best wishes,
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  3. Ted
    Ted avatar
    2 posts
    Member since:
    Sep 2011

    Posted 22 Sep 2011 Link to this post

    Cool~~Thanks for you help.
Back to Top