Hi guys,
How to indent the first line of each paragraph in a bound TextBlock?
Here is the .xml
<?xml version="1.0" encoding="UTF-8"?><dataroot xmlns:od="urn:schemas-microsoft-com:officedata" generated="2011-06-04T14:21:45"><Animal><ID>01</ID><Name>Goat</Name><Description>The domestic goat (Capra aegagrus hircus) is a subspecies of goat domesticated from the wild goat of southwest Asia and Eastern Europe. The goat is a member of the family Bovidae and is closely related to the sheep as both are in the goat-antelope subfamily Caprinae. There are over 300 distinct breeds of goat.[1] Goats are one of the oldest domesticated species, and have been used for their milk, meat, hair, and skins over much of the world.[2] In 2011, there were more than 924 million live goats around the globe, according to the UN Food and Agriculture Organization.[3] </Description><Image>Images/Goat.jpg</Image></Animal><Animal><ID>02</ID><Name>Cattle</Name><Description>Cattle were originally identified as three separate species: Bos taurus, the European or "taurine" cattle (including similar types from Africa and Asia); Bos indicus, the zebu; and the extinct Bos primigenius, the aurochs. The aurochs is ancestral to both zebu and taurine cattle.[citation needed] Now, these have been reclassified as one species, Bos taurus, with three subspecies: Bos taurus primigenius, Bos taurus indicus, and Bos taurus taurus.[4][5] Complicating the matter is the ability of cattle to interbreed with other closely related species. </Description><Image>Images/Cattle.jpg</Image></Animal><Animal><ID>03</ID><Name>Cock</Name><Description>A rooster, also known as a cockerel or cock, is a male gallinaceous bird, usually a male chicken (Gallus gallus). Mature male chickens less than one year old are called cockerels. The term "rooster" originates in the United States,[1] and the term is widely used throughout North America, as well as Australia and New Zealand.[2] The older terms "cock" or "cockerel", the latter denoting a young cock, are used in the United Kingdom and Ireland.[3]</Description><Image>Images/Cock.png</Image></Animal><Animal><ID>04</ID><Name>Dog</Name><Description>The domestic dog (Canis lupus familiaris or Canis familiaris) is a domesticated canid which has been selectively bred for millennia for various behaviors, sensory capabilities, and physical attributes.[2] Although initially thought to have originated as a manmade variant of an extant canid species (variously supposed as being the dhole,[3] golden jackal,[4] or gray wolf[5]), </Description><Image>Images/Dog.jpg</Image></Animal></dataroot> Here is .Xaml
<Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d" x:Class="Indent.MainWindow" Title="MainWindow" Height="350" Width="525"><Window.Resources><DataTemplate x:Key="AnimalTemplate"><StackPanel><TextBlock Text="{Binding XPath=Name}"/></StackPanel></DataTemplate></Window.Resources><Grid DataContext="{Binding Source={StaticResource AnimalsDataSource}}" Background="#FF2E4173"><ListBox x:Name="listBox" HorizontalAlignment="Left" Height="100" ItemTemplate="{DynamicResource AnimalTemplate}" ItemsSource="{Binding XPath=/dataroot/Animal}" Margin="65,87.337,0,0" VerticalAlignment="Top" Width="50"/><Grid DataContext="{Binding SelectedItem, ElementName=listBox}" Margin="155,86.5,168.6,128.9" d:DataContext="{Binding XPath=/dataroot/Animal}"><TextBlock Text="{Binding XPath=Description}" HorizontalAlignment="Left" VerticalAlignment="Top" Width="250" Height="105" TextWrapping="Wrap" Margin="0,0,-55,0" Background="White"/></Grid></Grid></Window>Thanks
Richard