The closing of the drop down popup when you click on an item is an application logic and it cannot be handled automatically by the outlookbar control.
However, you can implement custom logic for this behavior. For example, you can use the following approach:
Create a bool property in your main view model that holds the current state of the popup (is opened/is closed)
Define an ICommand (again in the main view model). This command will be used for changing the bool property's value.
You can use the EventToCommand behavior to attach the command to the selection changed event of the Selector control in the popup. This way when you click on an item from the list, the command in the view model will be executed.
The next step is to bind the bool property to the IsOpen property of the RadDropDownButton that represents the MinimizedButton of the outlookbar control. I am afraid RadOutlookBar does not expose a property that can be used for accessing the drop down button, this is why you can get it in the Loaded event of the outlookbar, with the ChildrenOfType<T>() extension method. And then set the binding in code-behind.
Where the IsMinimizedPopupOpened is the new bool property in the view model.
Finally, you can implement the Execute handler of the ICommand and inside it set the bool property to false. This way when you change the selection in the items presenter place in the popup (click on the item), the popup will be closed.
For your convenience I prepared a sample project demonstrating this approach. Please give it a try and let me know if it works for you.
Regards,
Martin
Telerik
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.
Thank you for your sample Code !
This is exactly what i need !
Thilo
p.s. in your sample project the file 'conv.cs' is missing and
i had to comment the line ' <Button VerticalAlignment="Bottom" Content="Open" Click="Button_Click" />' in the MainWindow.xaml