Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file not shown.
35 changes: 27 additions & 8 deletions wpf/Themes/Theme-Studio.md
Original file line number Diff line number Diff line change
Expand Up @@ -274,21 +274,40 @@ Provide the theme name, in which the theme should be exported, and select the re

![Add Theme as Project for Theme Export](ThemeStudio_images/ThemeStudio-Themes-Folder.png)

Until version 31.2.2, while exporting themes from Theme Studio, separate projects were created for each framework. Starting with version 31.2.9, themes are exported as a single SDK-style project that supports multiple frameworks: `.NET Framework 4.6.2`, `.NET 8.0`, `.NET 9.0`, and `.NET 10`.
N> When running the exported project in .NET 8.0 or .NET 9.0 environments, you may encounter reference issues due to missing or incompatible assemblies. To resolve this, manually add references to the required assemblies from the appropriate framework installation path or NuGet packages. Refer path location: C:\Program Files (x86)\Syncfusion\Essential Studio\WPF\ {product version}\precompiledassemblies\ {target framework}\

When opening the exported theme project, the `.NET Framework 4.6.2` will be selected by default.
### Generating theme assembly

If any of the supported frameworks (`.NET Framework 4.6.2`, `.NET 8.0`, `.NET 9.0`, or `.NET 10`) are not installed on your machine, you can remove the unavailable framework from the `<TargetFrameworks>` tag in the `MultiTargeting.targets` file located at: [ D:\Windows11Light\targets\MultiTargeting.targets ].This will resolve any compilation issues caused by missing frameworks.
Let us see the step-by-step procedure for ensuring theme assembly generation for exported theme projects.

When running the exported single SDK-style theme project, you may encounter reference issues due to missing or incompatible assemblies across the targeted frameworks (4.6.2, .NET 8.0, .NET 9.0, and .NET 10). To resolve this, update the product version in the path specified in the `<SyncfusionInstallLocation>` tag of the exported .csproj theme project to match the installed product version, as shown in the image below. Reference path: C:\Program Files (x86)\Syncfusion\Essential Studio\WPF\{product version}
**Step 1**

![Add Reference Path for Exported Theme Projects](ThemeStudio_images/Reference_Path.png)
The following exported theme project should be attached to corresponding target frameworks used in the WPF application.

### Generating theme assembly
<table>
<tr>
<th>
Target Framework</th><th>
Solution Project</th></tr>
<tr>
<td>
.Net 9.0</td><td>
Syncfusion.Themes.Windows11LightYellow.WPF_NET90.csproj </td>
</tr>
<tr>
<td>
.Net 8.0</td><td>
Syncfusion.Themes.Windows11LightYellow.WPF_NET80.csproj </td>
</tr>
<tr>
<td>
.Net Framework 4.6.2</td><td>
Syncfusion.Themes.Windows11LightYellow.WPF_2017.csproj </td></tr>
</table>

Let us see the procedure for ensuring theme assembly generation for exported theme projects.
**Step 2**

Rebuild the exported single SDK-Style theme project in `Release` mode to generate the theme assembly.
Rebuild the exported theme project in `Release` mode to generate the theme assembly.

The export theme project has default `ThemeStudio.snk` key pair. If it is not required, use the already created private key pair by referring to the export theme project inside the application properties or [Create a new key pair](https://docs.microsoft.com/en-us/dotnet/standard/assembly/create-public-private-key-pair) using Visual Studio if the private key pair was not created externally.

Expand Down
Binary file removed wpf/Themes/ThemeStudio_images/Reference_Path.png
Binary file not shown.
Binary file modified wpf/Themes/ThemeStudio_images/ThemeStudio-Themes-Folder.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 0 additions & 10 deletions wpf/samples.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,16 +45,6 @@ To explore any individual showcase sample from the `Syncfusion<sup>&reg;</sup> W

![Exploring Syncfusion WPF Showcase Samples](Guidetorunthesamples_images/Exploring-syncfusion-wpf-Showcase-sample.PNG)

All the sample browser projects are configured as single SDK-style projects that support multiple frameworks: `.NET Framework 4.6.2`, `.NET 8.0`, `.NET 9.0`, and `.NET 10`.

When you click the `Explore Demo Source` button, the `net10.0-windows` entry will be automatically removed from the targets file if .NET 10 is not installed on your machine, preventing any compilation errors.

To use the `.NET 10 framework`, install the required SDK and add `net10.0-windows` to the `<TargetFrameworks>` tag in the `MultiTargeting.targets` file located at the Samples Location: D:\WPF31.2.9\WPF\31.2.9\SampleBrowser\targets\MultiTargeting.targets as shown in the image below.

![WPF TargetFrameworks](Guidetorunthesamples_images/TargetFrameworks-wpf.jpg)

If you don’t have other frameworks installed and encounter compilation issues as a result, you can remove the unsupported framework from the `<TargetFrameworks>` tag in the same file and retain only the available ones to resolve the issue.

N> To run the individual control demos, please refer the instruction from [Running Individual Control Demos](https://github.com/syncfusion/wpf-demos#running-individual-control-demos).

## Online Samples
Expand Down