this.xamSyntaxEditor1.Background = new SolidColorBrush(Colors.Yellow);
This topic provides information on how to change the presention of the document’s content inside the xamSyntaxEditor™ .
The following topics are prerequisites to understanding this topic:
This topic contains the following sections:
The following table lists the configurable aspects of the xamSyntaxEditor’s editing view.
You can change the background by applying different brushes and colors using this property.
The following table maps the desired property settings configuration.
In C#:
this.xamSyntaxEditor1.Background = new SolidColorBrush(Colors.Yellow);
In Visual Basic:
Me.xamSyntaxEditor1.Background = New SolidColorBrush(Colors.Yellow)
You can change the font family using this property.
The following table maps the desired configuration to property settings.
In C#:
this.xamSyntaxEditor1.FontFamily = new FontFamily("Arial");
In Visual Basic:
Me.xamSyntaxEditor1.FontFamily = New FontFamily("Arial")
You can change the font size using this property.
The following table maps the desired configuration to property settings.
In C#:
this.xamSyntaxEditor1.FontSize = 12;
In Visual Basic:
Me.xamSyntaxEditor1.FontSize = 12
You can change the font style using this property.
The following table maps the desired configuration to property settings.
In C#:
this.xamSyntaxEditor1.FontStyle = FontStyles.Italic;
In Visual Basic:
Me.xamSyntaxEditor1.FontStyle = FontStyles.Italic
You can change the font weight using this property.
The following table maps the desired property settings configuration.
In C#:
this.xamSyntaxEditor1.FontWeight = FontWeights.Bold;
In Visual Basic:
Me.xamSyntaxEditor1.FontWeight = FontWeights.Bold
You can change the zoom level using this property.
The following table maps the desired configuration to property settings.
In C#:
this.xamSyntaxEditor1.ZoomLevel = 2.5;
In Visual Basic:
Me.xamSyntaxEditor1.ZoomLevel = 2.5
The following topics provide additional information related to this topic.