Hi,
We use to have styling on our tiles but it seems to have disappeared after going from 10.1 to 10.2. Any ideas on what might have happened?
XAML:
<UserControl x:Class="Core.DashboardControl" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:igTiles="http://infragistics.com/Tiles" xmlns:igDock="http://infragistics.com/DockManager" xmlns:igWindows="http://infragistics.com/Windows" xmlns:ig="http://schemas.infragistics.com/xaml" xmlns:igPrim="http://schemas.infragistics.com/xaml/primitives" mc:Ignorable="d" d:DesignHeight="300" d:DesignWidth="300" >
<UserControl.Resources> <ResourceDictionary> <ResourceDictionary.MergedDictionaries> <ResourceDictionary Source="TilesOffice2k7Blue_Brushes.xaml"/> </ResourceDictionary.MergedDictionaries>
<Style TargetType="{x:Type ig:XamTile}"> <Setter Property="Background" Value="{DynamicResource {x:Static igTiles:TileBrushKeys.TileContentBackgroundFillKey}}"/> <Setter Property="BorderBrush" Value="{DynamicResource {x:Static igTiles:TileBrushKeys.TileBorderBrushFillKey}}"/> <Setter Property="BorderThickness" Value="1,1,1,1"/> <Setter Property="Template"> <Setter.Value> <ControlTemplate TargetType="{x:Type ig:XamTile}"> <AdornerDecorator> <igWindows:CardPanel Margin="0"> <Border x:Name="ContentBorder" Background="{DynamicResource {x:Static igTiles:TileBrushKeys.TileContentBackgroundFillKey}}" BorderBrush="{DynamicResource {x:Static igTiles:TileBrushKeys.TileContentBackgroundFillKey}}" BorderThickness="1" Margin="0" > <DockPanel Margin="1"> <igPrim:TileHeaderPresenter x:Name="TileHeader" AutomationProperties.AutomationId="TileHeader" DockPanel.Dock="Top" Content="{TemplateBinding Header}" ContentTemplate="{TemplateBinding HeaderTemplate}" Tile="{Binding RelativeSource={x:Static RelativeSource.TemplatedParent}}" Visibility="Visible" /> <!--ContentTemplateSelector="{TemplateBinding HeaderTemplateSelector}"--> <!-- Content area--> <ContentPresenter Visibility="{TemplateBinding ContentVisibility}" /> </DockPanel> </Border> <Rectangle x:Name="Overlay"/> </igWindows:CardPanel> </AdornerDecorator> <ControlTemplate.Triggers> <!--<Trigger Property="IsSwapTarget" Value="True"> <Setter TargetName="Overlay" Property="Fill" Value="{DynamicResource {x:Static igTiles:TileBrushKeys.TileSwapTargetBgBrushFillKey}}"/> </Trigger>--> </ControlTemplate.Triggers> </ControlTemplate> </Setter.Value> </Setter> </Style> </ResourceDictionary> </UserControl.Resources> <Grid Margin="1,1,1,1"> <igDock:XamDockManager x:Name="dockingControl" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Theme="IGTheme" FlyoutAnimation="Fade"> <igDock:XamDockManager.Panes> <igDock:SplitPane x:Name="legendPane" igDock:XamDockManager.InitialLocation="DockedBottom" Width="Auto" Height="150" ScrollViewer.VerticalScrollBarVisibility="Visible"> <igDock:ContentPane Header="Legend" Name="legendContentPane" AllowClose="False"> </igDock:ContentPane> </igDock:SplitPane> </igDock:XamDockManager.Panes> <igDock:DockManagerPanel> <ig:XamTileManager Name="xamTiles" BorderBrush="Black"> <ig:XamTile x:Name="firstTile" Header="Tile 1" Content="Content Area" IsMaximized="True" /> </ig:XamTileManager> </igDock:DockManagerPanel> </igDock:XamDockManager> </Grid></UserControl>
Hello Joseph,
I have been looking into your issue and I was wondering whether you have in mind that you update from 11.1 to 11.2. Looking through your code I have noticed that you are using our XamTileManger and trying to set a Style for XamTileControl(ig:XamTile). I can suggest looking through the following forum blog in our community where it is explained that XamTileManager replaces XamTileView and XamTilesControl in NetAdvantage 11.2 :
http://blogs.infragistics.com/blogs/jason_beres/archive/2011/11/10/important-product-changes-and-control-retirements-in-2011-2.aspx
If you need any further assistance on this matter, feel free to ask.
Thanks for that.
I'm a bit confused on how to change the IsDragging and IsSwapTarget property triggers for the XamTileManager and still have a custom template for the XamTiles. Can you please point me to some examples?
Hello,
I am just checking if you require any further assistance on the matter.
We're now using a modified version of the template now and some style changes. One of the things we wanted to do was change the style to show the currently active tile (e.g. like a highlighted tile header). Do you have some example code? Had a look at the Focusable property on the XamTile and XamTileManager but didn't seem to do anything.
Thanks