C# Class GitHub.UI.OcticonPath

Represent a raw path with no transformation. Uses the coordinate system from the octicon/svg files which are all drawn on a 1024px high canvas with variable width. If you're just after the shape this control can be used with Stretch=Uniform. If you're looking for an accurately scaled octicon correctly position you'll have to explicitly set the height of the path to 1024 and wrap it in a viewbox to scale it down to the size you want.
Inheritance: System.Windows.Shapes.Shape
ファイルを表示 Open project: Microsoft/Git-Credential-Manager-for-Windows Class Usage Examples

Public Properties

Property Type Description
IconProperty System.Windows.DependencyProperty

Public Methods

Method Description
GetGeometryForIcon ( Octicon icon ) : System.Windows.Media.Geometry

Private Methods

Method Description
LoadGeometry ( Octicon icon ) : System.Windows.Media.Geometry
PrepareCache ( ) : Lazy>.Dictionary

Method Details

GetGeometryForIcon() public static method

public static GetGeometryForIcon ( Octicon icon ) : System.Windows.Media.Geometry
icon Octicon
return System.Windows.Media.Geometry

Property Details

IconProperty public_oe static_oe property

public static DependencyProperty,System.Windows IconProperty
return System.Windows.DependencyProperty