Skip to content

Commit 237aa84

Browse files
Cleared Warnings
1 parent 89ede61 commit 237aa84

File tree

5 files changed

+7
-3
lines changed

5 files changed

+7
-3
lines changed

TreeMapLayoutTypeChange/TreeMapLayoutTypeChange/MainPage.xaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
FontAttributes="Bold" />
2323

2424
<editors:SfComboBox x:Name="comboBox"
25+
x:DataType="local:LayoutTypeViewModel"
2526
Grid.Row="2"
2627
WidthRequest="250"
2728
HeightRequest="50"
@@ -36,6 +37,7 @@
3637
</editors:SfComboBox>
3738

3839
<treemap:SfTreeMap x:Name="treeMap"
40+
x:DataType="local:PopulationViewModel"
3941
Margin="8"
4042
Grid.Row="1"
4143
DataSource="{Binding PopulationDetails}"

TreeMapLayoutTypeChange/TreeMapLayoutTypeChange/Model/LayoutTypes.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ public class LayoutTypes
44
{
55
public LayoutTypes()
66
{
7+
Name = string.Empty;
78
}
89

910
/// <summary>

TreeMapLayoutTypeChange/TreeMapLayoutTypeChange/Model/PopulationDetails.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ public class PopulationDetails
44
{
55
public PopulationDetails()
66
{
7+
Country = string.Empty;
8+
Continent = string.Empty;
79
}
810

911
/// <summary>

TreeMapLayoutTypeChange/TreeMapLayoutTypeChange/ViewModel/LayoutTypeViewModel.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public class LayoutTypeViewModel
1313
public ObservableCollection<LayoutTypes> LayoutType { get; set; }
1414

1515
/// <summary>
16-
/// Initializes a new instance of the <see cref="LayoutTypeViewModel"/> class.
16+
/// Initializes a new instance of the <see cref="LayoutTypes"/> class.
1717
/// </summary>
1818
public LayoutTypeViewModel()
1919
{

TreeMapLayoutTypeChange/TreeMapLayoutTypeChange/ViewModel/PopulationViewModel.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
using System.Collections.ObjectModel;
2-
using TreeMapLayoutTypeChange;
32

43
namespace TreeMapLayoutTypeChange;
54

@@ -9,7 +8,7 @@ namespace TreeMapLayoutTypeChange;
98
public class PopulationViewModel
109
{
1110
/// <summary>
12-
/// Initializes a new instance of the <see cref="PopulationViewModel"/> class.
11+
/// Initializes a new instance of the <see cref="PopulationDetails"/> class.
1312
/// </summary>
1413
public PopulationViewModel()
1514
{

0 commit comments

Comments
 (0)