Skip to content

Commit 9cf30c8

Browse files
authored
Bug fix (#1296)
Use legacy themes to avoid crash at startup
1 parent bc45b42 commit 9cf30c8

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

src/ServiceInsight/App.xaml.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ public App()
1919
{
2020
mutex = new Mutex(true, "Local\\ServiceInsight", out createNew);
2121

22+
ApplicationThemeHelper.UseLegacyDefaultTheme = true;
23+
2224
if (createNew)
2325
{
2426
LoggingConfig.SetupLogging();

src/ServiceInsight/ServiceInsight.csproj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@
1313
</ItemGroup>
1414

1515
<ItemGroup>
16+
<Reference Include="DevExpress.Data.Desktop.v22.1">
17+
<HintPath>..\..\lib\DevExpress.v22\DevExpress.Data.Desktop.v22.1.dll</HintPath>
18+
</Reference>
1619
<Reference Include="System.Configuration" />
1720
<Reference Include="System.Runtime.Caching" />
1821
<Reference Include="System.Windows.Forms" />

0 commit comments

Comments
 (0)