Thomas Kowalski
Thomas Kowalski

Reputation: 2184

Using CustomMessageBox with WP8

In my WP8 app I have to use the CustomMessageBox. I use VB.NET and saw here I had to use the WP Toolkit which I added to my XAML like this :

xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit"

The thing I want to do is simple, it isn't complicated with other controls in the message box, just modifying the buttons text. Now my problem is simple : I just can't create my CustomMessageBox Object. On the link I gave, you can see the example is :

CustomMessageBox messageBox = new CustomMessageBox()

with some parameters. It's C# but basically it should work with VB.NET this way :

Dim myMessageBox as CustomMessageBox = new CustomMessageBox()

But Visual Studio says "the type CustomMesageBox is not defined". Any idea ? Thanks

Upvotes: 1

Views: 175

Answers (1)

har07
har07

Reputation: 89285

Assuming you already downloaded the the toolkit and added it as project reference, possibly you missed adding Imports (using in C#):

Imports Microsoft.Phone.Controls

Upvotes: 1

Related Questions