I have an ItemTemplate displayed in my ListView. I want to bind display property of my ItemTemplate's div to property of my defined class:
WinJS.Class.define(GroupedItemsGuiEvents);
<div id="itemtemplate" class="itemtemplate" data-win-control="WinJS.Binding.Template">
<div class="item">
... some content ...
</div>
<div data-win-bind="style.display: GroupedItemsGuiEvents.currentMode GroupedItemsGuiEvents.itemTypeToActivationConverter" style="background-color: rgba(255, 255, 255, 0.447); display: none;" ></div>
</div>
</div>
Unfortunatly, it doesn't work. How should I do it?
It works if I do the binding to the property of current item, represented by the ItemTemplate. The problem is, when I want to bind it to a property from a class (GroupedItemsGuiEvents), not the current item.
Can sb help me with this binding?
Thanks, greetings