Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
425
How to add TextBox to VerticalRibbonToolContainer
posted

I am trying to add a textbox to the XamRibbon group. I am using 10.3 version. Following is the xaml where the textbox needs to reside.

 

<ig:XamRibbon>
	<ig:XamRibbon.Tabs>
		<ig:XamRibbonTabItem>
                        <ig:XamRibbonGroup Caption="Search">
                            <ig:VerticalRibbonToolContainer>
                                <ig:CheckBoxTool Caption="Enabled"/>
                                <TextBox/>
                            </ig:VerticalRibbonToolContainer>							
                        </ig:XamRibbonGroup>
                </ig:XamRibbonTabItem>
	</ig:XamRibbon.Tabs>
</ig:XamRibbon>

 

Parents
No Data
Reply
  • 6475
    posted

    Hi,

    Due to certain limitations of Silverlight, the ribbon tools are not controls. Instead, each tool generates a control to display when necessary. For example, you might want to add a tool to a ribbon group, and display the same tool in the Quick Access Toolbar. In this case the tool will generate and display two controls - one in the group, and one in the QAT.

    So, in order to display a TextBox in the ribbon, you'll have to create a custom ribbon tool for that purpose. The following thread shows exactly how to do that and you can find attached sample with ComboBoxTool:

    http://community.infragistics.com/forums/p/48137/264889.aspx#264889

     Using the same approach you can easily implement a TextBoxTool.

     

    Hope this helps,

Children
No Data