Completed
Last Updated: 17 Dec 2018 17:10 by Dimitar
ADMIN
Dimitar
Created on: 11 Dec 2018 08:52
Category: RibbonBar
Type: Bug Report
0
FIX. RadRibbonBar - exception when using German keyboard
To reproduce:
Open a form with a ribbon, focus the tabs and press 1 with the screen keyboard (German language). 

Workaround:
class MyRibbon : RadRibbonBar
{
    protected override ComponentInputBehavior CreateBehavior()
    {
   
        return new MyComponentBehavior(this);
    }
    public override string ThemeClassName
    {
        get { return typeof(RadRibbonBar).FullName; }
    }
}
class MyComponentBehavior : RibbonBarInputBehavior
{
    public MyComponentBehavior(RadRibbonBar owner) : base(owner)
    {

    }
    protected override string GetKeyStringRepresentation(Keys input)
    {
        uint nonVirtualKey = NativeMethods.MapVirtualKey((uint)input, 2);

        if (nonVirtualKey > char.MaxValue)
        {
            return null;
        }

        return base.GetKeyStringRepresentation(input);
    }
}



(Total attached files size should be smaller than 20mb. Allowed extensions: .zip, .rar, .jpg, .png, .gif)
0 comments