<syncfusion:ChromelessWindow x:Class="TreeMapDrillDown.MainWindow" UseNativeChrome="True"
xmlns:local="clr-namespace:TreeMapDrillDown"
xmlns:syncfusion="http://schemas.syncfusion.com/wpf"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
syncfusion:SkinStorage.VisualStyle="Metro" Icon="App.ico"
ResizeMode="CanResizeWithGrip"
WindowStartupLocation="CenterScreen">
<syncfusion:ChromelessWindow.Resources>
<DataTemplate x:Key="TreeMapDataTemplate">
<Grid>
<Grid.DataContext>
<local:MyTreeMap/>
</Grid.DataContext>
<Grid.RowDefinitions>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<syncfusion:SfTreeMap EnableDrillDown="True" Grid.Row="0"
ItemsSource="{Binding DataContext.TestSales, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Grid}}}"
Levels="{Binding DataContext.MyTreeMapHierarchicalLevels, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Grid}}}"
WeightValuePath="Sales"
ColorValuePath="Sales"
Margin="10"
ShowToolTip="False">
</syncfusion:SfTreeMap>
</Grid>
</DataTemplate>
</syncfusion:ChromelessWindow.Resources>
<ContentControl ContentTemplate="{StaticResource TreeMapDataTemplate}"/>
</syncfusion:ChromelessWindow>