Click here to Skip to main content
15,888,802 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Can you help me out how to define Racks and slots of an inventory in wpf where the user selects particular rack to place his equipment via this screen.. The user can view empty slots in one color and filled in different... want an idea how to achive this requirement...
Posted

Well, displaying the slots in different colours is a fairly trivial thing to do. Assuming that you simply need to identify empty slots as ones that are null, all you need do is use a value converter to return a different colour, and set the background that way, or use a DataTrigger and set the background there.
 
Share this answer
 
You could use two different types of buttons - one for empty and one for filled racks.
Style each of them separately and create apply these styles based on the rack type.
 
Share this answer
 
Comments
Pete O'Hanlon 6-Apr-11 14:44pm    
There's no need to do this. A simple DataTrigger would suffice.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900