mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-04 14:08:32 +00:00
Removed BindingHelper
This commit is contained in:
parent
8bb7dc3eb3
commit
3d275cd924
8 changed files with 51 additions and 74 deletions
|
|
@ -1,25 +0,0 @@
|
|||
// XAML Map Control - https://github.com/ClemensFischer/XAML-Map-Control
|
||||
// Copyright © 2024 Clemens Fischer
|
||||
// Licensed under the Microsoft Public License (Ms-PL)
|
||||
|
||||
using Avalonia.Data;
|
||||
|
||||
namespace MapControl
|
||||
{
|
||||
internal static class BindingHelper
|
||||
{
|
||||
public static Binding CreateBinding(this object source, string property)
|
||||
{
|
||||
return new Binding
|
||||
{
|
||||
Source = source,
|
||||
Path = property
|
||||
};
|
||||
}
|
||||
|
||||
public static void SetBinding(this AvaloniaObject target, AvaloniaProperty property, Binding binding)
|
||||
{
|
||||
target.Bind(property, binding);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -23,7 +23,6 @@
|
|||
|
||||
<ItemGroup>
|
||||
<Compile Include="..\Shared\*.cs" />
|
||||
<Compile Remove="..\Shared\BindingHelper.cs" />
|
||||
<Compile Remove="..\Shared\GeoImage.cs" />
|
||||
<Compile Remove="..\Shared\MapItem.cs" />
|
||||
<Compile Remove="..\Shared\MapItemsControl.cs" />
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue