This question is locked. New answers and comments are not allowed.
alessandro
Top achievements
Rank 1
alessandro
asked on 17 Sep 2013, 09:31 PM
Hi,
I have a couple of simple questions about the TextTool in the RadImageEditor control (fantastic product indeed):
1. is it possible to set some default text? I mean, I'd like the user to see a sentence I provide at runtime based on some variables instead of "enter text here"
2. if the above is possible, any chances to make it read-only?
Thanks in advance!
Alessandro
4 Answers, 1 is accepted
0
alessandro
Top achievements
Rank 1
answered on 20 Sep 2013, 01:18 PM
I managed to get it working partially. Look at this code:
Dim
wb
As
WriteableBitmap = PictureDecoder.DecodeJpeg(yourPhotoStream)
Dim
tool =
CType
(
Me
.ImageEditor1.Tools(0), TextTool)
tool.TextWrapping = TextWrapping.Wrap
tool.FontSize = 24
tool.TextPosition =
New
Point(350, 10)
tool.FontFamily =
New
FontFamily(
"Times New Roman"
)
tool.Foreground =
New
SolidColorBrush(Colors.Red)
tool.Text =
"Your default text"
tool.IsSelected =
True
Me
.DataContext = wb
However, text wrapping and text position are not applied. Any help about this?
Thanks!
0
Hello Alessandro,
Thanks for writing and for your question and please excuse us for the delay with our answers.
Officially, modifying these properties is not supported and we cannot guarantee that you will get the desired behavior if you set them. They are normally handled internally by the control.
If you need this as an additional functionality you can submit a feature request and we will include this in our planning as we already do intend to upgrade RadImageEditor due to higher customer demand.
Regards,
Deyan
Telerik
Thanks for writing and for your question and please excuse us for the delay with our answers.
Officially, modifying these properties is not supported and we cannot guarantee that you will get the desired behavior if you set them. They are normally handled internally by the control.
If you need this as an additional functionality you can submit a feature request and we will include this in our planning as we already do intend to upgrade RadImageEditor due to higher customer demand.
Regards,
Deyan
Telerik
Have a suggestion or face a problem - you can use the Ideas & Feedback portal to submit ideas, feedback and vote for them.
0
alessandro
Top achievements
Rank 1
answered on 23 Sep 2013, 08:11 AM
Ok, thanks. I will submit a request. I think this is a very good control and getting some more granularity would be fun.
Last question: how about localization? I am building an app in my home language (Italian) and I would need to translate built-in text into Italian words.
Thanks in advance.
Alessandro
0
Hi Alessandro,
We have included the localization in our plans for the next official release of RadControls scheduled for mid-Ocotober.
If you have other questions, don't hesitate to write us back.
Regards,
Todor
Telerik
We have included the localization in our plans for the next official release of RadControls scheduled for mid-Ocotober.
If you have other questions, don't hesitate to write us back.
Regards,
Todor
Telerik
Have a suggestion or face a problem - you can use the Ideas & Feedback portal to submit ideas, feedback and vote for them.