コード例 #1
0
ファイル: FieldBuilder.cs プロジェクト: matyapav/AFSwinx
 /// <summary>
 /// Builds element in which will be displayed validation errors.
 /// </summary>
 /// <param name="skin">defines the look of validations errors</param>
 /// <returns>validation element</returns>
 private TextBlock buildErrorView(Skin skin)
 {
     TextBlock errorView = new TextBlock();
     //errorView.setLayoutParams(new ViewGroup.LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT));
     errorView.Visibility = Visibility.Collapsed;
     errorView.Foreground = new SolidColorBrush(skin.getValidationColor());
     errorView.TextWrapping = TextWrapping.Wrap;
     errorView.FontFamily = skin.getValidationFont();
     errorView.FontSize = skin.getValidationFontSize();
     return errorView;
 }