Aliakbar
Topic Author
Posts: 5
Joined: 21 Feb 2023, 21:01

RichText in TextBox

21 Feb 2023, 21:03

Hi guys, Is it possible to have a text box that supports Rich Text using Noesis?
 
User avatar
maherne
Site Admin
Posts: 53
Joined: 01 Jul 2022, 10:10

Re: RichText in TextBox

22 Feb 2023, 22:03

Hi Aliakbar,

In version 3.1.6 we added the RichText.Text attached property, which adds support for BBCode to TextBlocks.
 
Aliakbar
Topic Author
Posts: 5
Joined: 21 Feb 2023, 21:01

Re: RichText in TextBox

23 Feb 2023, 09:50

But does it work in Text Box? (I want to write a text editor in which user can write text and use a button to bold/italic selected text area)
 
User avatar
jsantos
Site Admin
Posts: 4829
Joined: 20 Jan 2012, 17:18
Contact:

Re: RichText in TextBox

23 Feb 2023, 12:26

Unfortunately it doesn't. RichTextBox is not implemented. Please create a ticket about it, although this is going to be low-priority.
 
Aliakbar
Topic Author
Posts: 5
Joined: 21 Feb 2023, 21:01

Re: RichText in TextBox

23 Feb 2023, 19:36

how can I use RichText.Text in the text block in Unity? when I want to use it, it says not found
 
Aliakbar
Topic Author
Posts: 5
Joined: 21 Feb 2023, 21:01

Re: RichText in TextBox

23 Feb 2023, 19:38

and where can I add a ticket?
 
User avatar
maherne
Site Admin
Posts: 53
Joined: 01 Jul 2022, 10:10

Re: RichText in TextBox

24 Feb 2023, 08:58

Please post the ticket to our bugtracker: https://www.noesisengine.com/bugs/my_view_page.php

RichText is in the NoesisGUIExtensions namespace, to access it you need to use that (see the "local" namespace in the example below) .
<Grid
  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  xmlns:noesis="clr-namespace:NoesisGUIExtensions;assembly=Noesis.GUI.Extensions">
  <TextBlock noesis:RichText.Text="Plain. [b]Bold, [i]bold italic, [/i]" />
</Grid>
Our Localization sample shows RichText in use: https://github.com/Noesis/Tutorials/tre ... calization
 
Aliakbar
Topic Author
Posts: 5
Joined: 21 Feb 2023, 21:01

Re: RichText in TextBox

24 Feb 2023, 22:01

I cannot open the blend project of Localization sample, it says .Net framework 4.5 targeting pack is needed, but I can't find it anywhere online. and on my own project when I want to use RichText property, it says not found, even though I already added the namespace (somehow it doesn't detect the namespace)
 
User avatar
maherne
Site Admin
Posts: 53
Joined: 01 Jul 2022, 10:10

Re: RichText in TextBox

01 Mar 2023, 11:02

Our samples do not currently support Visual Studio 2022, as .Net Framework 4.5 has been flagged as Out of support.

We have fixed this issue in our upcoming 3.2 beta5 release, which will be out this week. NoesisGUI 3.2 (final) will be released later this month.

Who is online

Users browsing this forum: No registered users and 3 guests