mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2025-12-06 07:12:04 +01:00
30 lines
693 B
C#
30 lines
693 B
C#
// XAML Map Control - https://github.com/ClemensFischer/XAML-Map-Control
|
|
// Copyright © 2024 Clemens Fischer
|
|
// Licensed under the Microsoft Public License (Ms-PL)
|
|
|
|
#if WPF
|
|
using System.Windows;
|
|
using System.Windows.Data;
|
|
#elif UWP
|
|
using Windows.UI.Xaml;
|
|
using Windows.UI.Xaml.Data;
|
|
#elif WINUI
|
|
using Microsoft.UI.Xaml;
|
|
using Microsoft.UI.Xaml.Data;
|
|
#endif
|
|
|
|
namespace MapControl
|
|
{
|
|
internal static class BindingHelper
|
|
{
|
|
public static Binding CreateBinding(this FrameworkElement source, string property)
|
|
{
|
|
return new Binding
|
|
{
|
|
Source = source,
|
|
Path = new PropertyPath(property)
|
|
};
|
|
}
|
|
}
|
|
}
|