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.
Unfortunately, activation email could not send to your email. Please try again.

RibbonWindow partial class in vb.net

Thread ID:

Created:

Updated:

Platform:

Replies:

129315 Mar 11,2017 01:05 PM Mar 13,2017 11:51 PM WPF 3
loading
Tags: Ribbon
John Hill
Asked On March 11, 2017 01:05 PM

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 06:19 AM

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?   
   
Regards,   
Keerthana J   


John Hill
Replied On March 13, 2017 10:44 PM

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 13, 2017 11:51 PM

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


CONFIRMATION

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.

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.

;