Click here to Skip to main content
15,884,628 members

Windows Ribbon for WinForms - combobox preview event in minitoolbar.

SuperMiQi asked:

Open original thread
Hello,

I am using the Microsoft Ribbon Control but I got only one thing which does not work:

Image: Mini Toolbar - Ribbon
If I use the xml definition into a main ribbon I can get the PreviewEvent correctly from a combobox with GalleryItemPropertySet items.

From the minitoolbar, the preview event is not fired and I cannot apply the changes on the fly.

HTML
<Application.Views>
  <ContextPopup>
    <ContextPopup.MiniToolbars>
      <MiniToolbar Name="MiniToolbar">
        <MenuGroup>
          <ComboBox CommandName="cmbFunctionTypes" IsAutoCompleteEnabled="false" IsEditable="false"/>
            <ComboBox CommandName="cmbResponseChannels" IsAutoCompleteEnabled="true" IsEditable="false"  ResizeType="NoResize"/>
            <ComboBox CommandName="cmbReferenceChannels" IsAutoCompleteEnabled="true" IsEditable="false" ResizeType="NoResize" />
        </MenuGroup>
        </MiniToolbar>
      </ContextPopup.MiniToolbars>
      <ContextPopup.ContextMaps>
        <ContextMap CommandName="cmdContextMap" ContextMenu="ContextMenu" MiniToolbar="MiniToolbar" />
      </ContextPopup.ContextMaps>
    </ContextPopup>
    <Ribbon>
    </Ribbon>
</Application.Views>


I was hoping to get the control handle directly but the context pane has a strange class name:NUIPane, NUIHWND.

What could you recommand me to solve that issue ?
This is really stranged maybe do I need to speficy something in the xml ribbon designer.

Thank you very much in advance.


Best regards.
MiQi.
Tags: C# (C# 4.0), .NET (.NET4), Windows, Windows 7, Microsoft Office, Ribbon

Plain Text
ASM
ASP
ASP.NET
BASIC
BAT
C#
C++
COBOL
CoffeeScript
CSS
Dart
dbase
F#
FORTRAN
HTML
Java
Javascript
Kotlin
Lua
MIDL
MSIL
ObjectiveC
Pascal
PERL
PHP
PowerShell
Python
Razor
Ruby
Scala
Shell
SLN
SQL
Swift
T4
Terminal
TypeScript
VB
VBScript
XML
YAML

Preview



When answering a question please:
  1. Read the question carefully.
  2. Understand that English isn't everyone's first language so be lenient of bad spelling and grammar.
  3. If a question is poorly phrased then either ask for clarification, ignore it, or edit the question and fix the problem. Insults are not welcome.
  4. Don't tell someone to read the manual. Chances are they have and don't get it. Provide an answer or move on to the next question.
Let's work to help developers, not make them feel stupid.
Please note that all posts will be submitted under the http://www.codeproject.com/info/cpol10.aspx.



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900