@@ -49,7 +49,7 @@ private static void Textbox_Loaded(object sender, RoutedEventArgs e)
4949 return ;
5050 }
5151
52- var placeHolderValue = textbox . GetValue ( PlaceHolderProperty ) as string ;
52+ var placeHolderValue = textbox . GetValue ( MaskPlaceholderCharacterProperty ) as string ;
5353 if ( string . IsNullOrEmpty ( placeHolderValue ) )
5454 {
5555 throw new ArgumentException ( "PlaceHolder can't be null or empty" ) ;
@@ -152,7 +152,7 @@ private static void Textbox_GotFocus_Mask(object sender, RoutedEventArgs e)
152152 {
153153 var textbox = ( TextBox ) sender ;
154154 var mask = textbox ? . GetValue ( MaskProperty ) as string ;
155- var placeHolderValue = textbox ? . GetValue ( PlaceHolderProperty ) as string ;
155+ var placeHolderValue = textbox ? . GetValue ( MaskPlaceholderCharacterProperty ) as string ;
156156 var representationDictionary = textbox ? . GetValue ( RepresentationDictionaryProperty ) as Dictionary < char , string > ;
157157 if ( string . IsNullOrWhiteSpace ( mask ) ||
158158 representationDictionary == null ||
@@ -194,7 +194,7 @@ private static async void Textbox_Paste(object sender, TextControlPasteEventArgs
194194 var textbox = ( TextBox ) sender ;
195195 var mask = textbox . GetValue ( MaskProperty ) as string ;
196196 var representationDictionary = textbox ? . GetValue ( RepresentationDictionaryProperty ) as Dictionary < char , string > ;
197- var placeHolderValue = textbox . GetValue ( PlaceHolderProperty ) as string ;
197+ var placeHolderValue = textbox . GetValue ( MaskPlaceholderCharacterProperty ) as string ;
198198 if ( string . IsNullOrWhiteSpace ( mask ) ||
199199 representationDictionary == null ||
200200 string . IsNullOrEmpty ( placeHolderValue ) )
@@ -262,7 +262,7 @@ private static void Textbox_TextChanging(TextBox textbox, TextBoxTextChangingEve
262262 var escapedChars = textbox . GetValue ( EscapedCharacterIndicesProperty ) as List < int > ;
263263
264264 var representationDictionary = textbox . GetValue ( RepresentationDictionaryProperty ) as Dictionary < char , string > ;
265- var placeHolderValue = textbox ? . GetValue ( PlaceHolderProperty ) as string ;
265+ var placeHolderValue = textbox ? . GetValue ( MaskPlaceholderCharacterProperty ) as string ;
266266 var oldText = textbox . GetValue ( OldTextProperty ) as string ;
267267 var oldSelectionStart = ( int ) textbox . GetValue ( OldSelectionStartProperty ) ;
268268 var oldSelectionLength = ( int ) textbox . GetValue ( OldSelectionLengthProperty ) ;
0 commit comments