Skip to content

Commit 7f08d5e

Browse files
authored
Fix DistanceMeasurement Sample: ComboBox selection not displaying on startup (#1735)
1 parent a97d1ee commit 7f08d5e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/WinUI/ArcGIS.WinUI.Viewer/Samples/Analysis/DistanceMeasurement/DistanceMeasurement.xaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ private void Initialize()
8686

8787
// Configure the unit system selection box.
8888
UnitSystemCombo.ItemsSource = Enum.GetValues(typeof(UnitSystem)).OfType<UnitSystem>().Select(e => e.ToString());
89-
UnitSystemCombo.SelectedItem = _distanceMeasurement.UnitSystem;
89+
UnitSystemCombo.SelectedItem = _distanceMeasurement.UnitSystem.ToString();
9090

9191
// Update the unit system selection.
9292
UnitSystemCombo.SelectionChanged += (sender, args) =>

0 commit comments

Comments
 (0)