I’m trying to find an alternative to List<Tuple<Grid, TabItem, int, string, int>>..., since I need to be able to modify the integers’ values or string’s value.
I say “alternative” because I don’t think it’s possible to modify any values in a tuple. I don’t want to delete it and create it again with different values.
It looks like you should just create your own class to hold these properties, then you can enforce whatever behavior you want. Tuples are mostly just for simple bundling of objects (usually temporarily). If you want an object to hold all these things, be editiable for certain properties (but not others?) then you should just write a class for it.
obviously you should pick variables names that make sense 🙂