-
Notifications
You must be signed in to change notification settings - Fork 1
/
DetailedView.xaml
50 lines (50 loc) · 2.46 KB
/
DetailedView.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
50
<UserControl
x:Class="DXDocumentUIServiceSample.View.DetailedView"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:ViewModel="clr-namespace:DXDocumentUIServiceSample.ViewModel"
xmlns:common="clr-namespace:DXDocumentUIServiceSample.Common"
xmlns:dxc="http://schemas.devexpress.com/winfx/2008/xaml/charts">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition />
</Grid.RowDefinitions>
<GroupBox Grid.Row="0" Header="User Info">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition />
<ColumnDefinition />
</Grid.ColumnDefinitions>
<StackPanel Grid.Column="0">
<TextBlock Text="{Binding Path=ID, Converter={common:StringAggregationConverter}, ConverterParameter=ID}" />
<TextBlock Text="{Binding NickName, Converter={common:StringAggregationConverter}, ConverterParameter=Nick}" />
</StackPanel>
<StackPanel Grid.Column="1">
<TextBlock Text="{Binding Registration, Converter={common:StringAggregationConverter}, ConverterParameter=Registration}" />
<TextBlock Text="{Binding Rating, Converter={common:StringAggregationConverter}, ConverterParameter=Rating}" />
</StackPanel>
</Grid>
</GroupBox>
<GroupBox Grid.Row="1" Header="Activity By User">
<dxc:ChartControl>
<dxc:XYDiagram2D>
<dxc:SplineAreaSeries2D
ArgumentDataMember="Month"
DataSource="{Binding GlobalUserActivity}"
DisplayName="Global Activity"
LabelsVisibility="True"
Transparency="0.5"
ValueDataMember="Count" />
<dxc:SplineAreaSeries2D
ArgumentDataMember="Month"
DataSource="{Binding LocalUserActivity}"
DisplayName="Local Activity"
LabelsVisibility="True"
Transparency="0.5"
ValueDataMember="Count" />
</dxc:XYDiagram2D>
</dxc:ChartControl>
</GroupBox>
</Grid>
</UserControl>