I am trying to modify the FeatureList for the ViewFieldCrew page/task but I am unable to make a proper reference to that object.
ViewFieldCrewPage vfp;
_fieldcrewFeatureListControl = vfp.BrowseFeaturesControl.FeatureList;
_fieldcrewFeatureListControl.MenuItems.RemoveAt(0);
I am attempting to simply remove the first menu item in the from the FeatureList menu.
The problem occurs at the first line, stating I need to properly set the instance to the object. The problem is I don't how to set it.
I am using the WPF Out of the Box Solution. I have tried the following:
ViewFieldCrewPage vfp = new ViewFieldCrewPage();
ViewFieldCrewTask fieldcrewTask = MobileApplication.Current.Project.Tasks.GetFirstExtensionOfType(typeof(ViewFieldCrewTask)) as ViewFieldCrewTask;
Neither of these allow me to modify the FeatureList menu.
Kindly advise.
Thanks!