This question is locked. New answers and comments are not allowed.
I am unable to figure out how to minimize the ribbonview from code behind while handling an event for a radmenu.
private
async
void
MnuViewsOnItemClick(
object
sender, RadRoutedEventArgs radRoutedEventArgs)
{
var currentItem = radRoutedEventArgs.OriginalSource
as
RadMenuItem;
if
(currentItem !=
null
)
{
var viewMenuItem = currentItem.Header
as
ViewMenuItem;
if
(viewMenuItem ==
null
|| viewMenuItem.Id == 0)
{
return
;
}
// This does not minimize the ribbon.
lvRibbonView.IsMinimized =
true
;
LiveWireBusyIndicator.IsBusy =
true
;
_dataPointsOperation = await _context.Load(
_context.GetDataPointsQuery(_user.Id,
_user.UserRoleMappings.First().LiveWireRoleId,
_user.DefaultDataSet, viewMenuItem.Id,
true
)
).AsTask();
await InitializeDataPoints();
LiveWireBusyIndicator.IsBusy =
false
;
}
}