0

I'm developing a windows phone 8 application. I've got a textblock with a price in it. Only thing I want to do is a line through the textblock.

I've tried to use the Line function but that one doesn't work because the textblock has a variable length. Does anyone know how I can make this happen?

Kara
  • 5,650
  • 15
  • 48
  • 55
FCUTom
  • 23
  • 3

1 Answers1

0

This worked for me thanks to Chkon for giving me the answer in this thread:

<Grid HorizontalAlignment="Left" VerticalAlignment="Top">
            <Grid.RowDefinitions>
                <RowDefinition Height="1*"/>
                <RowDefinition Height="1*"/>
            </Grid.RowDefinitions>
        <TextBlock HorizontalAlignment="Left" TextWrapping="Wrap" Text="Some text" VerticalAlignment="Top" Grid.RowSpan="2"/>
        <Border BorderThickness="0,0,0,1" BorderBrush="#FF949494" >
        </Border>
</Grid>
Community
  • 1
  • 1
FCUTom
  • 23
  • 3