Skip to content

Commit 9f458e5

Browse files
committed
Removed last reference to manual calcite fonts
1 parent 7811dcc commit 9f458e5

File tree

4 files changed

+8
-15
lines changed

4 files changed

+8
-15
lines changed

src/WinUI/ArcGIS.WinUI.Viewer/ArcGIS.WinUI.Viewer.csproj

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@
4646
</Content>
4747
</ItemGroup>
4848
<ItemGroup>
49-
<None Remove="Resources\Fonts\calcite-ui-icons-24.ttf" />
5049
<None Remove="Resources\github-mark.png" />
5150
<None Remove="ScreenshotTab.xaml" />
5251
</ItemGroup>
@@ -83,12 +82,6 @@
8382
</Compile>
8483
</ItemGroup>
8584

86-
<ItemGroup>
87-
<Content Include="Resources\Fonts\calcite-ui-icons-24.ttf">
88-
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
89-
</Content>
90-
</ItemGroup>
91-
9285
<ItemGroup>
9386
<EmbeddedResource Include="Assets\github-mark.png" />
9487
</ItemGroup>

src/WinUI/ArcGIS.WinUI.Viewer/Converters/DirectionPointTypeToIconConverter.cs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
11
using Microsoft.UI.Xaml.Data;
22
using System;
33
using System.Collections.Generic;
4+
using Esri.Calcite.WinUI;
5+
46
namespace ArcGIS.WinUI.Viewer.Converters
57
{
68
internal class DirectionPointTypeToIconConverter : IValueConverter
79
{
810
// Create a dictionary of direction point type and corresponding icons.
9-
private Dictionary<int, string> _directionIcons = new()
11+
private Dictionary<int, char> _directionIcons = new()
1012
{
11-
{51, "\xe259"}, {52, "\xe2aa"}, {301, "\xe124"}, {200, "\xe122"}, {305, "\xe24e"},
12-
{205, "\xe199"}, {50, "\xe25a"}
13+
{51, (char)(int)CalciteIcon.RouteFrom}, {52, (char)(int)CalciteIcon.Straight}, {301, (char)(int)CalciteIcon.ForkRight}, {200, (char)(int)CalciteIcon.ForkLeft}, {305, (char)(int)CalciteIcon.Right},
14+
{205, (char)(int)CalciteIcon.Left}, {50, (char)(int)CalciteIcon.RouteTo}
1315
};
1416

1517
public object Convert(object value, Type targetType, object parameter, string language)
@@ -22,4 +24,4 @@ public object ConvertBack(object value, Type targetType, object parameter, strin
2224
throw new NotImplementedException();
2325
}
2426
}
25-
}
27+
}
Binary file not shown.

src/WinUI/ArcGIS.WinUI.Viewer/Samples/Layers/DisplayRouteLayer/DisplayRouteLayer.xaml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
<UserControl.Resources>
88
<converters:DirectionPointTypeToIconConverter x:Key="Converter" />
9-
<FontFamily x:Key="Calcite">/Resources/Fonts/calcite-ui-icons-24.ttf#calcite-ui-icons-24</FontFamily>
109
</UserControl.Resources>
1110
<Grid>
1211
<esriUI:MapView x:Name="MyMapView" />
@@ -28,8 +27,8 @@
2827
<TextBlock Grid.Column="1" Text="." />
2928
<TextBlock Grid.Column="2"
3029
Margin="0,0,0,10"
31-
FontFamily="{StaticResource Calcite}"
32-
FontSize="20"
30+
FontFamily="{StaticResource CalciteUIIconsMediumFontFamily}"
31+
FontSize="24"
3332
Text="{Binding Attributes[DirectionPointType], Converter={StaticResource Converter}}" />
3433
<TextBlock Grid.Column="3"
3534
Text="{Binding Attributes[DisplayText]}"
@@ -42,5 +41,4 @@
4241
</ScrollViewer>
4342
</Border>
4443
</Grid>
45-
4644
</UserControl>

0 commit comments

Comments
 (0)