Hi,
Am having some issues with the Dropdown content in RadDropDownButton.
I get multiple instances of the dropdown content (attached screen shot).
Below is my xaml.
Am trying to close the dropdown content on click of a listbox item. Am setting IsSearchHistoryOpen=false from SelectedSearchQuery property.
This happens only when I specify Mode=TwoWay in IsOpen="{Binding IsSearchHistoryOpen, Mode=TwoWay}".
But if I dont specify the twoway mode, the dropdowncontent doesnt close when i click the listbox item.
Any help is much appreciated.
Thanks
Am having some issues with the Dropdown content in RadDropDownButton.
I get multiple instances of the dropdown content (attached screen shot).
Below is my xaml.
<telerik:RadDropDownButton AutoOpenDelay="0:0:0.0" Grid.Column="1" Grid.Row="0" FlowDirection="RightToLeft" DropDownButtonPosition="Left" Visibility="{TemplateBinding SearchHistoryListVisibility}" KeepOpen="False" DropDownMaxHeight="170" IsOpen="{Binding IsSearchHistoryOpen, Mode=TwoWay}"> <telerik:RadDropDownButton.DropDownContent> <Grid> <Grid.ColumnDefinitions> <ColumnDefinition Width="{Binding SearchHistoryWidth}" /> </Grid.ColumnDefinitions> <ListBox Grid.Column="0" FlowDirection="LeftToRight" ItemContainerStyle="{StaticResource SearchHistoryItemStyle}" BorderThickness="0.25" BorderBrush="DarkGray" ItemsSource="{Binding Path=SearchHistoryList}" SelectedValue="{Binding Path=SelectedSearchQuery, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" HorizontalAlignment="Stretch" /> </Grid> </telerik:RadDropDownButton.DropDownContent> </telerik:RadDropDownButton>
Am trying to close the dropdown content on click of a listbox item. Am setting IsSearchHistoryOpen=false from SelectedSearchQuery property.
This happens only when I specify Mode=TwoWay in IsOpen="{Binding IsSearchHistoryOpen, Mode=TwoWay}".
But if I dont specify the twoway mode, the dropdowncontent doesnt close when i click the listbox item.
Any help is much appreciated.
Thanks