❔ WPF edit Label Content
Hey, I want to set the label on a random position. After this I want to edit the content of the label, buy how can I do that if my label are object or UIElement
Can I replace the label from my canvas with a new label than it's exactly the same with different content?
7 Replies
You get only the UIElement of the labels and UIElement has not Content.
This is the shit
which is why you cast it to
Label
like i did in the code i sentwhat? every element is a UIElement, can I just make (Label) like (int) or what do you mean?
you can just do what i posted
c# is strange but looks like it works
but thank you
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.