Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6924087
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T10:37:06+00:00 2026-05-27T10:37:06+00:00

I have this code: <ScrollViewer x:Name=textScroller Grid.Row=2> <Grid x:Name=ContentPanel Margin=12,0,12,0 DataContext={Binding}> <Image x:Name=ImageUrl Source={Binding

  • 0

I have this code:

<ScrollViewer x:Name="textScroller" Grid.Row="2">
        <Grid x:Name="ContentPanel" Margin="12,0,12,0" DataContext="{Binding}">
        <Image x:Name="ImageUrl" Source="{Binding ImageUrl}" Height="198" Width="150" Margin="10 10 10 10" FlowDirection="RightToLeft" HorizontalAlignment="Left" VerticalAlignment="Top"  />
        <TextBlock x:Name="Content" Text="{Binding Content}" TextWrapping="Wrap" Style="{StaticResource PhoneTextNormalStyle}" Margin="0,41,24,-41" LineStackingStrategy="BlockLineHeight"  MaxWidth="478"  />
        </Grid>
</ScrollViewer>

Image in this code is background of that textblock but I want that text wrap around the imgae. Is it posible? I found this similar question and there is answer it isn´t posible just with image and textblock. Is it right? I really can´t set some attribute in image that set that text can´t be on image? How should I change my code?
Thanks

Edit: Now this is what my page looks like:

image is background

I want that text should be on the right side of the image and the below of the image.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T10:37:07+00:00Added an answer on May 27, 2026 at 10:37 am

    It is a duplicate of WP7 wrap text around image and Silverlight text around an image, though these questions did not come up with accepted answers yet either. There is no such option in Silverlight to do automatic wrapping of text around images. You can use a WebBrowser component or use multiple TextBlocks by measuring the size of the text while adding words to the TextBlocks in memory and checking when to stop and switch to another TextBlock. I recommend reading an article on font metrics for that too – MSDN – UI Frontiers: Font Metrics in Silverlight, Charles Petzold.

    EDIT: Hard-coded sample:

    You can use the below code to do what you ask in a hard-coded fashion. Perhaps you could write some code that would make it work as a control – automatically splitting the text by detecting the height of the nested TextBlock that is next to the Rectangle (or Image).

    <RichTextBox
        VerticalAlignment="Top"
        >
        <Paragraph
            TextAlignment="Left">
            <InlineUIContainer>
                <InlineUIContainer.Child>
                    <Rectangle
                        Width="50"
                        Height="50"
                        Fill="Red" />
                </InlineUIContainer.Child>
            </InlineUIContainer>
            <InlineUIContainer>
                <Border>
                    <TextBlock
                        Padding="0"
                        Width="370"
                        Margin="0,0,0,-5"
                        TextWrapping="Wrap"
                        Text="First part of text that fits to the right of the image before the other part wraps to">
                    </TextBlock>
                </Border>
            </InlineUIContainer>
            <Run
                Text="the next line. This part of the text is already below the image." />
        </Paragraph>
    </RichTextBox>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Here is the code I have : <ScrollViewer Grid.Row=2 CanContentScroll=True> <DockPanel> <TreeView x:Name=tView DockPanel.Dock=Top
I have this code: <ComboBox Width=100 ItemsSource={Binding FontList} x:Name=fontComboFast> <ComboBox.ItemsPanel> <ItemsPanelTemplate> <VirtualizingStackPanel /> </ItemsPanelTemplate>
I have this code while($row = mysql_fetch_row($result)) { echo '<tr>'; $pk = $row[0]['ARTICLE_NO']; foreach($row
I have no idea why this code works fine: <ScrollViewer Height=674 HorizontalAlignment=Left VerticalAlignment=Top Width=480
I have horizontal ListBox. Here is code for it (removed some irrelevant): <ListBox Grid.Row=1
I wont to move UIElements in ScrollViewer. I have somthink like this: <ScrollViewer x:Name=scroll>
I have a Grid with a ScrollViewer around it: <ScrollViewer> <Grid x:Name=MainGrid> <Grid.ColumnDefinitions> <ColumnDefinition
I have this code in jQuery, that I want to reimplement with the prototype
I have this code: chars = #some list try: indx = chars.index(chars) except ValueError:
I have this code that performs an ajax call and loads the results into

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.