@@ -173,7 +173,7 @@ private void LoadProperties()
173173 //Theme
174174 CboStyle . Text = Properties . Settings . Default . VisualStyle ;
175175 CpMetroBrush . Color = Properties . Settings . Default . MetroColor ;
176- IntBorderThickness . Value = Properties . Settings . Default . BorderThickness ;
176+ SldBorderThickness . Value = Properties . Settings . Default . BorderThickness ;
177177 SldOpacity . Value = Properties . Settings . Default . WindowOpacity * 100 ;
178178 SldWindowResize . Value = Properties . Settings . Default . WindowResizeBorder ;
179179 ItbWarningLevel . Value = Properties . Settings . Default . WarningLevel ;
@@ -303,7 +303,7 @@ private void SaveProperties()
303303 //Theme
304304 Properties . Settings . Default . VisualStyle = CboStyle . Text ;
305305 Properties . Settings . Default . MetroColor = CpMetroBrush . Color ;
306- if ( IntBorderThickness . Value != null ) Properties . Settings . Default . BorderThickness = ( int ) IntBorderThickness . Value ;
306+ Properties . Settings . Default . BorderThickness = SldBorderThickness . Value ;
307307 Properties . Settings . Default . WindowOpacity = SldOpacity . Value / 100 ;
308308 Properties . Settings . Default . WindowResizeBorder = SldWindowResize . Value ;
309309 if ( ItbWarningLevel . Value != null ) Properties . Settings . Default . WarningLevel = ItbWarningLevel . Value . Value ;
@@ -491,6 +491,16 @@ private void LsvExclusions_OnDrop(object sender, DragEventArgs e)
491491 }
492492 }
493493
494+ /// <summary>
495+ /// Method that is called when the border thickness should change
496+ /// </summary>
497+ /// <param name="sender">The object that called this method</param>
498+ /// <param name="e">The RoutedPropertyChangedEventArgs</param>
499+ private void SldBorderThickness_OnValueChanged ( object sender , RoutedPropertyChangedEventArgs < double > e )
500+ {
501+ BorderThickness = new Thickness ( SldBorderThickness . Value ) ;
502+ }
503+
494504 /// <summary>
495505 /// Method that is called when the opacity should change dynamically
496506 /// </summary>
0 commit comments