Hi All,
I have Ribbon Buttons click, on click of one ribbon button a page is shown with toggle button. When I click on this toggle button one Popup gets displayed. Similarly I want for other ribbon button click this toggle button should be enable and Popup must also be PopUp.Isopen = false; or PopUp.Visibility = Visibility.Hidden; ToggleButton.IsEnabled = false;
when I'm debugging my code I can check that the above functionality is working but I'm able to view the changes in the Word Document.
Below is my code.
public void GetCtrlvalue(string ctrl)
{
if (ctrl == "menu")
{
ToggleButton.IsEnabled = true;
Popup.Visibility = Visibility.Visible;
Popup.IsOpen = true;
}
else if (ctrl != "menu")
{
ToggleButton.Visibility = System.Windows.Visibility.Hidden;
ToggleButton.IsEnabled = false;
Popup.Visibility = Visibility.Collapsed;
Popup.IsOpen = false;
}
ToggleButton.InvalidateVisual();
this.InvalidateVisual();
}