diff --git a/.vs/PTConverter.Plugin/FileContentIndex/39645a67-18f9-4f87-b421-c72ae3ef953d.vsidx b/.vs/PTConverter.Plugin/FileContentIndex/39645a67-18f9-4f87-b421-c72ae3ef953d.vsidx new file mode 100644 index 0000000..70c0788 Binary files /dev/null and b/.vs/PTConverter.Plugin/FileContentIndex/39645a67-18f9-4f87-b421-c72ae3ef953d.vsidx differ diff --git a/.vs/PTConverter.Plugin/FileContentIndex/01e23e05-9850-49b1-ba67-18c442f537b1.vsidx b/.vs/PTConverter.Plugin/FileContentIndex/4fdae217-01cb-46cb-aecc-85db850c3188.vsidx similarity index 80% rename from .vs/PTConverter.Plugin/FileContentIndex/01e23e05-9850-49b1-ba67-18c442f537b1.vsidx rename to .vs/PTConverter.Plugin/FileContentIndex/4fdae217-01cb-46cb-aecc-85db850c3188.vsidx index e9fd617..08eca4f 100644 Binary files a/.vs/PTConverter.Plugin/FileContentIndex/01e23e05-9850-49b1-ba67-18c442f537b1.vsidx and b/.vs/PTConverter.Plugin/FileContentIndex/4fdae217-01cb-46cb-aecc-85db850c3188.vsidx differ diff --git a/README.md b/README.md new file mode 100644 index 0000000..c5a08b6 --- /dev/null +++ b/README.md @@ -0,0 +1,28 @@ +# How it works + +1. Create new Class-Library for .NetFramework 4.7.2 or higher in Visual Studio. +2. Open Nuget-Manager and install "PTConverter.Plugin" +3. Add "PluginInfo.cs" and implement the interface "IPlugin". +4. Create a XAML user control with the dimensions 450 x 800. +5. Implement the "IPage" interface in your user control. + + ```csharp + public string GetCategory() => "YourPluginPageName"; + public UserControl GetPage() => new YourUserControl(); + public string GetUnderCategory() => null; // null = Single Page + public string GetUnderCategory() => "UnderPage"; // The main page has an underpage + public IPage Page => this; + ``` + +6. Register your site in "PluginInfo.cs" + + ```csharp + public IEnumerable RegisterPages => new List() + { + { new YourUserControl() } + }; + ``` + +7. Pack your library as DLL in the "plugins" folder of the application. + +8. Done.