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

  • Home
  • SEARCH
  • 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 7743463
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T09:32:30+00:00 2026-06-01T09:32:30+00:00

I have a Message.xaml file that should display a recipient field and a message

  • 0

I have a Message.xaml file that should display a recipient field and a message field like this:

enter image description here

The user can add multiple recipients, so the TextBox should be flexible in height. I managed this with following code:

<TextBox FontSize="24" Margin="0,0,80,532" Name="absenderField" 
          AcceptsReturn="True" TextWrapping="Wrap" Height="auto"
          MinHeight="30" MaxWidth="375">
</TextBox>

Now the recipient field is growing in height when text is added that does not fit into it. The other TextBox is for the message. The markup is the same as for the recipient field, just the height is different.

The first problem is, that when the recipient field growes it goes over the message field but the message field should be aligned at the bottom of the recipient field and move down. how can I achieve that?

Now the other problem. When I enter a lot of text to make the message field grow, the recipient field will grow too. This is very strange. Why does this happen?

Is it possible to make the text scroll inside the text box?

Whole xaml: http://pastebin.com/xPg7rV9e

  • 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-06-01T09:32:31+00:00Added an answer on June 1, 2026 at 9:32 am

    I think you should rearrange your content and try something like that:

    <Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0">
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="*" />
            <ColumnDefinition Width="80" />
        </Grid.ColumnDefinitions>
    
        <ScrollViewer>
            <StackPanel>
                <TextBox FontSize="24" Name="absenderField" AcceptsReturn="True" TextWrapping="Wrap" Height="auto" MinHeight="30" MaxWidth="375">
                    <TextBox.InputScope>
                        <InputScope>
                            <InputScopeName  NameValue="Text" />
                        </InputScope>
                    </TextBox.InputScope>
                </TextBox>
    
                <TextBox FontSize="24" Name="messageField" AcceptsReturn="True" TextWrapping="Wrap">
                    <TextBox.InputScope>
                        <InputScope>
                            <InputScopeName  NameValue="Chat" />
                        </InputScope>
                    </TextBox.InputScope>
                </TextBox>
            </StackPanel>
        </ScrollViewer>
    
        <Button Grid.Column="1" Height="70" HorizontalAlignment="Center" Name="button1" VerticalAlignment="Top" Width="76">
            <Button.Background>
                <ImageBrush ImageSource="/Smsflatrate;component/Images/appbar.add.rest2.png" />
            </Button.Background>
        </Button>
    </Grid>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have made the following XAML path but would like to add the text
I have this databinding that doesn't work and I can not figure ut why.
I have a view named Work.xaml. This Work.xaml contains multiple WorkSkeleton.xaml. The Work.xaml's ViewModel
I know that we can't use messageBox in xaml. But..Can we have a custome
I have a web service , i add some extra class which have message
I have a message handler, which consumes from a JMS queue and that sends
I have a message that I want to fadeIn when a form is successfully
I have a Message table and a User table. Both are in separate databases.
In C++, a console application can have a message handler in its WinMain procedure,
I have a simple message box in a WPF application that is launched as

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.