public static GetGeometryForIcon ( Octicon icon ) : System.Windows.Media.Geometry | ||
icon | Octicon | |
return | System.Windows.Media.Geometry |
static void OnIconChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { d.SetValue(Path.DataProperty, OcticonPath.GetGeometryForIcon((Octicon)e.NewValue)); }
public OcticonLinkButton() { this.SetValue(Path.DataProperty, OcticonPath.GetGeometryForIcon(Icon)); }