Embedded Controls (like image) in TextBox Control?

Editors for WPF Forum

Posted 3 years ago by eric
Version: 16.1.0635
Avatar

Hi,

i would like to know if there is a way to embed controls (like an image) inside the TextBox control.

I seen such example for the DateTimePicker but it doesn't work for the textbox.

 

Thanks,

Comments (3)

Posted 3 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hi Eric,

While you can add part items that could contain an image to an edit box control (look at the "PartEditBox Item Placement" QuickStart), our custom TextBox control doesn't support it.  What specific usage scenario were you looking to accomplish here?


Actipro Software Support

Posted 3 years ago by eric
Avatar
Posted 3 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hi Eric,

You could always change the border thickness to zero and do something like this XAML hierarchy:

Border
 StackPanel (horizontal)
  TextBox (BorderThickness=0)
  Image


Actipro Software Support

The latest build of this product (v2019.1 build 0683) was released 1 month ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.