Padding text in listbox
var a1 = "HEL";
            var a2 = "HELLO";
            var a3 = "LLO";
            var length = a2.Length+5;

            listbox.Items.Add(a1.PadRight(length) +"End");
            listbox.Items.Add(a2.PadRight(length) + "End");
            listbox.Items.Add(a3.PadRight(length) + "End");

I have code like this to obviously pad all text so that the word End lines up.

The problem is I have to change the font from the wpf listbox from Segoe UI to Courier New to have this work. The rest of my app uses Segoe UI, so I think it looks weird here.

Is there any way to achieve the result with Segoe UI or maybe a similar font with correct spacing I could use, or maybe someone has some other smart solution i haven't even thought of? :-)

Thanks
Padding text in listbox
===

var a1 = "HEL";
            var a2 = "HELLO";
            var a3 = "LLO";
            var length = a2.Length+5;

            listbox.Items.Add(a1.PadRight(length) +"End");
            listbox.Items.Add(a2.PadRight(length) + "End");
            listbox.Items.Add(a3.PadRight(length) + "End");

I have code like this to obviously pad all text so that the word End lines up.

The problem is I have to change the font from the wpf listbox from Segoe UI to Courier New to have this work. The rest of my app uses Segoe UI, so I think it looks weird here.

Is there any way to achieve the result with Segoe UI or maybe a similar font with correct spacing I could use, or maybe someone has some other smart solution i haven't even thought of? :-)

Thanks