Product: PowerShell Universal Version: 5.2.2
Setting New-UDTextBox font to monospace has eluded me.
I can set background color, setting a global theme works, but setting for a single textbox has me scratching my head. Any examples?
New-UDTextbox -ID ‘txtExample’ -Value “value” -Multiline -Style @{ fontFamily = “monospace”; whiteSpace = ‘pre’; Background = ‘lightgreen’ }
This appears to work:
New-UDStyle -Style ‘.MuiInput-root { font-Family : monospace }’ -Content {
New-UDTextbox -ID ‘txtExample’ -Value “start” -Multiline -FullWidth
}
This does work,
but no longer when using the -variant option.
Any idea how to use mono-spaced font in an outlined or filled box?