-1

I apologize if this question seems too simple but I really wanted to know how I'm able to achieve this through c# as I have a wpf app and am trying to use it as a divider for a series of content. Currently, I'm aware of the Environment.NewLine but I need a physical line and not a <br>.

I've tried searching for it but all of them are giving the <br> solution. The most I could search was from this site, which unfortunately yielded nothing: http://forums.codeguru.com/showthread.php?231842-html-lt-HR-gt-in-C

Klaus Bean
  • 37
  • 8

1 Answers1

1

You could use a <Separator /> element, or a <Border> or even a <Grid> or a <Rectangle> with a small height:

<Border Height="1" Background="Red" />

<Grid Height="1" Background="Red" />
mm8
  • 163,881
  • 10
  • 57
  • 88