System.Windows.Data Error: 40 : BindingExpression path error: 'MaintainAspectRatioEnabled' property not found on 'object' ''EditorWidget' (Name='')'. BindingExpression:Path=MaintainAspectRatioEnabled; DataItem='EditorWidget' (Name=''); target element is 'Editor' (HashCode=43793330); target property is 'MaintainAspectRatio' (type 'Boolean')
Hi,
I'm using ArcGIS Runtime for WPF version 10.2.3 and unfortunately after two years there is still the same issue with SaveEdits using LocalFeatureService and layer with enabled Z values.
Is there any patch to fix it ?
I can get it to work if I remove the Z values before creating the MPK. But I'm still having issues when editing layers with Z values.
<Grid x:Name="LayoutRoot" Background="White" > <Grid.Resources> <LinearGradientBrush x:Key="PanelGradient" EndPoint="0.5,1" StartPoint="0.5,0"> <LinearGradientBrush.RelativeTransform> <TransformGroup> <ScaleTransform CenterY="0.5" CenterX="0.5"/> <SkewTransform CenterY="0.5" CenterX="0.5"/> <RotateTransform Angle="176" CenterY="0.5" CenterX="0.5"/> <TranslateTransform/> </TransformGroup> </LinearGradientBrush.RelativeTransform> <GradientStop Color="#FF145787" Offset="0.16"/> <GradientStop Color="#FF3D7FAC" Offset="0.502"/> <GradientStop Color="#FF88C5EF" Offset="0.984"/> </LinearGradientBrush> </Grid.Resources> <esri:Map x:Name="MyMap"> <esri:ArcGISTiledMapServiceLayer ID="MyLayer" Url="http://services.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer" /> <esri:ArcGISLocalFeatureLayer ID="EMS" Path="..\..\..\Tokanui EMS GDB.mpk" LayerName="ems" AutoSave="True" Editable="True" OutFields="*"></esri:ArcGISLocalFeatureLayer> <esri:ArcGISLocalFeatureLayer ID="Paddocks" Path="..\..\..\Tokanui Paddocks GDB.mpk" LayerName="paddocks" AutoSave="True" Editable="True" OutFields="*"></esri:ArcGISLocalFeatureLayer> </esri:Map> <Border Background="{StaticResource PanelGradient}" BorderThickness="1" CornerRadius="5" HorizontalAlignment="Right" VerticalAlignment="Top" Padding="5" BorderBrush="Black" Margin="5" > <Border.Effect> <DropShadowEffect Color="Black" Direction="-45" BlurRadius="20" Opacity=".75" /> </Border.Effect> <esri:TemplatePicker x:Name="MyTemplatePicker" Map="{Binding ElementName=MyMap, Mode=OneWay}" Loaded="MyTemplatePicker_Loaded"/> </Border> </Grid>
public partial class MainWindow : Window { public MainWindow() { // License setting and ArcGIS Runtime initialization is done in Application.xaml.cs. InitializeComponent(); } private void MyTemplatePicker_Loaded(object sender, RoutedEventArgs e) { string[] myLayerIDs = { "EMS", "Paddocks" }; MyTemplatePicker.LayerIDs = myLayerIDs; } }
ESRI.ArcGIS.Client.Local.LocalServerException was unhandled Message=Failed to create service tokanui paddocks gdb MapServer. Service failed to initialize: Error unpacking map package Error code: 500 Source=ESRI.ArcGIS.Client
Les membres connectés peuvent publier, suivre les mises à jour, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.