DrawingAttributes.OutlineColor Property

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Gets or sets the outline color that is used to draw a Stroke.

Namespace:  System.Windows.Ink
Assembly:  System.Windows (in System.Windows.dll)
XMLNS for XAML: Not mapped to an xmlns.

Syntax

Public Property OutlineColor As Color
public Color OutlineColor { get; set; }
<DrawingAttributes OutlineColor="colorString"/>

XAML Values

  • colorString
    A Color expressed as an attribute string. This can be a named color, an RBG value, or an ScRGB value. RBG or ScRGB may also specify alpha information. See Color.

Property Value

Type: System.Windows.Media..::.Color
The outline color of the stylus that is used to draw a Stroke. The default is Black.

Remarks

For information about the colors that you can use, see Color.

The outline color is 1 logical pixel wide, which makes the rendered stroke 2 logical pixels wider.

Examples

The following code example demonstrates how to set the OutlineColor property. This is part of a larger example available in DrawingAttributes class overview.

    'Set drawing attributes to simulate a highlighter
    Private Sub BtHighlighter_Click(ByVal sender As Object, ByVal e As EventArgs)
        MyDA.Width = 25
        MyDA.Height = 5
        MyDA.Color = Colors.Yellow
        MyDA.OutlineColor = Colors.Yellow
    End Sub

//Set drawing attributes to simulate a highlighter
private void BtHighlighter_Click(object sender, EventArgs e)
{
    MyDA.Width = 25;
    MyDA.Height = 5;
    MyDA.Color = Colors.Yellow;
    MyDA.OutlineColor = Colors.Yellow;
}

Version Information

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Platforms

Windows Phone

See Also

Reference

DrawingAttributes Class

System.Windows.Ink Namespace

InkPresenter

Stroke

DrawingAttributes