internal DynamicFeatureLayer(Canvas dynamicLayerElement) : base() { _symbolSelector = this;//default symbolselector _dynamicLayerCanvas = dynamicLayerElement; _features.CollectionChanged += new System.Collections.Specialized.NotifyCollectionChangedEventHandler(_features_CollectionChanged); }
/// <summary> /// Sets the Symbol Selector /// </summary> /// <param name="selector">Symbol Selector</param> public void SetSymbolSelector(ISymbolSelector selector) { this._selector = selector; if (this._selector != null) { this._selector.IncludeDeliminator = this._includeDelim; } String name; if (selector == null) { name = String.Empty; } else if (selector is WhiteSpaceSelector) { name = "WhiteSpace"; } else if (selector is PunctuationSelector) { name = "Punctuation"; } else if (selector is WhiteSpaceOrPunctuationSelection) { name = "All"; } else if (selector is DefaultSelector) { name = "Default"; } else { name = String.Empty; } this.SetCurrentSymbolSelectorChecked(name); }