Guest User

Untitled

a guest
Aug 29th, 2016
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 KB | None | 0 0
  1. private Polyline MakeArrow()
  2. {
  3. Polyline pl = new Polyline();
  4. pl.Style = Resources["ClosedTheme_Arrow"] as Style;
  5.  
  6. return pl;
  7. }
  8.  
  9. private Polyline MakeArrow()
  10. {
  11. Polyline pl = new Polyline();
  12. //pl.Style = Resources["ClosedTheme_Arrow"] as Style;
  13.  
  14. Windows.UI.Xaml.Media.PointCollection pc = new Windows.UI.Xaml.Media.PointCollection();
  15. pc.Add(new Windows.Foundation.Point(0, 0));
  16. pc.Add(new Windows.Foundation.Point(4, 5));
  17. pc.Add(new Windows.Foundation.Point(0, 10));
  18. pl.Points = pc;
  19. pl.Stroke = new Windows.UI.Xaml.Media.SolidColorBrush(Windows.UI.Colors.White);
  20.  
  21. return pl;
  22. }
  23.  
  24. <Style x:Key="ClosedTheme_Arrow" TargetType="Polyline">
  25. <Setter Property="Points" Value="0,0 4,5 0,10"/>
  26. <Setter Property="Stroke" Value="#fff"/>
  27. </Style>
  28.  
  29. <Setter Property="Points" Value="0,0 5,4 10,0"/>
Add Comment
Please, Sign In to add comment