Solved

How do I update a RibbonComboBox in a WPF Application?

Posted on 2011-09-20
5
1,561 Views
Last Modified: 2012-06-27
Hi

I am creating a WPF Ribbon Application with Visual Basic .NET.

On the Ribbon, I have created a RibbonComboBox.  I have also created a collection (in code) of items and set that as my ItemSource for the RibbonComboBox at run-time.  This works fine and the items show up in the RibbonComboBox.

However, how do I get the RibbonComboBox to display the item I select from the list?  When I drop the box down and select something, it does not update to display the selected item - the field just stays empty.  I tried setting the Text property but this does not seem to work.  How do you get the RibbonComboBox to display the selected item?

Thanks
Vyyk
0
Comment
Question by:Vyyk_Drago
  • 3
5 Comments
 
LVL 6

Accepted Solution

by:
effes earned 500 total points
Comment Utility
Hi Vyyk,

since there's been no answer to your question yet, I thought I'd share my "experience" with the Microsoft's WPF Ribbon. A word of warning though: I'm definitely no expert on WPF and I just played around a bit with the Ribbon earlier this year out of curiosity.
I remember that I adding a RibbonGallery and a RibbonGalleryCategory to the RibbonComboBox did the trick for me (see the sample at the end of the MSDN entry on the RibbonBox class here).
I don't know if that's the only or the best way to do it, but it's the only one I know of.

I hope that points you at least in the right direction.
Frank
0
 

Author Comment

by:Vyyk_Drago
Comment Utility
Hi Frank,

Brilliant - it took me quite a while to figure out how to do this at run-time but that article helped a great deal nonetheless.  Many thanks!  My hero :)

All the best
Vykk \o/
0
 

Author Comment

by:Vyyk_Drago
Comment Utility
I've requested that this question be closed as follows:

Accepted answer: 0 points for Vyyk_Drago's comment http:/Q_27318252.html#36574374

for the following reason:

Awesome - would not have managed to figure it out without reference to the article referred to by the poster.
0
 

Author Comment

by:Vyyk_Drago
Comment Utility
Ack, I misclicked the accept button.  Please award the solution to Effe for posting a solution.

Thanks
Vyyk
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Article by: Kraeven
Introduction Remote Share is a simple remote sharing tool, enabling you to see, add and remove remote or local shares. The application is written in VB.NET targeting the .NET framework 2.0. The source code and the compiled programs have been in…
Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now