Wednesday, June 24, 2009 10:26 PMIs there a way to set the default tab size for the TextBox - when AcceptsTab="True"?
The default appears to be 7, or maybe 8 spaces and I'd like to set this to 4.
Previously in Windows Forms you needed to use a User32.dll import to send a message to the control changing the tab spacing.
How can this be done in WPF?
Thanks in advance...
Thursday, June 25, 2009 4:25 PMUnfortunately this is not supported. If you don't mind tabs getting replaced by actual spaces, you could use this workaround: http://social.msdn.microsoft.com/forums/en-US/wpf/thread/0d267009-5480-4314-8929-d4f8d8687cfd/
Thursday, June 25, 2009 4:28 PMThanks for the reply.
The solution presented in the link you've included is exactly what I've done in this case - since spaces are ok.