public void OnMouseLeftButtonDown(string item) { switch (Type) { case IntellisenseTypes.AutoComplete: item = item.Remove(0, VariableName.Length); break; } PositionPointer.InsertTextInRun(item); offset = item.Length; Close(); }
public void Close() { view.IsOpen = false; Keyboard.Focus(ShaderTextBox); ShaderTextBox.CaretPosition = PositionPointer.GetPositionAtOffset(offset); }