Wpf TextBox Stroke and Stroke Thickness

Agata Czupryn 1 Reputation point
2020-04-03T06:40:09.143+00:00

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 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,681 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Alex Li-MSFT 1,096 Reputation points
    2020-04-06T01:23:49.84+00:00

    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.

    0 comments No comments