This repository has been archived by the owner on Oct 2, 2023. It is now read-only.
/
MainWindow.xaml
49 lines (49 loc) · 2.35 KB
/
MainWindow.xaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<Window
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:CustomColorizerSample"
xmlns:dxtm="http://schemas.devexpress.com/winfx/2008/xaml/treemap" x:Class="CustomColorizerSample.MainWindow"
mc:Ignorable="d"
Title="MainWindow" Height="350" Width="525">
<Grid>
<dxtm:TreeMapControl>
<dxtm:TreeMapControl.Colorizer>
<local:CustomColorizer>
<local:CustomColorizer.Palette>
<dxtm:Office2013Palette/>
</local:CustomColorizer.Palette>
</local:CustomColorizer>
</dxtm:TreeMapControl.Colorizer>
<dxtm:TreeMapItemStorage>
<dxtm:TreeMapItem Label="Americas">
<dxtm:TreeMapItem Label="United States"
Value="11384763"/>
<dxtm:TreeMapItem Label="Brazil"
Value="1799612"/>
<dxtm:TreeMapItem Label="Canada"
Value="1572781"/>
</dxtm:TreeMapItem>
<dxtm:TreeMapItem Label="Europe">
<dxtm:TreeMapItem Label="Germany"
Value="3371003"/>
<dxtm:TreeMapItem Label="United Kingdom"
Value="2582021"/>
<dxtm:TreeMapItem Label="France"
Value="2422649"/>
<dxtm:TreeMapItem Label="Italy"
Value="1809047"/>
</dxtm:TreeMapItem>
<dxtm:TreeMapItem Label="Asia">
<dxtm:TreeMapItem Label="China"
Value="17968195"/>
<dxtm:TreeMapItem Label="Japan"
Value="4116242"/>
<dxtm:TreeMapItem Label="India"
Value="2864903"/>
</dxtm:TreeMapItem>
</dxtm:TreeMapItemStorage>
</dxtm:TreeMapControl>
</Grid>
</Window>