Here is my XAML for window:
<Window
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:syntaxeditor="http://schemas.actiprosoftware.com/winfx/xaml/syntaxeditor" x:Class="WpfApplication1.MainWindow"
Title="MainWindow" Height="350" Width="525">
<Grid>
<syntaxeditor:SyntaxEditor HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
<syntaxeditor:EditorDocument>
<syntaxeditor:EditorDocument.Language>
<syntaxeditor:JavaScriptSyntaxLanguage/>
</syntaxeditor:EditorDocument.Language>
</syntaxeditor:EditorDocument>
</syntaxeditor:SyntaxEditor>
</Grid>
</Window>
Code-behind file:
namespace WpfApplication1
{
/// <summary>
/// Interaction logic for MainWindow.xaml
/// </summary>
public partial class MainWindow : Window
{
public MainWindow()
{
InitializeComponent();
}
}
}
Exception type: ArgumentOutOfRangeException
ParamName: offset
Source: ActiproSoftware.Text.Wpf
StackTrace:
в #PZc.#VZc.#29c(Int32 #fd)
в #Q2b.#zZc..ctor(#OZc textData, Int32 startOffset, String deletedText, String insertedText, Boolean isTextReplacement, Boolean isProgrammaticTextReplacement, Boolean isIgnoredForTranslation)
в ActiproSoftware.Text.Implementation.TextDocumentBase.#O7c(#g7b #g7b)
в #Q2b.#g7b.Apply()
в ActiproSoftware.Text.Implementation.TextDocumentBase.ReplaceText(ITextChangeType type, Int32 offset, Int32 length, String text, ITextChangeOptions options)
в ActiproSoftware.Text.Implementation.TextDocumentBase.InsertText(ITextChangeType type, Int32 offset, String text, ITextChangeOptions options)
в ActiproSoftware.Text.Analysis.Implementation.DelimiterAutoCompleter.#4Ch(TextSnapshotOffset #uxf, Char #YJf)
в ActiproSoftware.Text.Analysis.Implementation.DelimiterAutoCompleter.OnDocumentTextChanged(SyntaxEditor editor, EditorSnapshotChangedEventArgs e)
в ActiproSoftware.Text.Analysis.Implementation.DelimiterAutoCompleter.#B1b(SyntaxEditor #qxf, EditorSnapshotChangedEventArgs #yhb)
в ActiproSoftware.Windows.Controls.SyntaxEditor.SyntaxEditor.RaiseDocumentTextChangedEvent(ITextSnapshot oldSnapshot, ITextSnapshot newSnapshot, ITextChange textChange)
в ActiproSoftware.Windows.Controls.SyntaxEditor.SyntaxEditor.OnDocumentTextChanged(Object sender, TextSnapshotChangedEventArgs e)
в ActiproSoftware.Text.Implementation.TextDocumentBase.OnTextChanged(TextSnapshotChangedEventArgs e)
в ActiproSoftware.Text.Implementation.CodeDocument.OnTextChanged(TextSnapshotChangedEventArgs e)
в ActiproSoftware.Text.Implementation.TextDocumentBase.#O7c(#g7b #g7b)
в #Q2b.#g7b.Apply()
в ActiproSoftware.Windows.Controls.SyntaxEditor.Primitives.EditorView.BasicReplaceSelectedText(ITextChangeType type, String text, IEditorViewTextChangeOptions options)
в ActiproSoftware.Windows.Controls.SyntaxEditor.Primitives.EditorView.ReplaceSelectedText(ITextChangeType type, String text, IEditorViewTextChangeOptions options)
в ActiproSoftware.Windows.Controls.SyntaxEditor.EditActions.TypingAction.Execute(IEditorView view)
в ActiproSoftware.Windows.Controls.SyntaxEditor.Primitives.EditorView.ExecuteEditAction(IEditAction action)
в ActiproSoftware.Windows.Controls.SyntaxEditor.Primitives.EditorView.ProcessOnTextInput(TextCompositionEventArgs e)
в ActiproSoftware.Windows.Controls.SyntaxEditor.Primitives.EditorView.OnTextInput(TextCompositionEventArgs e)
в System.Windows.UIElement.OnTextInputThunk(Object sender, TextCompositionEventArgs e)
в System.Windows.Input.TextCompositionEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
в System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
в System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
в System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
в System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
в System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)
в System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted)
в System.Windows.Input.InputManager.ProcessStagingArea()
в System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
в System.Windows.Input.TextCompositionManager.UnsafeCompleteComposition(TextComposition composition)
в System.Windows.Input.TextCompositionManager.PostProcessInput(Object sender, ProcessInputEventArgs e)
в System.Windows.Input.InputManager.RaiseProcessInputEventHandlers(ProcessInputEventHandler postProcessInput, ProcessInputEventArgs processInputEventArgs)
в System.Windows.Input.InputManager.ProcessStagingArea()
в System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
в System.Windows.Input.TextCompositionManager.UnsafeStartComposition(TextComposition composition)
в System.Windows.Input.TextCompositionManager.PostProcessInput(Object sender, ProcessInputEventArgs e)
в System.Windows.Input.InputManager.RaiseProcessInputEventHandlers(ProcessInputEventHandler postProcessInput, ProcessInputEventArgs processInputEventArgs)
в System.Windows.Input.InputManager.ProcessStagingArea()
в System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
в System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
в System.Windows.Interop.HwndKeyboardInputProvider.ProcessTextInputAction(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
в System.Windows.Interop.HwndSource.OnPreprocessMessage(Object param)
в System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
в MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
в System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
в System.Windows.Threading.Dispatcher.Invoke(DispatcherPriority priority, Delegate method, Object arg)
в System.Windows.Interop.HwndSource.OnPreprocessMessageThunk(MSG& msg, Boolean& handled)
в System.Windows.Interop.HwndSource.WeakEventPreprocessMessage.OnPreprocessMessage(MSG& msg, Boolean& handled)
в System.Windows.Interop.ComponentDispatcherThread.RaiseThreadMessage(MSG& msg)
в System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
в System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
в System.Windows.Threading.Dispatcher.Run()
в System.Windows.Application.RunDispatcher(Object ignore)
в System.Windows.Application.RunInternal(Window window)
в System.Windows.Application.Run(Window window)
в System.Windows.Application.Run()
в WpfApplication1.App.Main() в c:\Users\Karlen\AppData\Local\Temporary Projects\WpfApplication1\obj\Debug\App.g.cs:строка 0
в System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
в System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
в Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
в System.Threading.ThreadHelper.ThreadStart_Context(Object state)
в System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
в System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
в System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
в System.Threading.ThreadHelper.ThreadStart()
TargetSite: {Int32 #29c(Int32)}