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).
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,
I am checking if this is still an issue for you.
If you require any further assistance, please do not hesitate to ask.
I just noticed that I submitted a WPF sample for Silverlight, but it works for both, so you can use the same code in Silverlight.
I am attaching a sample of one way of implementing it.
When you load the sample you will see the second tile maximized. This is initially set up in XAML. Then use the "Add Tile" button to add new tiles. The new tiles are set up using the style like the one you provided, which sets the new tile in maximized state.
Let me know how this works for you, or any questions you may have.
Sam