Recommended approach – exe will perform automatic configuration
Please find the patch setup here:
Advanced approach – use only if you have specific needs and can directly replace existing assemblies for your build environment Please find the patch assemblies alone from:
Please find the NuGet’s from the below location:
|
Hi,
I noticed something wrong: when I enter edit mode via pressing Shift + any character, the letter isn't a capital letter. I need a workarround to fix this issue.
For your information, I am using the version 19.2.0.44.
Regards,
treeGridComponents.CellRenderers.Remove("TextBox");
treeGridComponents.CellRenderers.Add("TextBox", new TreeGridCellTextBoxRendererExt());
public class TreeGridCellTextBoxRendererExt : TreeGridCellTextBoxRenderer
{
protected override void OnPreviewTextInput(KeyRoutedEventArgs e)
{
if (e == null) return;
base.OnPreviewTextInput(e);
if (e.Key >= VirtualKey.Number0 && e.Key <= VirtualKey.Number9)
PreviewInputText = (e.Key - VirtualKey.Number0).ToString();
else if (e.Key >= VirtualKey.NumberPad0 && e.Key <= VirtualKey.NumberPad9)
PreviewInputText = (e.Key - VirtualKey.NumberPad0).ToString();
else if ((e.Key >= VirtualKey.A && e.Key <= VirtualKey.Z))
{
var capsLockKeyState = Window.Current.CoreWindow.GetKeyState(VirtualKey.CapitalLock);
var shiftKeyState = Window.Current.CoreWindow.GetKeyState(VirtualKey.Shift);
if ((capsLockKeyState & CoreVirtualKeyStates.Locked) != 0 || (shiftKeyState & CoreVirtualKeyStates.Down) != 0)
PreviewInputText = e.Key.ToString();
else
PreviewInputText = char.ToLower((char)e.Key).ToString();
}
}
} |
Hi Vijayarasan Sivanandham,
That's what I needed, thank you!
Regards,