Skip to content
This repository has been archived by the owner on Feb 20, 2022. It is now read-only.

Commit

Permalink
Merge pull request #102 from mwagenfuehr/fix-autocompletemanager-reso…
Browse files Browse the repository at this point in the history
…urcedictionary

Fix AutoCompleteManager's ResourceDictionary loading
  • Loading branch information
htochenhagen authored Aug 20, 2019
2 parents 714adb6 + 2004b99 commit 5f0b656
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions NZazu/Fields/Libs/AutoCompleteManager.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Diagnostics.CodeAnalysis;
Expand Down Expand Up @@ -99,7 +99,7 @@ public void AttachTextBox(TextBox textBox)

if (Application.Current == null) return; // because we are in testing

if (Application.Current.Resources.FindName("AcTb_ListBoxStyle") == null)
if (!Application.Current.Resources.Contains("AcTb_ListBoxStyle"))
{
var myResourceDictionary = new ResourceDictionary();
// TODO: hard coded namespace. this can break on namespace changes! avoid that!
Expand Down Expand Up @@ -702,4 +702,4 @@ private void UpdateText(string text, bool selectAll)

#endregion
}
}
}

0 comments on commit 5f0b656

Please sign in to comment.