I want to open web browser using XNA for WP7,
from This Post I think I must use WebBrowserTask to do that,
but I don't know how to add Microsoft.Phone
I tried to right click on references but I can't find references Microsoft.Phone
I tried just type it in my code, but It still doesn't work..
Anyone know why? am I in the right track?
using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Input.Touch;
using Microsoft.Xna.Framework.Media;
using Microsoft.Phone; // <-- Error here
I use VS 2010 Express for windows phone, WP SDK 7.1.1, and Windows 8 Pro
Ok, on my PC this lib is situated here:
C:\Program Files\Reference Assemblies\Microsoft\Framework\Silverlight\v4.0
\Profile\WindowsPhone71\Microsoft.Phone.dll
You can add it from Solution Explorer:
References -> Add reference -> Browse
and then paste the path into the File name textbox.
Related
I am using sqlite-net in Xamarin Studio for Xamarin.forms application. In that I have put the sqlite-net library version 1.0.8. I have created the interface which I would be implementing in the platforms. But when I try to compile the PCL project I am getting a lot of errors which are present in the SQLite.cs file which was added when I added the PCL for sqlite-net.
I initially thought that the file is not important but it started giving more errors in the application. How to resolve this issue?
I am using a video tutorial for which used Visual studio for making the sample.
I am attaching the pic for the same. I would like to mention that the problem is not in my file the compile time errors are in the library.
EDIT: The PCL version of the package is 1.0.8
I had added the file in the application with content
using System;
using SQLite;
namespace SQLiteExample
{
public interface ISQLite
{
SQLite.SQLiteConnection GetConnection();
}
}
You should use SQLite-Net-PCL instead of SQLite-Net.
I'm developing my first application for CRM 2011.
I've imported all .dll necessary for development.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xrm.Sdk;
using Microsoft.Xrm.Sdk.Query;
using Microsoft.Crm.Sdk.Messages;
but when I call some simple classes like "Annotation", "Letter" , "Email",
the visual studio doesn't detect these classes.
Has anybody knows why?
You need to use the tool CrmSvcUtil that comes with the SDK in order to generate your strongly typed classes.
Create Early Bound Entity Classes with the Code Generation Tool (CrmSvcUtil.exe)
I'm going mental with WP7 toolkit import. I've already read a lot of similar questions but nothing seems to work.
I'm trying to using the WP7 toolkit for a 7.1 project with Microsoft Visual Studio 2010 express for windows Phone.
Everything seems to be pretty simple, I followed all the instructions:
http://www.codebadger.com/blog/post/2010/11/01/WP7-Tip-of-the-Day-Silverlight-Toolkit-Gestures.aspx
so, what I have now is
DashBoard.xaml
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit"
mc:Ignorable="d" d:DesignHeight="768" d:DesignWidth="480"
DashBoard.xaml.cs
using Microsoft.Phone.Shell;
using Microsoft.Phone.Controls.Toolkit;
Of course I've installed the Silverlight for Windows Phone Toolkit - Nov 2011.msi
downloaded here
http://silverlight.codeplex.com/releases/view/75888
And I added the reference by right-clicking on Reference -> Add Reference and and added the dll I've found at
C:\Program Files (x86)\Microsoft SDKs\Windows Phone\v7.1\Toolkit\Oct11\Bin
but I still have the error mentioned in the title
The type or namespace name 'Toolkit' does not exist in the namespace 'Microsoft.Phone.Controls' (are you missing an assembly reference?)
does anyone know how to make it work?
"using Microsoft.Phone.Controls.Toolkit" is not possible. In order to use toolkit controls in your code behind "using Microsoft.Phone.Controls" is sufficient.
But you can definitely do
xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit"
and using this create controls in you xaml page as follows:
<toolkit:ListPicker></toolkit:ListPicker>
Use NuGet!
When you use NuGet to install a package, it copies the library files to your solution and automatically updates your project (add references, change config files, etc.). If you remove a package, NuGet reverses whatever changes it made so that no clutter is left.
Silverlight for Windows Phone toolkit is downloadable here.
If you're wondering how to install and use NuGet, read more about it here.
I'm trying to follow some tutorials for building a Silverlight 3D XNA project.
I'm able to display the 3D surface but once I start using Vector3 or VertexPositionNormalTexture (or using any of the XNA helper entities) I get that the type or namespce does not exist.
I've got these includes:
using System;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Graphics;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
I've includeed the References in the Silverlight Project, namely:
Microsoft.Xna.Framework
Microsoft.Xna.Framework.Graphics
Microsoft.Xna.Framework.Graphics.Extensions
System.Windows.Xna
and a bunch of others I'm not sure are relevant. These were under the .NET tab, perhaps I need to get them elsewhere, and these aren't for Silverlight? I'm not sure.
I'm using Visual Studio 2010 Professional, Silverlight 5 and XNA 4
I've managed to get XNA working in Silverlight in separate projects, I am pretty confident I missed something. Just double-check everything is included.
Hi I've created a new WP7 project. Then I add a new project of type Windows Phone Class Library and by default the project has System.Net, System.Windows and System.Xml references beside other references. I don't need them in my Class Library so I delete them but when I create a new class Visual Studio create the following class :
using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
namespace WP7
{
public class Class1
{
}
}
but I've already removed the references System.Net & System.Windows. I'm getting an error when I try to compile the solution.
How I can modify the default template ?
I want to be something like
using System;
using System.Text;
using System.Linq;
using System.Collections.Generic;
namespace WP7
{
public class Class1
{
}
}
I think this is a bug in VS2010. It doesn't respect the the current references of the project when adding a new class. How can I report this bug to MS ?
this is just how item templates and project templates work. You could create your own set, but that just isn't going to be quick and easy.
The idea is that these assemblies are needed in the majority of apps.
Since they are present on the device and not packaged into your .XAP, there is no net effect to your app.