I have a style defined for XamTile as follows:
<Style TargetType="ig:XamTile" x:Key="fistyle"> <Setter Property="IsMaximized" Value="{Binding Selected,Mode=TwoWay}"/> </Style>Within the XamTileManager this style is being set as the ItemContainerStyle. The theory is that as I add new items to the TileManager I can set Selected=true on the items viewmodel to make the new tile Maximzed.
Unfortunately, it doesn't work. There are no binding errors and I have confirmed the Style is applied. (I set IsHitTestVisible=False in the style to test it).
Hello,
I am checking if this is still an issue for you.
If you require any further assistance, please do not hesitate to ask.
Hi guys,
I have the exact same problem in my Silverlight5 application. As it appears the problem arise when the binding on IsMaximized is made TwoWay.
I changed the WPF example provided above to SL5, using Infragistics 2012-1 (latest SR). When run it worked as expected, maximizing each new tile added by clicking the button.
But when I then changed the IsMaximized binding to Mode=TwoWay it did not work anymore. The tiles now added by clicking the button did not maximize automatically.
The reason for binding TwoWay is that I want to keep track in the viewmodel of each tile whether the tile displays fully or not.
Regards, Mikael
Hello Mikael,
This approach was intended for one-way binding. When you change the source to which the style is bound to, the new added tiles will not get the maximized state as they are based on the property value in the style.
This was only for new added tiles. It could be applied to the tiles in general, because only one tile at a time can be in maximized state.
If you can attach a code for me to see, or explain how you are trying to monitor the visual state of the tiles in your view model, I may be able to make a suggestion, but this approach may not be what you are looking for.
Thank you,
Sam