Hi,
This might be caused by the StrokeDashArray property. It's not a DependencyProperty. So you could using StaticResource for sharing the value.
Like this:
<Page.Resources>
<Style x:Key="Line" TargetType="Path">
<Setter Property="Stroke" Value="White"/>
</Style>
<x:String x:Key="strokeArray">3</x:String>
</Page.Resources>
<Canvas HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Background="Black">
<Path Canvas.Left="0" Canvas.Top="100" Style="{StaticResource Line}" StrokeDashArray="{StaticResource strokeArray}">
<Path.Data>
<LineGeometry StartPoint="0,0" EndPoint="1000,0"/>
</Path.Data>
</Path>
<Path Canvas.Left="0" Canvas.Top="200" Style="{StaticResource Line}" StrokeDashArray="{StaticResource strokeArray}">
<Path.Data>
<LineGeometry StartPoint="0,0" EndPoint="1000,0"/>
</Path.Data>
</Path>
<Path Canvas.Left="0" Canvas.Top="300" Style="{StaticResource Line}" StrokeDashArray="{StaticResource strokeArray}">
<Path.Data>
<LineGeometry StartPoint="0,0" EndPoint="1000,0"/>
</Path.Data>
</Path>
</Canvas>
Best regards,
Roy
MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to
MSDN Support, feel free to contact MSDNFSF@microsoft.com.