Monday, December 3, 2012

Letter contents are garbled, overlapping

Letter contents are garbled, overlapping

I am trying to create a letter using Infragistic/Silverlight, but the letter contents are getting overlapped and its printing only 3-4 lines of whole letter, where the rest of lines got overlap within it.

Let me know, what I am doing wrong because when I open see the XAML, it shows me the contents well drafted as I want.

Any ideas.

I am presuming, I am doing something wrong with the row or column definition. I am pasting my XAML for reference.

<Grid x:Name="LayoutRoot" Width="780"> <Grid.RowDefinitions> <RowDefinition Height="Auto" /><RowDefinition Height="*" />
<RowDefinition Height="5" /></Grid.RowDefinitions> <StackPanel><TextBlock Height="Auto /><TextBox /> <Button Content="Get Letter" /></StackPanel> <Grid Grid.Row="1" Height="Auto" HorizontalAlignment="Stretch"> <Grid.RowDefinitions> <RowDefinition Height="Auto"/> </Grid.RowDefinitions> <Grid Grid.Row="0" Height="Auto" Margin="70,70,70,70" Width="Auto" > <Grid.RowDefinitions> <RowDefinition Height="110" /> <RowDefinition MinHeight="150" Height="Auto" /> <RowDefinition Height="Auto" /> <RowDefinition Height="Auto" /> <RowDefinition Height="60" /> <RowDefinition Height="12*" /> </Grid.RowDefinitions> <Grid Grid.Row="1"> <Grid.ColumnDefinitions> <ColumnDefinition Width="1*" /><ColumnDefinition Width="1*" /> </Grid.ColumnDefinitions> <Grid.RowDefinitions> <RowDefinition Height="Auto" /> <RowDefinition Height="Auto" /> <RowDefinition Height="Auto" /> <RowDefinition Height="Auto" /> <RowDefinition Height="Auto" /> <RowDefinition Height="Auto" /> <RowDefinition Height="Auto" /> </Grid.RowDefinitions> <TextBlock Grid.Column="1" Grid.Row="0"/> </Grid> <StackPanel Grid.Row="2" Orientation="Horizontal"> <TextBlock>Dear</TextBlock> <TextBlock/> </StackPanel> <StackPanel Grid.Row="3" Orientation="Vertical"> <TextBlock >Some Text</TextBlock> <TextBlock>Some text</TextBlock> <TextBlock>Some Text</TextBlock> <TextBlock>Some Text</TextBlock> <TextBlock>Some text</TextBlock> <TextBlock>Some Text</TextBlock> <TextBlock>Some text</TextBlock> </StackPanel> <StackPanel Grid.Row="5" Orientation="Vertical"> <TextBlock/> </StackPanel> </Grid> </Grid> </Grid>

Answers & Comments...




No comments:

Post a Comment

Send us your comment related to the topic mentioned on the blog