Hello,
when I try to open the DropDownContent of a RadDropDownButton in code behind then the DropDownContent is not shown after change visibility of the RadDropDown Button from collapsed to visible.
See following code example:
<StackPanel> <telerik:RadDropDownButtonDropDownPlacement="Bottom" Visibility="Collapsed" x:Name="btnDropDown" Margin="0 0 0 5" Padding="0" Content="Some Header"> <telerik:RadDropDownButton.DropDownContent> <ListBox Background="LightGoldenrodYellow" > <ListBoxItem Content="Item 1" /> <ListBoxItem Content="Item 2"/> <ListBoxItem Content="Item 3" /> </ListBox> </telerik:RadDropDownButton.DropDownContent> </telerik:RadDropDownButton> <Button Click="Button_Click">Show ListBox in DropDownButton</Button></StackPanel>in code behind:
private void Button_Click(object sender, RoutedEventArgs e){ btnDropDown.SetCurrentValue(VisibilityProperty, Visibility.Visible); btnDropDown.SetCurrentValue(RadDropDownButton.IsOpenProperty, true);}
Result:
The btnDropDown appears on the window and act like opened but the DropDownContent is not shown.
