I am trying to add a menuitem, like this:
Items.Add(new MenuItem()
{
Header = var_from_a_loop;
});
The var_from_a_loop has some underscores. Say, var_from_a_loop = "A_B_C_D". When run, this becomes "AB_C_D", that is, it removes the first underscore. Now, I know the underscore is treated like a shortcut key indicator (like the above would mean using shortcut Ctrl + B), but I want to disable this. I could probably manage showing the entire string by doing this:
Header = "_" + var_from_a_loop
But I am looking for a better solution, as the above is kind of 'hacky'.