I am new to WPF and have developed a RadMap for Silverlight previously using MVVM.
I'm attempting to duplicate this for WPF that can be accessed from the web but I'm not seeing what I expect in the project.
I started out in VS 2010 clicking new Project > Telerik > Telerik C# WPF Application
I added a new WPF page and added the RadMap to it.
I've created the xaml, created the ViewModelBase class etc. Here is what I have so far:
xaml:
XAML.cs:
Is there a simple solution someone can attach that would demonstrate this using MVVM available for the web and not a desktop application? I will be binding from SQL Server data.
Thanks,
Tim
I'm attempting to duplicate this for WPF that can be accessed from the web but I'm not seeing what I expect in the project.
I started out in VS 2010 clicking new Project > Telerik > Telerik C# WPF Application
I added a new WPF page and added the RadMap to it.
I've created the xaml, created the ViewModelBase class etc. Here is what I have so far:
xaml:
<
Page
x:Class
=
"ccWPF.Centers"
xmlns:telerik
=
"http://schemas.telerik.com/2008/xaml/presentation"
mc:Ignorable
=
"d"
d:DesignHeight
=
"300"
d:DesignWidth
=
"300"
Title
=
"Centers"
>
<
Grid
>
<
telerik:RadMap
x:Name
=
"radMap"
/>
</
Grid
>
</
Page
>
XAML.cs:
using
System;
using
System.Collections.Generic;
using
System.Linq;
using
System.Text;
using
System.Windows;
using
System.Windows.Controls;
using
System.Windows.Data;
using
System.Windows.Documents;
using
System.Windows.Input;
using
System.Windows.Media;
using
System.Windows.Media.Imaging;
using
System.Windows.Navigation;
using
System.Windows.Shapes;
using
Telerik.Windows.Controls.Map;
namespace
ccWPF
{
/// <summary>
/// Interaction logic for Centers.xaml
/// </summary>
public
partial
class
Centers : Page
{
public
Centers()
{
InitializeComponent();
this
.radMap.Provider =
new
BingMapProvider(MapMode.Aerial,
true
,
"myKey"
);
}
}
}
Is there a simple solution someone can attach that would demonstrate this using MVVM available for the web and not a desktop application? I will be binding from SQL Server data.
Thanks,
Tim