I have a Silverlight control i need to convert to WPF
(Yes, i know that’s not wise, don’t have a choice)
And i am aware that some assemblies need to be changed.
this is a follow up of this question
Now i am kinda sure that i’m missing a big thing here.
DIdn’t really know how to do that so i just started copying all the cs files code to new
class project.
Now i get all kind of weirds errors.
Most for assemblies missing ( ofcourse),
Now what i fail to understand is i’m missing very basic stuff and i am calling the right ones i belive. stuff i used in other WPF applications.
for isntance i get Errors for theese classes :
Point, Size, UIElement, DependencyProperty, MouseEventHandler etc.
Now the project is just 14 classes, no main file or anything, could this be related?
Anyway, i’m using this code to call assemblies (preety much the same anywhere):
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.Text;
using System.Threading;
using System.ComponentModel;
using System.Globalization;
using System.Diagnostics.CodeAnalysis;
And the VS isn’t givining me on help any assembly i could call, just the option to generate my own class.
I am targeting Framework 4.0 using VS 2010
Help!
Did you put this control in a new WPF project? If you didnt make sure you add these References
Then remove all your using Statements and readd them all.
You also may need