Click here to Skip to main content
16,009,847 members
Home / Discussions / WPF
   

WPF

 
QuestionMAF Pin
columbos149278-Nov-11 4:16
columbos149278-Nov-11 4:16 
QuestionWPF Drag Drop - handling DragEnter and DragOver to disallow drop impossible? Pin
Member 10339078-Nov-11 0:51
Member 10339078-Nov-11 0:51 
AnswerRe: WPF Drag Drop - handling DragEnter and DragOver to disallow drop impossible? Pin
Mark Salsbery8-Nov-11 5:13
Mark Salsbery8-Nov-11 5:13 
GeneralRe: WPF Drag Drop - handling DragEnter and DragOver to disallow drop impossible? Pin
Member 10339078-Nov-11 5:25
Member 10339078-Nov-11 5:25 
Questionuser control within the ContentControl is center aligned Pin
indian1437-Nov-11 19:57
indian1437-Nov-11 19:57 
AnswerRe: user control within the ContentControl is center aligned Pin
Mark Salsbery8-Nov-11 5:17
Mark Salsbery8-Nov-11 5:17 
GeneralRe: user control within the ContentControl is center aligned Pin
indian1438-Nov-11 6:37
indian1438-Nov-11 6:37 
QuestionCreating a c++ cli mixed mode assembly inherited from a WPF library not possible? Pin
alleyes7-Nov-11 10:26
professionalalleyes7-Nov-11 10:26 
I have a WPF application created that during development lives as an EXE application.  All works without issue as an EXE.  I wish to convert that to a DLL and to call it from a mixed-mode EXE written in C++/CLI.  I want to create an inherited class that inherits from the WPF class (MainWindow).  I changed the target of the WPF app to that of a library.  I removed the App.xml from the solution and changed the Output type to class library.

 

In the CLR app I create the following class:

 

public ref class MyInheritedForm : public	WPFNameSpace::MainWindow
{
public:
	MyInheritedForm ()
	{
		
	}
};

[STAThreadAttribute]
int main(array<System::String ^> ^args)
{
	MyInheritedForm^ test = gcnew MyInheritedForm;
	test->Show();
	return 0;
}

 

The problem occurs in the constructor of the base class (MainWindow) in the InitializeComponent() call.  The error is:

An unhandled exception of type 'System.Exception' occurred in PresentationFramework.dll

Additional information: The component 'MyInheritedForm' does not have a resource identified by the URI '/WPFNameSpce;component/mainwindow.xaml'.

 

I think this "MAY" be possible but clearly there are fundamental problems.  Additionally, in Nishant Sivakumar's book there is an example (FirstAvalonDerived) that crashed with the same error, at the same location.  Perhaps it's a VS2010 problem as I would assume the example was tested.

Can someone write back if there is a workaround solution to this.  This is a huge problem for any systems that were written in WinForms and now dead-ended due to this bug in WPF.

 

Thanks for any help.


modified 11-Nov-11 8:17am.

QuestionMdiChild Pin
columbos149276-Nov-11 22:42
columbos149276-Nov-11 22:42 
QuestionRe: MdiChild Pin
Mark Salsbery7-Nov-11 9:59
Mark Salsbery7-Nov-11 9:59 
AnswerRe: MdiChild Pin
columbos149277-Nov-11 19:33
columbos149277-Nov-11 19:33 
GeneralRe: MdiChild Pin
Mark Salsbery8-Nov-11 5:19
Mark Salsbery8-Nov-11 5:19 
GeneralRe: MdiChild Pin
Pete O'Hanlon8-Nov-11 6:01
mvePete O'Hanlon8-Nov-11 6:01 
QuestionHow to add a link to textblock inside an ItemsControl? Pin
rams26-Nov-11 7:21
rams26-Nov-11 7:21 
AnswerRe: How to add a link to textblock inside an ItemsControl? Pin
Mark Salsbery6-Nov-11 8:18
Mark Salsbery6-Nov-11 8:18 
GeneralRe: How to add a link to textblock inside an ItemsControl? Pin
rams26-Nov-11 18:13
rams26-Nov-11 18:13 
GeneralRe: How to add a link to textblock inside an ItemsControl? Pin
SledgeHammer017-Nov-11 6:59
SledgeHammer017-Nov-11 6:59 
QuestionActualWidth value is becoming 0 Pin
indian1436-Nov-11 6:46
indian1436-Nov-11 6:46 
AnswerRe: ActualWidth value is becoming 0 Pin
Mark Salsbery6-Nov-11 8:36
Mark Salsbery6-Nov-11 8:36 
AnswerRe: ActualWidth value is becoming 0 Pin
SledgeHammer017-Nov-11 6:52
SledgeHammer017-Nov-11 6:52 
GeneralRe: ActualWidth value is becoming 0 Pin
indian1438-Nov-11 14:57
indian1438-Nov-11 14:57 
QuestionKeep messagebox on top of window [Solved] Pin
WelshChris4-Nov-11 4:07
WelshChris4-Nov-11 4:07 
AnswerRe: Keep messagebox on top of window Pin
Wayne Gaylard4-Nov-11 4:14
professionalWayne Gaylard4-Nov-11 4:14 
GeneralRe: Keep messagebox on top of window Pin
WelshChris4-Nov-11 4:21
WelshChris4-Nov-11 4:21 
GeneralRe: Keep messagebox on top of window Pin
Wayne Gaylard4-Nov-11 4:29
professionalWayne Gaylard4-Nov-11 4:29 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.