Mideks
Mideks
CC#
Created by Mideks on 5/2/2023 in #help
❔ How can I bind Fill Color to Enum Value?
Lol I solved my problem just by deleting Fill in Rectangle. Somereason, it always added by default.
40 replies
CC#
Created by Mideks on 5/2/2023 in #help
❔ How can I bind Fill Color to Enum Value?
It's really interesting hack.
40 replies
CC#
Created by Mideks on 5/2/2023 in #help
❔ How can I bind Fill Color to Enum Value?
superficially looking at what it is, it seems to me that this would greatly complicate my solution, which initially seemed to me quite simple :(
40 replies
CC#
Created by Mideks on 5/2/2023 in #help
❔ How can I bind Fill Color to Enum Value?
ooh, that sounds pretty interesting. but I guess I'll put it off until tomorrow. thanks for your answers.
40 replies
CC#
Created by Mideks on 5/2/2023 in #help
❔ How can I bind Fill Color to Enum Value?
at least because it's code, not markup
40 replies
CC#
Created by Mideks on 5/2/2023 in #help
❔ How can I bind Fill Color to Enum Value?
I meant that it seems to me that the converter is more relevant to vm than to view.
40 replies
CC#
Created by Mideks on 5/2/2023 in #help
❔ How can I bind Fill Color to Enum Value?
so I decided to try to bind the color depending on the state in the view
40 replies
CC#
Created by Mideks on 5/2/2023 in #help
❔ How can I bind Fill Color to Enum Value?
it seemed to me that determining the color of the display is not the responsibility of vm
40 replies
CC#
Created by Mideks on 5/2/2023 in #help
❔ How can I bind Fill Color to Enum Value?
why did you decide that I want to define logic in the view model? on the contrary, I wanted to avoid it.
40 replies
CC#
Created by Mideks on 5/2/2023 in #help
❔ How can I bind Fill Color to Enum Value?
this is a great solution, but not for my problem. in any case, thanks for the link, I once needed this, now I know how to do it.
40 replies
CC#
Created by Mideks on 5/2/2023 in #help
❔ How can I bind Fill Color to Enum Value?
but I was still wondering why I can't just bind like this to an enum? I was looking for information about this, and in 2 sources I found just such a code.
40 replies
CC#
Created by Mideks on 5/2/2023 in #help
❔ How can I bind Fill Color to Enum Value?
of course i could be wrong
40 replies
CC#
Created by Mideks on 5/2/2023 in #help
❔ How can I bind Fill Color to Enum Value?
Okay, maybe not. I just really don't think it's a good idea to define something like that in code. because it refers to the presentation.
40 replies
CC#
Created by Mideks on 5/2/2023 in #help
❔ How can I bind Fill Color to Enum Value?
what if i want to add a new theme?
40 replies
CC#
Created by Mideks on 5/2/2023 in #help
❔ How can I bind Fill Color to Enum Value?
but then I won't be able to use resources to define colors.
40 replies
CC#
Created by Mideks on 5/2/2023 in #help
❔ How can I bind Fill Color to Enum Value?
Okay, maybe that's not the worst idea.
40 replies
CC#
Created by Mideks on 5/2/2023 in #help
❔ How can I bind Fill Color to Enum Value?
it's like if I declared the color in vm
40 replies
CC#
Created by Mideks on 5/2/2023 in #help
❔ How can I bind Fill Color to Enum Value?
why?
40 replies
CC#
Created by Mideks on 5/2/2023 in #help
❔ How can I bind Fill Color to Enum Value?
I already thought about putting it into the converter, but it seems to me that this is wrong
40 replies
CC#
Created by Mideks on 5/2/2023 in #help
❔ How can I bind Fill Color to Enum Value?
I would not like to take out the logic of determining the color in the code
40 replies