C
C#8mo ago
Alomare

Help with WPF style

I'm building a WPF desktop app. I've been following this tutorial https://youtu.be/PzP8mw7JUzI?t=991 to figure out how to make a reusable style for a button that has two text blocks (one for a fontawesome icon and one for the label). Sometimes the preview shows the style being correctly applied, but when I build and run the app, it shows that "error" button with the message The element [Button] could not be displayed because of a problem with System.Windows.Controls.Button. and the app doesn't open. [more context in next messages]
No description
3 Replies
Alomare
Alomare8mo ago
the error points to this line
No description
Alomare
Alomare8mo ago
here's how im implementing the style. Messing with the border properties sometimes made the button show up correctly in preview, sometimes it bugged out
No description
No description
Alomare
Alomare8mo ago
i'm not sure what I'm doing wrong. Is there anything obvious I'm not seeing?
Want results from more Discord servers?
Add your server