Binding the Path of ArcGisLocalTiledLayer

477
0
03-11-2014 05:48 AM
DanaRotstein
New Contributor
Hi
I want to define the Path proprety of ArcGisLocalTiledLayer in XAML in this form:

<esri:ArcGisLocalTiledLayer  ID="MyMapLayer" Path="{Binding Path=MapName"}
....

In code behind:


public string MapName
{
get {return m_mapName;}
set
{
m_mapName=value;NotifyPropretyChanged("MapName")

}
}


in constructor:

DataContext=this;
MapName=Propreties.Settings.Default.MapName;
InitializeComponent();
.....




In this point the PropretyChanged event of NotifyPropretyChanged is null.

How I can do this ?

Thanks

Dana
0 Kudos
0 Replies