Skip to content
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

KeyTip.Keys Position #572

Closed
langeth opened this issue May 23, 2018 · 4 comments
Closed

KeyTip.Keys Position #572

langeth opened this issue May 23, 2018 · 4 comments
Assignees
Labels
Milestone

Comments

@langeth
Copy link

langeth commented May 23, 2018

image

KeyTips are set from A to C
example: Fluent:KeyTip.Keys="A"

The KeyTip.Keys are not shown correctly. I updated from fluent 5 to 6.1.0.233
With fluent 5 this was ok.

But the function (Press B or C ) will work.

Environment

  • Fluent.Ribbon v6.1.0.233
  • Windows 10
  • .NET Framework 4.7
@batzen batzen self-assigned this May 23, 2018
@batzen batzen added this to the 7.0.0 milestone May 23, 2018
@batzen
Copy link
Member

batzen commented May 23, 2018

It's much worse than this one issue. Working on it.
Can't image why i didn't notice this bug...

@batzen
Copy link
Member

batzen commented May 23, 2018

@langeth But i can't reproduce your exact issue.
Could you create a small repro for your issue?

@langeth
Copy link
Author

langeth commented May 24, 2018

The problem is at the fluent.DropDownButton. See the sample below.



x:Class="WpfFluentTest.MainWindow"
       xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
       xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
       xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
       xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
       xmlns:local="clr-namespace:WpfFluentTest"
       xmlns:fluent="urn:fluent-ribbon"
       mc:Ignorable="d"
       Title="MainWindow" Height="450" Width="800">
   <fluent:RibbonWindow.Resources>


       <ResourceDictionary>
           <ResourceDictionary.MergedDictionaries>
               <ResourceDictionary Source="pack://application:,,,/Fluent;Component/Themes/Generic.xaml" />
           </ResourceDictionary.MergedDictionaries>
       </ResourceDictionary>
   </fluent:RibbonWindow.Resources>

       <DockPanel>
           <DockPanel.LayoutTransform>
               <ScaleTransform x:Name="ScaleTransform"
                               ScaleX="1"
                               ScaleY="1" />
           </DockPanel.LayoutTransform>
       <fluent:Ribbon  CanCustomizeQuickAccessToolBar="True"
                       CanCustomizeQuickAccessToolBarItems="True"
                       CanCustomizeRibbon="False"
                       FontSize="12" 
                       DockPanel.Dock="Top" 
                       CanMinimize="False" CanQuickAccessLocationChanging="False">
               <fluent:RibbonTabItem fluent:KeyTip.Keys="1"
                                     Header="Test">
                   <fluent:RibbonGroupBox Header="Tests">
                       <fluent:Button Header="Test1"
                               Size="Middle"
                               fluent:KeyTip.Keys="A">
                           <fluent:Button.ToolTip>
                               <fluent:ScreenTip Title="Test1"
                                                 Text="Test1" />
                           </fluent:Button.ToolTip>
                   </fluent:Button>
                       <fluent:Button Header="Test2"
                                      Size="Middle"
                                      fluent:KeyTip.Keys="B"/>
                       <fluent:DropDownButton fluent:KeyTip.Keys="C"
                                              Header="Test3"
                                              Size="Middle">
                       <fluent:Button Header="Test4"
                                      Size="Middle"
                                      fluent:KeyTip.Keys="A"/>
                       <fluent:Button Header="Test5"
                                          Size="Middle"
                                          fluent:KeyTip.Keys="B"/>
                   </fluent:DropDownButton>
               </fluent:RibbonGroupBox>
               </fluent:RibbonTabItem>
           </fluent:Ribbon>
</DockPanel>
</fluent:RibbonWindow>

@batzen
Copy link
Member

batzen commented May 24, 2018

Thanks. Will have a look later.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants