@@ -345,9 +345,10 @@ public virtual async Task InitAsync(PluginInitContext context)
345
345
private static readonly Thickness settingControlMargin = new ( 0 , 9 , 18 , 9 ) ;
346
346
private static readonly Thickness settingCheckboxMargin = new ( 0 , 9 , 9 , 9 ) ;
347
347
private static readonly Thickness settingPanelMargin = new ( 0 , 0 , 0 , 0 ) ;
348
- private static readonly Thickness settingTextBlockMargin = new ( 70 , 17 , 18 , 0 ) ;
349
- private static readonly Thickness settingLabelMargin = new ( 70 , 0 , 18 , 0 ) ;
350
- private static readonly Thickness settingDescMargin = new ( 70 , 0 , 18 , 0 ) ;
348
+ private static readonly Thickness settingTextBlockMargin = new ( 70 , 9 , 18 , 9 ) ;
349
+ private static readonly Thickness settingLabelPanelMargin = new ( 70 , 9 , 18 , 9 ) ;
350
+ private static readonly Thickness settingLabelMargin = new ( 0 , 0 , 0 , 0 ) ;
351
+ private static readonly Thickness settingDescMargin = new ( 0 , 2 , 0 , 0 ) ;
351
352
private static readonly Thickness settingSepMargin = new ( 0 , 0 , 0 , 2 ) ;
352
353
private JsonRpcConfigurationModel _settingsTemplate ;
353
354
@@ -358,7 +359,7 @@ public Control CreateSettingPanel()
358
359
var settingWindow = new UserControl ( ) ;
359
360
var mainPanel = new Grid
360
361
{
361
- Margin = settingPanelMargin
362
+ Margin = settingPanelMargin , VerticalAlignment = VerticalAlignment . Center
362
363
} ;
363
364
ColumnDefinition gridCol1 = new ColumnDefinition ( ) ;
364
365
ColumnDefinition gridCol2 = new ColumnDefinition ( ) ;
@@ -377,7 +378,9 @@ public Control CreateSettingPanel()
377
378
sep . SetResourceReference ( Separator . BackgroundProperty , "Color03B" ) ; /* for theme change */
378
379
var panel = new StackPanel
379
380
{
380
- Orientation = Orientation . Vertical , VerticalAlignment = VerticalAlignment . Center
381
+ Background = System . Windows . SystemColors . GrayTextBrush ,
382
+ Orientation = Orientation . Vertical , VerticalAlignment = VerticalAlignment . Center ,
383
+ Margin = settingLabelPanelMargin
381
384
} ;
382
385
RowDefinition gridRow = new RowDefinition ( ) ;
383
386
mainPanel . RowDefinitions . Add ( gridRow ) ;
@@ -420,10 +423,10 @@ public Control CreateSettingPanel()
420
423
{
421
424
Text = attribute . Description . Replace ( "\\ r\\ n" , "\r \n " ) ,
422
425
Margin = settingTextBlockMargin ,
423
- VerticalAlignment = VerticalAlignment . Stretch ,
426
+ Padding = new Thickness ( 0 , 0 , 0 , 0 ) ,
424
427
HorizontalAlignment = HorizontalAlignment . Left ,
425
428
TextAlignment = TextAlignment . Left ,
426
- TextWrapping = TextWrapping . WrapWithOverflow
429
+ TextWrapping = TextWrapping . Wrap
427
430
} ;
428
431
Grid . SetColumn ( contentControl , 0 ) ;
429
432
Grid . SetColumnSpan ( contentControl , 2 ) ;
0 commit comments