Quantcast
Channel: Ribbon for WPF - Recent Posts
Viewing all 1458 articles
Browse latest View live

Re: How to remove menu items in ribbon's contextmenu?

$
0
0

Hello, please see the "Customizing Context Menus" topic in the documentation that comes with Ribbon. That should help you out.


Ribbon out of the main window

$
0
0

if you minimum the ribbon, then move application to left (part of it out of the screen), then click one of the ribbon tab. the ribbon button panel will showing, but it will out of the main window.

Re: Ribbon out of the main window

$
0
0

WPF pushes popups back on screen when they would be offscreen, which is what you see here.  It's not necessarily a bad thing in this case though because then you can still access all the tab content.

Open Application Menu programmatically

$
0
0

The ribbon's application menu is displayed by clicking the large button in the upper left hand side of the ribbon. 

Question: how could we open it programmatically? I have tried to set IsApplicationMenuOpen = true; However, what I get is the Application Menu under our Main View. How can we solve this?

Question: How could we specify a tab in application menu to be opened when the application menu get opened?

 

Many thanks,

Re: Open Application Menu programmatically

$
0
0

Hello,

Setting that property to true is the right thing to do.  It's effectively what clicking the app button does.  If you can't figure it out, then make a new simple sample project (as minimal as possible) that shows it happening and email that to our support address.  Reference this post in your email and rename the .zip file extension so it doesn't get spam blocked.  We'll take a look at that.

If you look at our BackstageIntro QuickStart codebehind, you can see where we set the initial tab in response to an app menu open notification event.

Re: Open Application Menu programmatically

How to set an image on Ribbon bar.

$
0
0

Hi i have a logo for my app. I would like that logo/Image to display on rightside of Ribbon Tab.(ie: when clicked on tabs that image should be on to the right).Tried different ways ...No use. Any Suggestion ?

 Also for testing purpose i used Background property for ribbon:Tab and also ribbon:Grop but my changes are not reflecting..(ie: Eventhough i set the color of the background, it is not showing..).

How to switch the Tabs when clicked on ribbon:Button present in one Tab.

$
0
0

Hi,

    When clicked on ribbon:Button present under ribbobn:Group which is under one ribbon:Tab, the Tab has to switch to another Tab, How to acheive this functionality ?


How to switch other tabs when click the back button in backstage page?

$
0
0

Hi,

    Ribbon's backstage page has a button (circle with arrow) at top left, when I click it, it switch to the MainView tab, Now I want to switch to another tab that I have created. But I could not get the button to set its MouseDownEvent, is there way to achieve this?

Re: How to set an image on Ribbon bar.

$
0
0

Hello,

Do you mean that you want to add something in the Ribbon.TabPanelItems collection, like we have our Help button on the right side of the tab area in the demo?

Sorry but Ribbon is designed to render similar to Office and support contextual tab group backgrounds etc.  I believe the Tab.Background is ignored in our default templates.  The only way to change that would be to alter our default templates, but I'm not sure that changing the tab background would look very good, so I'd lean against that.

Re: How to set an image on Ribbon bar.

$
0
0

Hi,

      When tabs are selected we can see the buttons in the ribbon group below, My application logo needs to be placed on to the right corner of that Bar where we can loads our Groups and Buttons. So when every tab gets selected that image should be visible to the right corner.

Tried placing Stackpanel under ribbon:Tabs.... but stackpanel option is not available.

<ribbon:Tab>

<StackPanel orientation:Horizontal>

<ribbon:Group/>

<Image/>

</StackPanel>

</ribbon:Tab>

Re: How to switch the Tabs when clicked on ribbon:Button present in one Tab.

$
0
0

Hello,

In your button's command/click handler, you can set Ribbon.SelectedTab to another ribbon:Tab instance from your Ribbon.Tabs collection.

Re: How to switch other tabs when click the back button in backstage page?

$
0
0

Hello,

The Ribbon.IsApplicationMenuOpenChanged event will fire when the Backstage opens or closes.  You can look at Ribbon.IsApplicationMenuOpen to see if it's open or closed at the time of the event.  If closed, you can set Ribbon.SelectedTab to another ribbon:Tab instance from your Ribbon.Tabs collection.

Re: How to set an image on Ribbon bar.

$
0
0

Oh sorry but putting content on the right side of the tab's content area isn't available since the entire tab area is used for ribbon:Group display and handling their variants.  You might be able to do it if you retemplate Ribbon.  But I would rather suggest you put it in the TabPanelItems instead, which renders on the far right side of the tabs themselves.

SplitButton does not reduce ImageSourceLarge Opacity on IsEnabled=false

$
0
0

The subject says it all.  The label color changes, but the image stays at full opacity.  This is probably just a bug in the default SplitButton Style.  I can repro this in the Ribbon sample.


Re: How to switch the Tabs when clicked on ribbon:Button present in one Tab.

Re: How to switch other tabs when click the back button in backstage page?

$
0
0

Thanks for your reply. But there is some difference with my situation: Now I have created a start view(one xaml file).When application begin to run , the start view shows , I click start view's buttonA to show the ribbion, then I click the back button (circle with arrow), From the Ribbon.IsApplicationMenuOpenChanged event , It now switch to Start View.But when I click start view's buttonA again to show the ribbon, then the back button is overlapped by ribbon's Tab. Can you give me some advice if you can understand my description?

Re: How to remove menu items in ribbon's contextmenu?

Different icons for window titlebar and taskbar

Re: SplitButton does not reduce ImageSourceLarge Opacity on IsEnabled=false

$
0
0

Hi Scott,

Thanks for letting us know.  We'll fix it for the next maintenance release.

Viewing all 1458 articles
Browse latest View live