no1knowsy
Well-Known Member
- Joined
- Feb 28, 2010
- Messages
- 3,927
- Reaction score
- 57
Okay so I've been trying to get this new Demonbuddy WPF plugin Config button system to work, and I'm failing at life.
I finally got Visual Studio to recognize what a System.Windows.Window is. I was missing a PresentationMain.dll or something.
Anyways, I set up a UserControl, and then realized that wouldn't work. So I changed it to inherit from : window and also in the xaml to <Window>
I don't get any errors in VS, but when Demonbuddy compiles it gives me the error
I'll attach my files. It's for the BreakTaker plugin.
Attached is the VS debugger text as well as all source for .sln
You'll have to re-add in references to Demonbuddy.exe
From what I've seen from google searches it has to do with possible threading issues when it deals with UIs, but I couldn't find a way around it.
I tried the following:
Both caused compiler issues.
Plz help teh Panda!
I finally got Visual Studio to recognize what a System.Windows.Window is. I was missing a PresentationMain.dll or something.
Anyways, I set up a UserControl, and then realized that wouldn't work. So I changed it to inherit from : window and also in the xaml to <Window>
I don't get any errors in VS, but when Demonbuddy compiles it gives me the error
Code:
Message=The calling thread must be STA, because many UI components require this.
Source=PresentationCore
I'll attach my files. It's for the BreakTaker plugin.
Attached is the VS debugger text as well as all source for .sln
You'll have to re-add in references to Demonbuddy.exe
From what I've seen from google searches it has to do with possible threading issues when it deals with UIs, but I couldn't find a way around it.
I tried the following:
Code:
public Window DisplayWindow {
get
{
return new BreakTakerWPF();
}
}
As well as:
public BreakTakerWPF BreakTakerUI = new BreakTakerWPF();
public Window DisplayWindow
{
get
{
return BreakTakerUI;
}
}
Both caused compiler issues.
Plz help teh Panda!
