mirror of
https://github.com/Stone-Red-Code/DesktopMagic.git
synced 2026-09-04 00:46:12 +02:00
Set TextWrapping to NoWrap and enforce MaxWidth of 200 on controls
This commit is contained in:
@@ -100,7 +100,7 @@ internal class SettingElementGenerator(uint pluginId)
|
|||||||
Wpf.Ui.Controls.TextBox textBox = new()
|
Wpf.Ui.Controls.TextBox textBox = new()
|
||||||
{
|
{
|
||||||
Text = eTextBox.Value,
|
Text = eTextBox.Value,
|
||||||
TextWrapping = TextWrapping.Wrap,
|
TextWrapping = TextWrapping.NoWrap,
|
||||||
VerticalAlignment = VerticalAlignment.Center,
|
VerticalAlignment = VerticalAlignment.Center,
|
||||||
HorizontalAlignment = HorizontalAlignment.Stretch
|
HorizontalAlignment = HorizontalAlignment.Stretch
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -274,6 +274,7 @@ public partial class MainPage : Page
|
|||||||
if (control is not null)
|
if (control is not null)
|
||||||
{
|
{
|
||||||
control.MinWidth = 200;
|
control.MinWidth = 200;
|
||||||
|
control.MaxWidth = 200;
|
||||||
card.Content = control;
|
card.Content = control;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user