Although you can usually classify an application as βeitherβ a WPF or WinForms application, interaction is possible, so that a WinForms application can βhostβ WPF controls and vice versa. Since your application sounds like it refers to both sets of assemblies, it can use both. Just something to be aware of.
Anyway, I just opened one of my WPF projects in Reflector and some obvious signs that it is a WPF application:
1) There is a class that has which is a file (like this) AppStartupUriXaml
public class App : System.Windows.Application
{
[DebuggerNonUserCode]
public void InitializeComponent()
{
base.StartupUri = new Uri("Window1.xaml", UriKind.Relative);
}
2) in exe
there is XamlGeneratedNamespace3) There are files in the Resources.baml folder (possibly within <Application1>.g.resources).
4) Window classes (if you can easily find them in the reflector tree):
public class Window1 : System.Windows.Window
, System.Windows.Markup.IComponentConnector {
If you really want to trawl through Reflector in detail, WinForms windows inherit from System.Windows.Forms.Form, so you can easily determine if you have WinForms and WPF.
source
share