-
i have a case where i need to set the shadow of a border via c#, i looked around on how to do so but i can't seem to get any example i have tried the following which is correct syntax in my editor but the app crashes everytime, // i tried this first
pocketBorder.BoxShadow = new BoxShadows(
new BoxShadow{
Color=Colors.Black,
Blur=2,
OffsetX=0,
OffsetY=0,
Spread=1
}
);
// this also didn't work
pocketBorder.BoxShadow = BoxShadows.Parse("0 0 2 1 Black"); the exception returns this message " Object reference not set to an instance of an object. " |
Beta Was this translation helpful? Give feedback.
Answered by
timunie
May 12, 2024
Replies: 1 comment 4 replies
-
Can you add stack trace of the exception? |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
it should show a stack trace if you do some logging. That isn't limited to the IDE.
In any case: