Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
135
data binding MaxMaximizedTiles
posted

Getting a parser error when trying to databind the MaxMaximizedTiles property. Is there anything I should be doing differently?

 <igTileView:XamWebTileView.TilePanelSettings>
                <igTileView:TilePanelSettings 
MinimizedStripLocation="Bottom" MinimizedTilePaneSizing="True"
     MaxMaximizedTiles="{Binding MaximizedVisibleTileCount}"
     />
</igTileView:XamWebTileView.TilePanelSettings>

 ;

  • 3071
    Verified Answer
    posted

    Hi Neo,
    You receive this error because the TilePanelSettings object is a DependencyObject.
    Silverlight does not support data binding on any object deriving from DependencyObject, but only on objects deriving from FrameworkElement.
    You can create a property of type TilePanelSettings and then you can use code like this:

     

     

    <c:XamWebTileView x:Name="myView"
                                   DataContext="{StaticResource myDataSource}"
                                   ItemsSource="{Binding Items}"
                                   DefaultItemsContainer="{StaticResource myDataContainer}"
                                   TilePanelSettings="{Binding Settings}"
                                   />

    Marin