Skip to main content

c# to vc

  • October 19, 2016
  • 1 reply
  • 0 views

Hi!

hat is this C# Code in VC?

RibbonMenuItem rmi = sender as RibbonMenuItem;

RibbonButton rb = rmi.DataContext as RibbonButton;

if (rb != null && !rb.IsEnabled)

rmi.IsHitTestVisible = false;

Beste Regards

Bernd

1 reply

Hi!

hat is this C# Code in VC?

RibbonMenuItem rmi = sender as RibbonMenuItem;

RibbonButton rb = rmi.DataContext as RibbonButton;

if (rb != null && !rb.IsEnabled)

rmi.IsHitTestVisible = false;

Beste Regards

Bernd

I got it ...