We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

RibbonWindow partial class in vb.net

Thread ID:





129315 Mar 11,2017 06:05 PM UTC Mar 14,2017 03:51 AM UTC WPF 3
Tags: Ribbon
John Hill
Asked On March 11, 2017 06:05 PM UTC

I am trying to create a new wpf application with the syncfusion controls.  I am trying to use the "Getting Started" instructions in the online documentation.  The XAML sample works great in creating the Ribbon Control, but I can not get the "Code Behind" to work.  

Add following namespace and inherit MainWindow from RibbonWindow in code be

Imports Syncfusion.Windows.Tools.Controls

Public class As partial 
This is the code for vb that is shown in the Online documentation for the "Getting Started" section for the Ribbon Control.  I am unable to get this code to work for me.  
The code I have in the "Code Behind" Window is this:
Imports Syncfusion.Windows.Tools.Controls
Namespace RibbonControl
    Partial Class RibbonWindow
        Inherits RibbonControl.MainWindow

        Private Sub RibbonWindow_Loaded(sender As Object, e As RoutedEventArgs) Handles Me.Loaded
            MsgBox("Made It")
        End Sub
    End Class
End Namespace

This builds and compiles with no error, but it never runs. The Loaded event does not run and therefore the MsgBox is not shown.

Are there any sample programs for vb that are available showing how to properly code a RibbonWindow?
Any help would be greatly appreciated.
Thank You!!

John Hill

Attachment: RibbonWindowCodeBehind_3227f22a.zip

Keerthana Jegannathan [Syncfusion]
Replied On March 13, 2017 10:19 AM UTC

Hi John,   
Thank you for contacting Syncfusion Support.   
We have created a simple VB sample for Ribbon based on your code in code behind and we can display the MessageBox when it has been loaded. We have prepared a simple VB sample to code with RibbonWindow for your reference and it can be downloaded from the below location.   
Sample: RibbonVB   
Also, we suspect that you are inheriting the RibbonWindow from your application instead of inheriting your application from RibbonWindow in code behind based on your code. Can you please check with the above sample and let us know if we have misunderstood your query?   
Keerthana J   

John Hill
Replied On March 14, 2017 02:44 AM UTC

Thank you so much Keerthana J.

Your help is greatly appreciated.  Your sample code was just what I needed. 

Thanks again,

John Hill

Keerthana Jegannathan [Syncfusion]
Replied On March 14, 2017 03:51 AM UTC

Hi John, 
Thanks for your update. 
Please let us know if you need further assistance on this. 
Keerthana J 


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon