Add project files.
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
using System.Windows.Data;
|
||||
|
||||
namespace TheXamlGuy.UI.WPF
|
||||
{
|
||||
public static class MarkupExtensions
|
||||
{
|
||||
public static Binding ToBinding(this object value)
|
||||
{
|
||||
return value is Binding binding ? binding : new Binding() { Mode = BindingMode.OneWay, Source = value };
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user