@@ -20,15 +20,15 @@ namespace FlipnoteDesktop.Controls
2020 /// <summary>
2121 /// Interaction logic for PenPatternSelector.xaml
2222 /// </summary>
23- public partial class PenPatternSelector : UserControl
23+ internal partial class PenPatternSelector : UserControl
2424 {
2525 public PenPatternSelector ( )
2626 {
2727 InitializeComponent ( ) ;
2828 ComboBox . ItemsSource = PenPatterns . NamesList ( ) ;
2929 }
3030
31- public static DependencyProperty ValueProperty = DependencyProperty . Register ( "Value" , typeof ( Pattern ) , typeof ( PenPatternSelector ) ,
31+ internal static DependencyProperty ValueProperty = DependencyProperty . Register ( "Value" , typeof ( Pattern ) , typeof ( PenPatternSelector ) ,
3232 new FrameworkPropertyMetadata ( PenPatterns . Mono , new PropertyChangedCallback ( ValuePropertyChanged ) ) ) ;
3333
3434 private static void ValuePropertyChanged ( DependencyObject d , DependencyPropertyChangedEventArgs e )
@@ -37,7 +37,7 @@ private static void ValuePropertyChanged(DependencyObject d, DependencyPropertyC
3737 o . ValueChanged ? . Invoke ( o ) ;
3838 }
3939
40- public Pattern Value
40+ internal Pattern Value
4141 {
4242 get => GetValue ( ValueProperty ) as Pattern ;
4343 set
@@ -54,8 +54,9 @@ private void ComboBox_SelectionChanged(object sender, SelectionChangedEventArgs
5454 DataContext = new PenPatternSample
5555 {
5656 PatternName = ( string ) ComboBox . SelectedItem ,
57- Padding = new Thickness ( 3 )
57+ Padding = new Thickness ( 1 ) ,
5858 } ;
59+ RenderOptions . SetBitmapScalingMode ( ( DataContext as PenPatternSample ) , BitmapScalingMode . Linear ) ;
5960 Value = ( DataContext as PenPatternSample ) . Pattern ;
6061 }
6162 }
0 commit comments