Closed chrisahill closed 10 years ago
When using geodatabase feature that uses RangeValueDomain attibute, it is rendered as a combobox instead of textbox.
<Page x:Class="RangeDomainValueToolkit.MainPage" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:local="using:RangeDomainValueToolkit" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d" xmlns:esri="using:Esri.ArcGISRuntime.Controls" xmlns:layers="using:Esri.ArcGISRuntime.Layers" xmlns:data="using:Esri.ArcGISRuntime.Data" xmlns:symb="using:Esri.ArcGISRuntime.Symbology" xmlns:geom="using:Esri.ArcGISRuntime.Geometry" xmlns:toolkit="using:Esri.ArcGISRuntime.Toolkit.Controls" Background="{ThemeResource ApplicationPageBackgroundThemeBrush}"> <Grid> <toolkit:FeatureDataForm x:Name="MyDataForm" Grid.Row="1" BorderThickness="0" Margin="0,-5,0,0" Background="Transparent"/> </Grid> </Page>
public sealed partial class MainPage : Page { public MainPage() { this.InitializeComponent(); Initialize(); } private async void Initialize() { var table = new ServiceFeatureTable( new Uri("http://sampleserver6.arcgisonline.com/arcgis/rest/services/ServiceRequest/FeatureServer/1")); await table.InitializeAsync(); var results = await table.QueryAsync(new QueryFilter() { WhereClause = "1=1" }); MyDataForm.GeodatabaseFeature = results.First() as GeodatabaseFeature; } }
Issue logged internally
When using geodatabase feature that uses RangeValueDomain attibute, it is rendered as a combobox instead of textbox.