Solved

How do I update a RibbonComboBox in a WPF Application?

Posted on 2011-09-20
5
1,573 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
ID: 36571784
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
ID: 36574374
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
ID: 36574709
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
ID: 36574710
Ack, I misclicked the accept button.  Please award the solution to Effe for posting a solution.

Thanks
Vyyk
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Need to grow your business through quality cloud solutions? With everything required to build a cloud platform and solution, you may feel like the distance between you and the cloud is quite long. Help is here. Spend some time learning about the Con…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

943 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

10 Experts available now in Live!

Get 1:1 Help Now