-
-
Notifications
You must be signed in to change notification settings - Fork 524
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ribbon starts with no active tab selected #113
Comments
It works perfectly in the showcase application and in my own applications. |
Yes I can. Notice when running GUI.exe (or either doing F5 from within visual studio), Setting IsSelected="true" does not work either... Would appreciate if you can tell me what i'm doing wrong that cause this "bug"/"feature". Thanks. |
I have the same problem. No button icons show in the designer and when run no tab is selected unless I hover the mouse over a tab or resize the window etc |
This only happens when using the office 2010 theme.
with
|
same here |
This issue is related to state loading and the weird mechanism behind it. |
this is happening for me also in one app but not another, and using the 2013 theme does not impact it. still looking into differences between the one where it works and the one where it does not. |
so I realized that this was working properly when I navigated from
When I removed the
and showed my main view in the
then no tabs showed as open on startup. Moving that
|
My guess, without testing, is that the resources are not fully loaded when you create your window in the apps constructor resulting in some things not working as expected. |
I'm using Fluent version 3.4.0 on VS2012 & .NET framework 4.
I have ribbon with empty backstage (so far) & 3 tabs.
Even though the designer loads it's OK (shows "tab1"),
when the GUI runs, there is no active tab selected !
I've tried to set on XAML the "IsSelected" property on the first tab, but that did not solve it.
I've placed on the app.xaml.cs inside OnStartup() function a line that "toggles" this, by doing:
app.ribbonTab.SelectedTabIndex = 1;
app.ribbonTab.SelectedTabIndex = 0;
That seemed to solve it only to find out caused another deeper bug -
now eventhough the firts tab is selected, no event are fired at all, till I select different tab & re-select back the first tab.
The mainWindow xaml code looks as follows:
[CODE]
<Fluent:Ribbon x:Name="ribbonTab" Grid.Row="0" Grid.ColumnSpan="2" Height="143" SelectedTabIndex="0">
<Fluent:RibbonTabItem Header="tab1" IsSelected="True">
// ... trimmed for clearity of question
/Fluent:RibbonTabItem
<Fluent:RibbonTabItem Header="tab2">
// ... trimmed for clearity of question
/Fluent:RibbonTabItem
<Fluent:RibbonTabItem Header="tab3">
// ... trimmed for clearity of question
/Fluent:RibbonTabItem
/Fluent:Ribbon
[/CODE]
Any ideas ??
regards,
Idan
The text was updated successfully, but these errors were encountered: