Skip to content

Commit 88ff17f

Browse files
authored
Added sample
1 parent b58297d commit 88ff17f

File tree

15 files changed

+610
-0
lines changed

15 files changed

+610
-0
lines changed
4.19 KB
Binary file not shown.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<Application x:Class="EditDemo.App"
2+
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
3+
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
4+
xmlns:syncfusion="http://schemas.syncfusion.com/wpf"
5+
StartupUri="Window1.xaml">
6+
<Application.Resources>
7+
</Application.Resources>
8+
</Application>
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Configuration;
4+
using System.Data;
5+
using System.Linq;
6+
using System.Windows;
7+
using Syncfusion.Licensing;
8+
using System.Reflection;
9+
using System.Text;
10+
using System.IO;
11+
12+
namespace EditDemo
13+
{
14+
/// <summary>
15+
/// Interaction logic for App.xaml
16+
/// </summary>
17+
public partial class App : Application
18+
{
19+
public App()
20+
{
21+
SyncfusionLicenseProvider.RegisterLicense(DemoCommon.FindLicenseKey());
22+
}
23+
}
24+
public static class DemoCommon
25+
{
26+
/// <summary>
27+
/// Helper method to find a syncfusion license key from the Common folder
28+
/// </summary>
29+
/// <param name="fileName">File name of the syncfusion license key</param>
30+
/// <returns></returns>
31+
public static string FindLicenseKey()
32+
{
33+
int levelsToCheck = 12;
34+
string filePath = @"Common\SyncfusionLicense.txt";
35+
36+
string rootPath = System.IO.Path.GetDirectoryName(Assembly.GetEntryAssembly().CodeBase.Replace(@"file:///", ""));
37+
38+
for (int n = 0; n < levelsToCheck; n++)
39+
{
40+
string fileDataPath = System.IO.Path.Combine(rootPath, filePath);
41+
if (System.IO.File.Exists(fileDataPath))
42+
return File.ReadAllText(fileDataPath, Encoding.UTF8);
43+
DirectoryInfo rootDirectory = Directory.GetParent(rootPath);
44+
if (rootDirectory == null)
45+
break;
46+
rootPath = rootDirectory.FullName;
47+
}
48+
return string.Empty;
49+
}
50+
}
51+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
Essential Edit for WPF is a text and code editor that enables users to view, modify, and save text and programming files.
2+
3+
It ships with all the basic functionalities of a code editor, such as file and clipboard operations, undo and redo options, find and replace operations, and so on.
4+
5+
With this control, users can view and modify programming codes with rich syntax highlighting, similar to Microsoft Visual Studio.
6+
7+
The edit control also provides outlining support for programming languages such as C#, VB.NET, XAML, and XML. With the outlining support, users can expand or collapse a set of codes within the content of the control to organize codes more effectively.
8+
9+
Essential Edit also enables users to display a list of possible words using IntelliSense support. IntelliSense support is enabled for languages such as C# and VB.NET, wherein classes, properties, events, and methods are displayed from pre-built assemblies mentioned by the user.
10+
11+
The edit control also contains a variety of built-in routed commands to perform common text editing operations such as open, save, clipboard operations, indenting, commenting codes, and much more.
Lines changed: 137 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,137 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="15.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<PropertyGroup>
4+
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
5+
<Platform Condition=" '$(Platform)' == '' ">x86</Platform>
6+
<ProductVersion>8.0.30703</ProductVersion>
7+
<SchemaVersion>2.0</SchemaVersion>
8+
<ProjectGuid>{E4262682-A389-4D5B-9A7B-C7DE4C8C553D}</ProjectGuid>
9+
<OutputType>WinExe</OutputType>
10+
<AppDesignerFolder>Properties</AppDesignerFolder>
11+
<RootNamespace>EditDemo</RootNamespace>
12+
<AssemblyName>EditDemo</AssemblyName>
13+
<TargetFrameworkVersion>v4.6</TargetFrameworkVersion>
14+
<FileAlignment>512</FileAlignment>
15+
<ProjectTypeGuids>{60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
16+
<WarningLevel>4</WarningLevel>
17+
<TargetFrameworkProfile />
18+
</PropertyGroup>
19+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
20+
<DebugSymbols>true</DebugSymbols>
21+
<DebugType>full</DebugType>
22+
<Optimize>false</Optimize>
23+
<OutputPath>bin\Debug\</OutputPath>
24+
<DefineConstants>DEBUG;TRACE</DefineConstants>
25+
<ErrorReport>prompt</ErrorReport>
26+
<WarningLevel>4</WarningLevel>
27+
<PlatformTarget>x86</PlatformTarget>
28+
<Prefer32Bit>false</Prefer32Bit>
29+
</PropertyGroup>
30+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
31+
<DebugType>pdbonly</DebugType>
32+
<Optimize>true</Optimize>
33+
<OutputPath>bin\Release\</OutputPath>
34+
<DefineConstants>TRACE</DefineConstants>
35+
<ErrorReport>prompt</ErrorReport>
36+
<WarningLevel>4</WarningLevel>
37+
<PlatformTarget>x86</PlatformTarget>
38+
<Prefer32Bit>false</Prefer32Bit>
39+
</PropertyGroup>
40+
<ItemGroup>
41+
<Reference Include="Syncfusion.Edit.WPF, Version=18.4460.0.33, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89, processorArchitecture=MSIL">
42+
<HintPath>packages\Syncfusion.Edit.WPF.18.4.0.33\lib\net46\Syncfusion.Edit.WPF.dll</HintPath>
43+
</Reference>
44+
<Reference Include="Syncfusion.GridCommon.WPF, Version=18.4460.0.33, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89, processorArchitecture=MSIL">
45+
<HintPath>packages\Syncfusion.GridCommon.Wpf.18.4.0.33\lib\net46\Syncfusion.GridCommon.WPF.dll</HintPath>
46+
</Reference>
47+
<Reference Include="Syncfusion.Licensing, Version=18.4460.0.33, Culture=neutral, PublicKeyToken=632609b4d040f6b4, processorArchitecture=MSIL">
48+
<HintPath>packages\Syncfusion.Licensing.18.4.0.33\lib\net46\Syncfusion.Licensing.dll</HintPath>
49+
</Reference>
50+
<Reference Include="Syncfusion.SfSkinManager.WPF, Version=18.4460.0.33, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89, processorArchitecture=MSIL">
51+
<HintPath>packages\Syncfusion.SfSkinManager.WPF.18.4.0.33\lib\net46\Syncfusion.SfSkinManager.WPF.dll</HintPath>
52+
</Reference>
53+
<Reference Include="Syncfusion.Shared.WPF, Version=18.4460.0.33, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89, processorArchitecture=MSIL">
54+
<HintPath>packages\Syncfusion.Shared.WPF.18.4.0.33\lib\net46\Syncfusion.Shared.WPF.dll</HintPath>
55+
</Reference>
56+
<Reference Include="Syncfusion.Themes.Office2019Colorful.WPF, Version=18.4460.0.33, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89, processorArchitecture=MSIL">
57+
<HintPath>packages\Syncfusion.Themes.Office2019Colorful.WPF.18.4.0.33\lib\net46\Syncfusion.Themes.Office2019Colorful.WPF.dll</HintPath>
58+
</Reference>
59+
<Reference Include="Syncfusion.Tools.WPF, Version=18.4460.0.33, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89, processorArchitecture=MSIL">
60+
<HintPath>packages\Syncfusion.Tools.WPF.18.4.0.33\lib\net46\Syncfusion.Tools.WPF.dll</HintPath>
61+
</Reference>
62+
<Reference Include="System" />
63+
<Reference Include="System.Core">
64+
<RequiredTargetFramework>4.0</RequiredTargetFramework>
65+
</Reference>
66+
<Reference Include="System.Xml.Linq">
67+
<RequiredTargetFramework>4.0</RequiredTargetFramework>
68+
</Reference>
69+
<Reference Include="System.Data.DataSetExtensions">
70+
<RequiredTargetFramework>4.0</RequiredTargetFramework>
71+
</Reference>
72+
<Reference Include="System.Data" />
73+
<Reference Include="System.Xml" />
74+
<Reference Include="WindowsBase" />
75+
<Reference Include="PresentationCore" />
76+
<Reference Include="PresentationFramework" />
77+
<Reference Include="System.Xaml" />
78+
</ItemGroup>
79+
<ItemGroup>
80+
<ApplicationDefinition Include="App.xaml">
81+
<Generator>MSBuild:Compile</Generator>
82+
<SubType>Designer</SubType>
83+
</ApplicationDefinition>
84+
<Page Include="Window1.xaml">
85+
<Generator>MSBuild:Compile</Generator>
86+
<SubType>Designer</SubType>
87+
</Page>
88+
<Compile Include="App.xaml.cs">
89+
<DependentUpon>App.xaml</DependentUpon>
90+
<SubType>Code</SubType>
91+
</Compile>
92+
<Compile Include="Window1.xaml.cs">
93+
<DependentUpon>Window1.xaml</DependentUpon>
94+
<SubType>Code</SubType>
95+
</Compile>
96+
</ItemGroup>
97+
<ItemGroup>
98+
<Compile Include="Properties\AssemblyInfo.cs">
99+
<SubType>Code</SubType>
100+
</Compile>
101+
<Compile Include="Properties\Resources.Designer.cs">
102+
<AutoGen>True</AutoGen>
103+
<DesignTime>True</DesignTime>
104+
<DependentUpon>Resources.resx</DependentUpon>
105+
</Compile>
106+
<Compile Include="Properties\Settings.Designer.cs">
107+
<AutoGen>True</AutoGen>
108+
<DependentUpon>Settings.settings</DependentUpon>
109+
<DesignTimeSharedInput>True</DesignTimeSharedInput>
110+
</Compile>
111+
<EmbeddedResource Include="Properties\Resources.resx">
112+
<Generator>ResXFileCodeGenerator</Generator>
113+
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
114+
</EmbeddedResource>
115+
<None Include="app.config" />
116+
<None Include="packages.config" />
117+
<None Include="Properties\Settings.settings">
118+
<Generator>SettingsSingleFileGenerator</Generator>
119+
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
120+
</None>
121+
<AppDesigner Include="Properties\" />
122+
</ItemGroup>
123+
<ItemGroup>
124+
<Resource Include="App.ico" />
125+
</ItemGroup>
126+
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
127+
<ItemGroup>
128+
<Resource Include="Content.txt" />
129+
</ItemGroup>
130+
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
131+
Other similar extension points exist, see Microsoft.Common.targets.
132+
<Target Name="BeforeBuild">
133+
</Target>
134+
<Target Name="AfterBuild">
135+
</Target>
136+
-->
137+
</Project>
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio Version 16
4+
VisualStudioVersion = 16.0.30804.86
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Editcontrol_UndoRedo", "Editcontrol_UndoRedo.csproj", "{E4262682-A389-4D5B-9A7B-C7DE4C8C553D}"
7+
EndProject
8+
Global
9+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
10+
Debug|x86 = Debug|x86
11+
Release|x86 = Release|x86
12+
EndGlobalSection
13+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
14+
{E4262682-A389-4D5B-9A7B-C7DE4C8C553D}.Debug|x86.ActiveCfg = Debug|x86
15+
{E4262682-A389-4D5B-9A7B-C7DE4C8C553D}.Debug|x86.Build.0 = Debug|x86
16+
{E4262682-A389-4D5B-9A7B-C7DE4C8C553D}.Release|x86.ActiveCfg = Release|x86
17+
{E4262682-A389-4D5B-9A7B-C7DE4C8C553D}.Release|x86.Build.0 = Release|x86
18+
EndGlobalSection
19+
GlobalSection(SolutionProperties) = preSolution
20+
HideSolutionNode = FALSE
21+
EndGlobalSection
22+
GlobalSection(ExtensibilityGlobals) = postSolution
23+
SolutionGuid = {09BD8258-1E69-4645-99F7-159C1568DE7F}
24+
EndGlobalSection
25+
EndGlobal
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
using System.Reflection;
2+
using System.Resources;
3+
using System.Runtime.CompilerServices;
4+
using System.Runtime.InteropServices;
5+
using System.Windows;
6+
7+
// General Information about an assembly is controlled through the following
8+
// set of attributes. Change these attribute values to modify the information
9+
// associated with an assembly.
10+
[assembly: AssemblyTitle("EditDemo")]
11+
[assembly: AssemblyDescription("")]
12+
[assembly: AssemblyConfiguration("")]
13+
[assembly: AssemblyCompany("Syncfusion")]
14+
[assembly: AssemblyProduct("EditDemo")]
15+
[assembly: AssemblyCopyright("Copyright © Syncfusion 2008")]
16+
[assembly: AssemblyTrademark("")]
17+
[assembly: AssemblyCulture("")]
18+
19+
// Setting ComVisible to false makes the types in this assembly not visible
20+
// to COM components. If you need to access a type in this assembly from
21+
// COM, set the ComVisible attribute to true on that type.
22+
[assembly: ComVisible(false)]
23+
24+
//In order to begin building localizable applications, set
25+
//<UICulture>CultureYouAreCodingWith</UICulture> in your .csproj file
26+
//inside a <PropertyGroup>. For example, if you are using US english
27+
//in your source files, set the <UICulture> to en-US. Then uncomment
28+
//the NeutralResourceLanguage attribute below. Update the "en-US" in
29+
//the line below to match the UICulture setting in the project file.
30+
31+
//[assembly: NeutralResourcesLanguage("en-US", UltimateResourceFallbackLocation.Satellite)]
32+
33+
34+
[assembly: ThemeInfo(
35+
ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located
36+
//(used if a resource is not found in the page,
37+
// or application resource dictionaries)
38+
ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located
39+
//(used if a resource is not found in the page,
40+
// app, or any theme specific resource dictionaries)
41+
)]
42+
43+
44+
// Version information for an assembly consists of the following four values:
45+
//
46+
// Major Version
47+
// Minor Version
48+
// Build Number
49+
// Revision
50+
//
51+
// You can specify all the values or you can default the Build and Revision Numbers
52+
// by using the '*' as shown below:
53+
// [assembly: AssemblyVersion("1.0.*")]
54+
[assembly: AssemblyVersion("1.0.0.0")]
55+
[assembly: AssemblyFileVersion("1.0.0.0")]

Editcontrol_DisableOrModify_UndoRedo/Properties/Resources.Designer.cs

Lines changed: 71 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)