Hi,
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?
Thanks,
Ted.
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" xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" mc:Ignorable="d" d:DesignHeight="600" d:DesignWidth="800" Title="Page1"> <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" /> </StackPanel> <telerik:RadDropDownButton.DropDownContent> <ListBox BorderThickness="0" Focusable="False"> <telerik:RadMenuItem Focusable="False" Height="32" Width="230" Header="Header1" Click="RadMenuItem_Click"> <telerik:RadMenuItem.Icon> <Image Height="16" Width="16" Source="/WpfBrowserApplication1;component/Images/Bmp.ico" /> </telerik:RadMenuItem.Icon> </telerik:RadMenuItem> </ListBox> </telerik:RadDropDownButton.DropDownContent> </telerik:RadDropDownButton> </StackPanel> </Grid></Page>private void RadMenuItem_Click(object sender, RoutedEventArgs e) { RadControlsScenario1 dd = new RadControlsScenario1(); dd.WindowStartupLocation = WindowStartupLocation.CenterScreen; dd.ShowDialog(); dd.Focus(); }Thanks,
Ted.