@@ -29,8 +29,10 @@ public class JsonRPCPluginSettings
29
29
private static readonly Thickness SettingPanelItemLeftMargin = ( Thickness ) Application . Current . FindResource ( "SettingPanelItemLeftMargin" ) ;
30
30
private static readonly Thickness SettingPanelItemTopBottomMargin = ( Thickness ) Application . Current . FindResource ( "SettingPanelItemTopBottomMargin" ) ;
31
31
private static readonly Thickness SettingPanelItemLeftTopBottomMargin = ( Thickness ) Application . Current . FindResource ( "SettingPanelItemLeftTopBottomMargin" ) ;
32
- private static readonly double SettingPanelTextBlockMinWidth = ( double ) Application . Current . FindResource ( "SettingPanelTextBlockMinWidth" ) ;
33
- private static readonly double SettingPanelPathTextBlockMinWidth = ( double ) Application . Current . FindResource ( "SettingPanelPathTextBlockMinWidth" ) ;
32
+ private static readonly double SettingPanelTextBoxMinWidth = ( double ) Application . Current . FindResource ( "SettingPanelTextBoxMinWidth" ) ;
33
+ private static readonly double SettingPanelPathTextBoxMinWidth = ( double ) Application . Current . FindResource ( "SettingPanelPathTextBoxMinWidth" ) ;
34
+ private static readonly double SettingPanelAreaTextBoxMinWidth = ( double ) Application . Current . FindResource ( "SettingPanelAreaTextBoxMinWidth" ) ;
35
+ private static readonly double SettingPanelAreaTextBoxMinHeight = ( double ) Application . Current . FindResource ( "SettingPanelAreaTextBoxMinHeight" ) ;
34
36
35
37
public async Task InitializeAsync ( )
36
38
{
@@ -229,7 +231,7 @@ public void Save()
229
231
VerticalAlignment = VerticalAlignment . Center ,
230
232
Margin = SettingPanelItemTopBottomMargin ,
231
233
TextAlignment = TextAlignment . Left ,
232
- TextWrapping = TextWrapping . Wrap // TODO: Check password and others
234
+ TextWrapping = TextWrapping . Wrap
233
235
} ;
234
236
235
237
break ;
@@ -238,7 +240,7 @@ public void Save()
238
240
{
239
241
var textBox = new TextBox ( )
240
242
{
241
- MinWidth = SettingPanelTextBlockMinWidth ,
243
+ MinWidth = SettingPanelTextBoxMinWidth ,
242
244
HorizontalAlignment = HorizontalAlignment . Left ,
243
245
VerticalAlignment = VerticalAlignment . Center ,
244
246
Margin = SettingPanelItemLeftTopBottomMargin ,
@@ -260,7 +262,7 @@ public void Save()
260
262
{
261
263
var textBox = new TextBox ( )
262
264
{
263
- MinWidth = SettingPanelPathTextBlockMinWidth ,
265
+ MinWidth = SettingPanelPathTextBoxMinWidth ,
264
266
HorizontalAlignment = HorizontalAlignment . Left ,
265
267
VerticalAlignment = VerticalAlignment . Center ,
266
268
Margin = SettingPanelItemLeftMargin ,
@@ -325,8 +327,8 @@ public void Save()
325
327
{
326
328
var textBox = new TextBox ( )
327
329
{
328
- MinHeight = 150 ,
329
- MinWidth = 240 ,
330
+ MinHeight = SettingPanelAreaTextBoxMinHeight ,
331
+ MinWidth = SettingPanelAreaTextBoxMinWidth ,
330
332
HorizontalAlignment = HorizontalAlignment . Left ,
331
333
VerticalAlignment = VerticalAlignment . Center ,
332
334
Margin = SettingPanelItemLeftTopBottomMargin ,
@@ -349,15 +351,16 @@ public void Save()
349
351
{
350
352
var passwordBox = new PasswordBox ( )
351
353
{
352
- MinWidth = SettingPanelTextBlockMinWidth ,
354
+ MinWidth = SettingPanelTextBoxMinWidth ,
353
355
HorizontalAlignment = HorizontalAlignment . Left ,
354
356
VerticalAlignment = VerticalAlignment . Center ,
355
357
Margin = SettingPanelItemLeftTopBottomMargin ,
356
358
Password = Settings [ attributes . Name ] as string ?? string . Empty ,
357
359
PasswordChar = attributes . passwordChar == default ? '*' : attributes . passwordChar ,
358
- ToolTip = attributes . Description
360
+ ToolTip = attributes . Description ,
359
361
} ;
360
362
363
+ // TODO: Fix issue here
361
364
passwordBox . PasswordChanged += ( sender , _ ) =>
362
365
{
363
366
Settings [ attributes . Name ] = ( ( PasswordBox ) sender ) . Password ;
0 commit comments