This is a migrated thread and some comments may be shown as answers.

RadRibbonView Can't minimize

2 Answers 37 Views
RibbonView and RibbonWindow
This is a migrated thread and some comments may be shown as answers.
Steele
Top achievements
Rank 1
Steele asked on 10 Oct 2012, 05:28 PM
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;
            }
        }
 

2 Answers, 1 is accepted

Sort by
0
Steele
Top achievements
Rank 1
answered on 11 Oct 2012, 09:32 PM
I was able to achieve the desired result by using this code. Weird.

lvRibbonView.IsMinimized = false;
lvRibbonView.IsMinimized = true;
0
Miro Miroslavov
Telerik team
answered on 15 Oct 2012, 10:12 AM
Hello Steele,

 That code is really weird and we are not sure what is causing the problem. Can you send us example project that demonstrates it?
Thank you for your cooperation. 

All the best,
Miro Miroslavov
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
RibbonView and RibbonWindow
Asked by
Steele
Top achievements
Rank 1
Answers by
Steele
Top achievements
Rank 1
Miro Miroslavov
Telerik team
Share this question
or