private void SetSortOrder(ChangeEvent <float> evt) { // The field is bound, but we need to do extra operations when the value changes. UIDocument uiDocument = (UIDocument)target; if (uiDocument.sortingOrder != evt.newValue) { m_SortOrderField.schedule.Execute(() => uiDocument.ApplySortingOrder()); } }