void setDefaultValuesForVariables() { this.ClipsToBounds = false; //this.AutoCompleteFetchRequestDelay = DefaultAutoCompleteRequestDelay; this.SortAutoCompleteSuggestionsByClosestMatch = false; this.ApplyBoldEffectToAutoCompleteSuggestions = true; this.ShowTextFieldDropShadowWhenAutoCompleteTableIsOpen = true; this.ShouldResignFirstResponderFromKeyboardAfterSelectionOfAutoCompleteRows = true; this.AutoCompleteRowHeight = 40; this.AutoCompleteFontSize = 13; this.MaximumNumberOfAutoCompleteRows = 3; this.PartOfAutoCompleteRowHeightToCut = 0.5f; this.MaximumEditDistance = 100; this.RequireAutoCompleteSuggestionsToMatchInputExactly = false; this.AutoCompleteTableCellBackgroundColor = UIColor.Clear; this.AutoCompleteRegularFontName = UIFont.SystemFontOfSize(13); this.AutoCompleteBoldFontName = UIFont.BoldSystemFontOfSize(13); this.AutoCompleteSuggestions = new string[] {}; this.AutoCompleteSortQueue = new NSOperation(); this.AutoCompleteSortQueue.Name = String.Format("Autocomplete queue{0}", new Random().Next()); this.AutoCompleteFetchQueue = new NSOperation(); this.AutoCompleteSortQueue.Name = String.Format("Fetch queue{0}", new Random().Next()); }
void setDefaultValuesForVariables() { this.ClipsToBounds = false; //this.AutoCompleteFetchRequestDelay = DefaultAutoCompleteRequestDelay; this.SortAutoCompleteSuggestionsByClosestMatch = false; this.ApplyBoldEffectToAutoCompleteSuggestions = true; this.ShowTextFieldDropShadowWhenAutoCompleteTableIsOpen = true; this.ShouldResignFirstResponderFromKeyboardAfterSelectionOfAutoCompleteRows = true; this.AutoCompleteRowHeight = 40; this.AutoCompleteFontSize = 13; this.MaximumNumberOfAutoCompleteRows = 3; this.PartOfAutoCompleteRowHeightToCut = 0.5f; this.MaximumEditDistance = 100; this.RequireAutoCompleteSuggestionsToMatchInputExactly = false; this.AutoCompleteTableCellBackgroundColor = UIColor.Clear; this.AutoCompleteRegularFontName = UIFont.SystemFontOfSize (13); this.AutoCompleteBoldFontName = UIFont.BoldSystemFontOfSize (13); this.AutoCompleteSuggestions = new string[]{}; this.AutoCompleteSortQueue = new NSOperation (); this.AutoCompleteSortQueue.Name = String.Format ("Autocomplete queue{0}", new Random ().Next ()); this.AutoCompleteFetchQueue = new NSOperation (); this.AutoCompleteSortQueue.Name = String.Format ("Fetch queue{0}", new Random ().Next ()); }
public virtual void DidSelectFeaturesWithFeatureSet(AGSFeatureLayer featureLayer, NSOperation op, AGSFeatureSet featureSet) { AGSMutableEnvelope env = null; foreach (var selectedFature in featureSet.Features) { if (env != null) { env.UnionWithEnvelope(selectedFature.Geometry.Envelope); } else { env = (AGSMutableEnvelope)selectedFature.Geometry.Envelope.MutableCopy(); } } this.MapView.ZoomToGeometry(env, 20, true); }
public virtual void DidSelectFeaturesWithFeatureSet(AGSFeatureLayer featureLayer, NSOperation op, AGSFeatureSet featureSet) { AGSMutableEnvelope env = null; foreach (var selectedFature in featureSet.Features) { if (env != null) { env.UnionWithEnvelope(selectedFature.Geometry.Envelope); } else { env = (AGSMutableEnvelope)selectedFature.Geometry.Envelope.MutableCopy(); } } this.MapView.ZoomToGeometry(env, 20, true); }