---
title: "Text wrapping not working in wpf."  
description: "Text wrapping not working in wpf."  
author: "Anonymous User"  
published: 2013-07-18  
updated: 2013-07-19  
canonical: https://www.mindstick.com/forum/1326/text-wrapping-not-working-in-wpf  
category: "wpf"  
tags: ["wpf"]  
reading_time: 1 minute  

---

# Text wrapping not working in wpf.

HI [mindstick](https://yourviews.mindstick.com/view/84668/how-mindstick-is-used-for-marketing-purposes)!

I got this XAML [code](https://yourviews.mindstick.com/view/85458/alan-turing-the-mastermind-behind-cracking-the-enigma-code-during-world-war-ii) and I've been [trying](https://answers.mindstick.com/qa/93698/6-mistakes-couples-are-trying-to-save-money) to get it working for a few [hours](https://answers.mindstick.com/qa/101444/who-s-the-youngest-winner-of-the-le-mans-24-hours-race) now (I'm pretty new to WPF). I basically want the text in the TextBlock to line break if there's not [enough](https://answers.mindstick.com/qa/48601/who-is-the-writer-of-the-one-life-is-not-enough) room for it.

<Grid>

<Grid.ColumnDefinitions>

<ColumnDefinition Width="60" />

<ColumnDefinition Width="*" />

</Grid.ColumnDefinitions>

<[Image](https://www.mindstick.com/articles/23551/an-investigate-distinctive-seafood-restaurant-for-your-image-stamp-character) [Source](https://www.mindstick.com/interview/840/what-happens-if-the-both-source-and-destination-are-named-same)="{[Binding](https://www.mindstick.com/blog/146/dynamic-binding-in-c-sharp) [Path](https://www.mindstick.com/articles/44333/4-expert-tips-on-how-to-pick-the-right-career-path)=imageurl}" Width="60" Height="60" Grid.Column="0" />

<TextBlock TextWrapping="Wrap" Text="{Binding Path=[content](https://www.mindstick.com/articles/13019/get-the-best-content-marketing-pricing-packages-for-your-brand)}" Grid.Column="1" />

</Grid>

Thanks!

## Replies

### Reply by shreesh chandra shukla

Hi!you may try this

I basically set the Grid **ColumnDefinition** width to a fixed one and it works now.


---

Original Source: https://www.mindstick.com/forum/1326/text-wrapping-not-working-in-wpf

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
