public FeatureLayerSelection() { InitializeComponent(); MyMap.Extent = initialExtent; editor = LayoutRoot.Resources["MyEditor"] as Editor; }