@@ -114,15 +114,15 @@ public void Save()
114
114
return null ;
115
115
}
116
116
117
- // Create main grid
117
+ // Create main grid with two columns
118
118
var mainPanel = new Grid { Margin = settingPanelMargin , VerticalAlignment = VerticalAlignment . Center } ;
119
119
mainPanel . ColumnDefinitions . Add ( new ColumnDefinition ( )
120
120
{
121
- Width = new GridLength ( 70 , GridUnitType . Star ) // TODO: Auto
121
+ Width = new GridLength ( 0 , GridUnitType . Auto )
122
122
} ) ;
123
123
mainPanel . ColumnDefinitions . Add ( new ColumnDefinition ( )
124
124
{
125
- Width = new GridLength ( 30 , GridUnitType . Star ) // TODO: Auto
125
+ Width = new GridLength ( 0 , GridUnitType . Auto )
126
126
} ) ;
127
127
128
128
// Iterate over each setting and create one row for it
@@ -136,7 +136,10 @@ public void Save()
136
136
}
137
137
138
138
// Add a new row to the main grid
139
- mainPanel . RowDefinitions . Add ( new RowDefinition ( ) ) ;
139
+ mainPanel . RowDefinitions . Add ( new RowDefinition ( )
140
+ {
141
+ Height = new GridLength ( 0 , GridUnitType . Auto )
142
+ } ) ;
140
143
141
144
// State controls for column 0 and 1
142
145
StackPanel ? panel = null ;
@@ -357,11 +360,10 @@ Settings[attributes.Name] is bool isChecked
357
360
var linkbtn = new System . Windows . Controls . Button
358
361
{
359
362
HorizontalAlignment = System . Windows . HorizontalAlignment . Right ,
360
- Margin = settingControlMargin
363
+ Margin = settingControlMargin ,
364
+ Content = attributes . urlLabel
361
365
} ;
362
366
363
- linkbtn . Content = attributes . urlLabel ;
364
-
365
367
contentControl = linkbtn ;
366
368
367
369
break ;
0 commit comments