I am having a problem with WPF text box , its not allowing record space when pressing space bar on key board

Sgcino Ngema 0 Reputation points
2024-04-15T13:52:54.78+00:00

When adding some text on text box in a wpf application its not arecording the space.

it's only allowing it if i type the text as one string and use the back keys to go back to to where i want to record the space.

Not sure what is the cause and solution to this

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,934 questions
Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,787 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Michael Taylor 55,051 Reputation points
    2024-04-15T15:09:08.33+00:00

    Please provide the steps needed to replicate your issue. It is unclear whether you're doing this as the end user, inserting data programmatically, getting data out of the control programmatically, etc. Please provide as much detail as possible.

    Also please identify what version of the framework you're using (NET 4.8, NET 8, etc) and if you're using anything that may interfere with the control such as third party controls. Also let us know if you have handlers or other code that may intercept the text box.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.