This is a showcase for integrating the Acrolinx Sidebar into a .NET application.
See: Build With Acrolinx
Acrolinx Sidebar Web Live Demo
A downloadable build of the .NET Sidebar Sample can be found in the release section.
The Acrolinx Sidebar is designed to show up beside the window where you edit your content. You use it for checking, reviewing, and correcting your content. To get an impression what the Sidebar looks like in existing integrations, have a look at Sidebar Quick Start.
Please contact Acrolinx SDK support for consulting and getting your integration certified. This sample works with a test license on an internal Acrolinx URL. This license is only meant for demonstration and developing purposes. Once you finished your integration, you'll have to get a license for your integration from Acrolinx.
Acrolinx offers different other SDKs, and examples for developing integrations.
Before you start developing your own integration, you might benefit from looking into:
- Build With Acrolinx,
- the Guidance for the Development of Acrolinx Integrations,
- the Acrolinx SDKs, and
- the Acrolinx Demo Projects.
The SDK uses Microsoft Web View 2 as browser control to render the Sidebar.
WebView 2 comes preinstalled with Windows 11 and above.
Windows 10 and 7 users are recommended to install WebVew 2 evergreen installer from Microsoft.
Link to download evergreen installer for webview 2 from Microsoft: https://developer.microsoft.com/en-us/microsoft-edge/webview2/
- Make sure that you have installed Microsoft Visual Studio with C# support version 2019 or later.
- Since the Acrolinx Sidebar performs static code analysis to improve quality, you also have to install Code Contracts for .NET.
- Open the solution file
Acrolinx.Demo.Sidebar.Net.sln
with Visual Studio. - Run the solution.
Visual Studio downloads the required dependencies and compiles the Acrolinx .NET Sidebar Demo solution using NuGet.
Note: The dependency download may fail on the first build. This problem can usually be solved by building a second time.
-
Use the Acrolinx Sidebar .NET SDK NuGet package as dependency.
-
After you resolve the Acrolinx .NET Sidebar dependency, you can start using it in your project. In the Designer View of your form, reference the file
Acrolinx.Sidebar.dll
using the "Choose Items" function of the Toolbox: -
You should be able to drag and drop the Acrolinx Sidebar to your form:
-
Usually you dock (
Properties
->Layout
->Dock
->Right
) the Acrolinx Sidebar to the right side of your form or some child panel: -
Somewhere in your initialization code, tell the Sidebar to start:
await acrolinxSidebar1.Start();
As the Sidebar uses Microsoft's WebView 2 control, which is asynchronous in nature, make sure you handle asynchronous code by appropriately using async/await keywords.
-
Run the application. If you see the Acrolinx Sidebar, then everything went well.
-
The next step is to implement the extraction and the events of the Sidebar:
Have a look at the sample source code provided in the sample project.
To configure the Sidebar, use the properties window:
- Provides lookup functionality.
- Start page: Provides an interactive way to sign in to Acrolinx with built-in error handling.
- Logger: Provides logging using Log4net.
- Acrolinx Storage: The SDK uses its own storage
mechanism using the Windows registry:
- Registry path:
HKCU\Software\Acrolinx\Plugins\Storage\[KEY]
- Fallback path:
HKLM\Software\Acrolinx\Plugins\Storage\[KEY]
- Registry path:
- This DEMO is built on the Sidebar SDK .NET.
- The Sidebar SDKs are based on the Acrolinx Sidebar Interface.
Copyright 2016-present Acrolinx GmbH
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at:
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
For more information visit: https://www.acrolinx.com