create dynamic textblocks that can be moved resized and colour and font changed

I am new to wpf and xaml and I want to create a number of text blocks to represent a word,
the letter will be stored in text blocks, I need to move them around and change size and font.
I need some advice on how best this can be carried out, I have looked at tumb, Ink Canvas, Adorners, could you give me some advice.
jdavey3Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Bob LearnedCommented:
Are you talking about something like a RichTextBox control?

Bob
0
jdavey3Author Commented:
No not RichTextBox because I need to select a number of word objects and move them in chunks and increase the size of them, rather the selecting them with the cursor i need to rubber band around the words to be modified
0
Bob LearnedCommented:
That is an interesting requirement.  Do you have something, like a drawing, that could show what you mean?

Bob
0
PMI ACP® Project Management

Prepare for the PMI Agile Certified Practitioner (PMI-ACP)® exam, which formally recognizes your knowledge of agile principles and your skill with agile techniques.

jdavey3Author Commented:

I want to take a word and chunk it into parts of one letter or many letter along a horzontal line, draw box around part of word to be chunkes and hi-light it and select these objects and them change the colour or font or size.
I have attached a type of screen navigation.  I need the letters to be movable and selectable as one or more and once selected then can be changed, just like a richtextbox, except that it the user just draws box around letter needed to be changed instead of mouse point and select.
I have tired tumb object and they move shapes, and ink canvas can move shapes around the screen but not sure if they do the above, see example of the hit text for the ink canvas which looked like what i am looking for.
Layout2.doc
0
jdavey3Author Commented:
Is this question on hold ?
0
Bob LearnedCommented:
1) I didn't get notification of your post

2) This looks like a good case for multiple RichTextBox controls within a grid layout.

Bob
0
jdavey3Author Commented:
How will I move the individual RichTextBox in order to chunk and then select the chunk of example three RichTextBoxs and change them.
0
Bob LearnedCommented:
1) I was wrong about the RichTextBox controls.

2) I don't have anything that can demonstrate the process of TextBlock and resizable text.

3) I am still learning WPF, and it is a fairly good learning curve.

Bob
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
jdavey3Author Commented:
Curently I am using Ink Canvas which contains rectanges with embedded text, not sure how the dymanic
fit of the letters of word will fit into each textblock, as I will need to display variable number depending on number of words.

Any ideas on the below

<Window
	
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	x:Class="movesquares3.Window1"
	x:Name="Window"
	Title="InkCanvas"
	ResizeMode="NoResize"
	Width="640" Height="200">
	<Window.Resources>
 
    <Style TargetType="Rectangle">
 
      <Setter Property="Width" Value="50"/>
 
      <Setter Property="Height" Value="100"/>
 
    </Style>
 
  </Window.Resources>
 
 
 
	<Grid>    
 
    <InkCanvas x:Name="inkCanvas" EditingMode="Select"
 
               Background="LightGoldenrodYellow"
 
               SelectionChanging="OnSelectionChanging">
 
      
 
      <!-- InkCanvas' Child Elements -->
 
    <!--  <Rectangle InkCanvas.Left="20" InkCanvas.Top="20" Fill="Blue"/>
 
      <Rectangle InkCanvas.Right="80" InkCanvas.Bottom="30" Fill="Green"/>
 
      <Rectangle Margin="50,150,20,20"  Fill="Orange"/> -->
 
      <Rectangle>
                <Rectangle.Fill>
                    <VisualBrush>
                        <VisualBrush.Visual>
                            <StackPanel>
                                <TextBlock HorizontalAlignment="Left" Margin="-45,-52,0,0" x:Name="txtb1" VerticalAlignment="Top" Width="42" Height="35" Text="I" TextWrapping="Wrap"/>
                            </StackPanel>
                        </VisualBrush.Visual>
                    </VisualBrush>          
                </Rectangle.Fill>
                <Rectangle.RenderTransform>
                 <TranslateTransform X="30" Y="30"/>
               </Rectangle.RenderTransform>
 
      </Rectangle>
	  
	  <Rectangle>
                <Rectangle.Fill>
                    <VisualBrush>
                        <VisualBrush.Visual>
                            <StackPanel>
                                <TextBlock HorizontalAlignment="Left" Margin="-45,-52,0,0" x:Name="txtb2" VerticalAlignment="Top" Width="42" Height="35" Text="I" TextWrapping="Wrap"/>
                            </StackPanel>
                        </VisualBrush.Visual>
                    </VisualBrush>          
                </Rectangle.Fill>
                <Rectangle.RenderTransform>
                 <TranslateTransform X="30" Y="30"/>
               </Rectangle.RenderTransform>
 
      </Rectangle>
	  
	  <Rectangle>
                <Rectangle.Fill>
                    <VisualBrush>
                        <VisualBrush.Visual>
                            <StackPanel>
                                <TextBlock HorizontalAlignment="Left" Margin="-45,-52,0,0" x:Name="txtb3" VerticalAlignment="Top" Width="42" Height="35" Text="I" TextWrapping="Wrap"/>
                            </StackPanel>
                        </VisualBrush.Visual>
                    </VisualBrush>          
                </Rectangle.Fill>
                <Rectangle.RenderTransform>
                 <TranslateTransform X="30" Y="30"/>
               </Rectangle.RenderTransform>
 
      </Rectangle>
 
    	<!-- <TextBlock OpacityMask="#FFBF8F8F" RenderTransformOrigin="0.492,0.578" x:Name="Txtb1" Width="59" Height="64" Background="#FFE7DBDB" Foreground="#FF614747" Text="Cat" TextWrapping="Wrap"/>
    	<Rectangle Fill="#FFFFFFFF" Stroke="#FF000000" RadiusX="10" RadiusY="20" Margin="0,0,10,20" OverridesDefaultStyle="False" Width="83" Height="45"/>  -->
 
      
 
    </InkCanvas>
        <TextBox Height="37" Margin="252,67,270,0" Name="word" VerticalAlignment="Top" Tag="Word" Width="Auto">Cat</TextBox>
    </Grid>
 
 
</Window>

Open in new window

0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
.NET Programming

From novice to tech pro — start learning today.