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 8403231
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T22:17:19+00:00 2026-06-09T22:17:19+00:00

Here is the code i wrote: <Grid> <Grid.Resources> <BooleanToVisibilityConverter x:Key=BooleanToVisibilityConverter/> </Grid.Resources> <TextBlock Margin=3,0,3,0 VerticalAlignment=Center

  • 0

Here is the code i wrote:

                <Grid>
                    <Grid.Resources>
                        <BooleanToVisibilityConverter x:Key="BooleanToVisibilityConverter"/>
                    </Grid.Resources>
                    <TextBlock Margin="3,0,3,0" VerticalAlignment="Center"
                        Text="Comment here..."                                                
                        FontSize="12"
                        Foreground="Black"
                        Height="35"
                        Visibility="{Binding ElementName=TextBox1, Path=Text.IsEmpty, 
                        Converter={StaticResource BooleanToVisibilityConverter}}"/>
                    <TextBox Margin="0" Background="#AAFFFFFF"
                        VerticalAlignment="Top" Name="FilterTextBox"
                        Text="{Binding Text, UpdateSourceTrigger=PropertyChanged}"
                        MinLines="2" 
                        MaxLines="2"
                        BorderThickness="0"
                        VerticalScrollBarVisibility="Auto"                             
                        MaxLength="{Binding MaxLength}"
                        Height="35">
                    </TextBox>
                </Grid>        

This works as desired if i enter any letters it removes comments here… but problem is i have set textbox as MinLines = 2 and scrollbar visible but both are not working. I can only enter text in one line. Can anyone please tell me what am i doing wrong? Or is there a better way to do this in wpf?

  • 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-09T22:17:20+00:00Added an answer on June 9, 2026 at 10:17 pm

    TextBox.TextWrapping Property is TextWrapping.NoWrap by default. Set it to Wrap or WrapWithOverflow and it should work.

    <TextBox TextWrapping="Wrap"
    
    • 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 wrote,when i execute the code,the terminal didn't output anything
i added sharekitkit my project. And wrote code like here : SHKItem *item =
here is a small peice off code that i wrote. But I am not
So, here's the problem. I wrote a code that opens a div based on
Alright, here I am again trying to write code from scratch and I can't
I'm trying to write a video using opencv's VideoWriter. Here's code: int main() {
Here's my code: sentenceToTranslate = raw_input(Please write in the sentence you want to translate:
I was able to write some code with the help of the community here,
I want to write a simple web proxy, for exercise. Here's the code I
The script is on jsfiddle here : CODE What it does at the moment

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.