Click here to Skip to main content
15,887,027 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Is there any library for WPF (XAML code) that contains Shapes or Geometries of Electronic Components like Fuse, Transformer, Wire, Resister, Diode and etc

What I have tried:

<!-- FUSE -->
<Path Stroke="Red" StrokeThickness="1.5">
    <Path.Data>
        <PathGeometry>
            <PathGeometry.Figures>
                <PathFigure StartPoint="85, 50" IsClosed="False">
                    <ArcSegment  Point="80, 50" Size="1 1" IsLargeArc="False"/>
                    <ArcSegment  Point="85, 50" Size="0.5 0.5" IsLargeArc="False"/>

                    <ArcSegment  Point="95, 50" Size="0.5 0.5" SweepDirection="Clockwise" IsLargeArc="False"/>
                    <ArcSegment  Point="105, 50" Size="0.5 0.5" SweepDirection="Counterclockwise" IsLargeArc="False"/>

                    <ArcSegment  Point="110, 50" Size="0.5 0.5" SweepDirection="Clockwise" IsLargeArc="False"/>
                    <ArcSegment  Point="105, 50" Size="0.5 0.5" SweepDirection="Clockwise" IsLargeArc="False"/>
                </PathFigure>
            </PathGeometry.Figures>
        </PathGeometry>
    </Path.Data>
</Path>
Posted
Updated 24-Sep-20 8:49am
Comments
[no name] 24-Sep-20 18:45pm    
You're limiting your options. WPF can handle images, icons and fonts of "electronic parts" just fine. You can use Xaml to rotate anything that needs to be.
DoingWork 26-Sep-20 5:50am    
Plz elaborate your answer

1 solution

Probably doesn't exist.

You're best source for component outlines is probably going to be for PCB layout software like Eagle. That have large numbers of libraries of components that have outlines for the device itself as well as pad layout and component footprints. You're going to have to write your own parser to take that data and generate the XAML code for the parts you want.
 
Share this answer
 
Comments
DoingWork 28-Sep-20 9:19am    
Plz elaborate your answer
Dave Kreskowiak 28-Sep-20 10:50am    
Google for "Eagle component libraries".

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900