This repository has been archived on 2026-03-14. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
Eco/VideoBrowser/Helpers/BindingProxy.cs
2023-07-24 12:00:34 +02:00

46 lines
1.1 KiB
C#

namespace VideoBrowser.Helpers
{
using System.Windows;
/// <summary>
/// Defines the <see cref="BindingProxy" />.
/// </summary>
public class BindingProxy : Freezable
{
#region Fields
/// <summary>
/// The binding data context property.
/// </summary>
public static readonly DependencyProperty DataProperty =
DependencyProperty.Register(nameof(DataContext), typeof(object), typeof(BindingProxy), new UIPropertyMetadata(null));
#endregion Fields
#region Properties
/// <summary>
/// Gets or sets the DataContext.
/// </summary>
public object DataContext
{
get { return GetValue(DataProperty); }
set { SetValue(DataProperty, value); }
}
#endregion Properties
#region Methods
/// <summary>
/// The CreateInstanceCore.
/// </summary>
/// <returns>The <see cref="Freezable"/>.</returns>
protected override Freezable CreateInstanceCore()
{
return new BindingProxy();
}
#endregion Methods
}
}