question

AgataCzupryn-1186 avatar image
0 Votes"
AgataCzupryn-1186 asked ·

Wpf TextBox Stroke and Stroke Thickness

How can I use Stroke and Stroke Thickness style options for text in TextBox?
Or is there other editable control that has it?
Cause I have OutlinedTextBlock with this options and I want editing to look the same.

windows-wpf
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

AlexLi-MSFT avatar image
0 Votes"
AlexLi-MSFT answered ·

Hi,

Welcome to our Microsoft Q&A platform!

TextBox doesn't have these two properties,but you can customize a class that inherits FrameworkElement,see the following link:

apply-stroke-to-a-textblock-in-wpf



Thanks.

· Share
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.