C
C#2y ago
3E7

✅ WPF simple project need help with binding

so i have ColorArgb class which stands for color, and i have to bind it in xaml for rectangle background.
11 Replies
3E7
3E7OP2y ago
we can go voice i can share demo i dont think its hard but i cant do that
Denis
Denis2y ago
You will have to probably use a converter
Denis
Denis2y ago
Stack Overflow
How do I bind ARGB values to a rectangle fill property in a combo b...
I have a combobox of custom objects each of which is displayed as a colored rectangle and beside it a text.
I have the ARGB values I want to display from the object, but I want to convert that t...
Denis
Denis2y ago
or use a SolidColorBrush straight away, if you are fine with having your ViewModel dependent on the UI platform (which isn't ideal, but should be fine for a smaller application)
3E7
3E7OP2y ago
thx i`ll try
3E7
3E7OP2y ago
3E7
3E7OP2y ago
SubCategory is red what should i do about it
Denis
Denis2y ago
I have no idea what a subcategory is. You should probably add a missing using? Add a missing reference? Ctrl+. or use the lightbulb that appear on the line of the error
Aurumaker72
Aurumaker722y ago
This has been resolved in #gui
Denis
Denis2y ago
@wqqsdq please close this thread using /close if the issue is resolved
3E7
3E7OP2y ago
ok, but its not done yet
Want results from more Discord servers?
Add your server