Categories > Coding > C# >

[help] how do i use svg icons in wpf


New Reply

falseopx

pika

Posts: 209

Threads: 37

Joined: Feb, 2021

Reputation: 7

Posted

title sums this thread up, i kinda don't like segoe icons/fluent icons so i wanna use the svg's i have but since im a retard idk how so if anyone could help that would be pretty baller

not as active anymore, wrd is boring.

swiney2

swiney2#8267

Mention

Posts: 175

Threads: 7

Joined: Jul, 2021

Reputation: 7

Replied

open the svg file in notepad, copy the data (letters n numbers n stuff) and then make a path (<Path> <Path\>) and make the data of that path (<Path Data = ""> <Path\>)

Added

Also some other good icons that aren't svg are Material Design Icons

Click here for free robux!

Sorry for changing pfp Laxion im no longer codingo doggo

simplydev

simply develop

Mention

Posts: 325

Threads: 27

Joined: Oct, 2020

Reputation: 3

Replied

just open a svg file and get the <path data ="saugusajgusajfusajgfuisajgu you copy this">, usually the path data is the next one example :

<path data="haha i dont have data"> <path data="copy me im the data babe">

simplydev | UI Designer | c2ltcGx5ZGV2ZWxvcA==#1895

i love u papi maximus <3

Rep Goal : 10

Posts: 859

Threads: 57

Joined: Oct, 2019

Reputation: 49

Replied

Would Assume Something Along This Would Work Too If You Want Buttons With SVG's

<Button >
     <Path Data="Svg Path Data" />
</Button>

[Nihon Discord] [Nihon Download] Nihon (Owner/Founder)

----------------------------------------------------------------------------

ImmuneLion318 | C# Developer | Xaml Designer #NoMoreMods


New Reply

Users viewing this thread:


( Members: 0, Guests: 1, Total: 1 )