mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-05 06:26:41 +00:00
DependencyPropertyHelper
This commit is contained in:
parent
c74c2b1fed
commit
8e82e0bcbd
25 changed files with 224 additions and 176 deletions
|
|
@ -18,9 +18,9 @@ namespace MapControl.MBTiles
|
|||
/// </summary>
|
||||
public class MBTileLayer : MapTileLayer
|
||||
{
|
||||
public static readonly DependencyProperty FileProperty = DependencyProperty.Register(
|
||||
nameof(File), typeof(string), typeof(MBTileLayer),
|
||||
new PropertyMetadata(null, async (o, e) => await ((MBTileLayer)o).FilePropertyChanged((string)e.NewValue)));
|
||||
public static readonly DependencyProperty FileProperty =
|
||||
DependencyPropertyHelper.Register<MBTileLayer, string>(nameof(File), null, false,
|
||||
async (layer, oldValue, newValue) => await layer.FilePropertyChanged(newValue));
|
||||
|
||||
public string File
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue