Hey, I have a problem with the security widget. When I launch my application with this code private void button1_Click(object sender, RoutedEventArgs e)
{
IdentityManager.Current.ChallengeMethod = SignInDialog.DoSignIn;
featureLayer = new FeatureLayer()
{
ID = "distritos ",
DisplayName = "distritos Layer",
Url = "http://kartgis:6080/arcgis/rest/services/biodiversidad_galicia/MapServer/0",
Mode = FeatureLayer.QueryMode.OnDemand
};
// featureLayer.InitializationFailed += FeatureLayer_InitializationFailed;
featureLayer.Initialized += featureLayer_Initialized;
MyMap.Layers.Add(featureLayer);
}
void featureLayer_Initialized(object sender, EventArgs e)
{
if (featureLayer.EditUserName != null)
{
if (featureLayer.EditUserName != "")
{
MyMap.Extent = (sender as Layer).FullExtent;
vic.Visibility = System.Windows.Visibility.Visible;
}
}
}
In xaml go this, and the resource for the sign in<esri:SignInDialog x:Name="MySignInDialog" Style="{StaticResource SignInDialogTemplate}" Visibility="Collapsed"
Title="LOGIN TO ACCESS" UserName="user1" Password="pass.word1" Width="300" Height="260" />
Don't show me anything. 4 months ago, it show me the window to login... ¿How can I solve it?Thx for all!