Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

This file was deleted.

10 changes: 1 addition & 9 deletions src/Controls/src/Core/Interactivity/BindingCondition.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@
namespace Microsoft.Maui.Controls
{
/// <include file="../../../docs/Microsoft.Maui.Controls/BindingCondition.xml" path="Type[@FullName='Microsoft.Maui.Controls.BindingCondition']/Docs/*" />
[ProvideCompiled("Microsoft.Maui.Controls.XamlC.PassthroughValueProvider")]
[AcceptEmptyServiceProvider]
public sealed class BindingCondition : Condition, IValueProvider
public sealed class BindingCondition : Condition
{
readonly BindableProperty _boundProperty;

Expand Down Expand Up @@ -48,12 +46,6 @@ public object Value
}
}

object IValueProvider.ProvideValue(IServiceProvider serviceProvider)
{
//This is no longer required
return this;
}

internal override bool GetState(BindableObject bindable)
{
object newValue = bindable.GetValue(_boundProperty);
Expand Down
10 changes: 1 addition & 9 deletions src/Controls/src/Core/Interactivity/DataTrigger.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@ namespace Microsoft.Maui.Controls
{
/// <include file="../../../docs/Microsoft.Maui.Controls/DataTrigger.xml" path="Type[@FullName='Microsoft.Maui.Controls.DataTrigger']/Docs/*" />
[ContentProperty("Setters")]
[ProvideCompiled("Microsoft.Maui.Controls.XamlC.PassthroughValueProvider")]
[AcceptEmptyServiceProvider]
public sealed class DataTrigger : TriggerBase, IValueProvider
public sealed class DataTrigger : TriggerBase
{
/// <include file="../../../docs/Microsoft.Maui.Controls/DataTrigger.xml" path="//Member[@MemberName='.ctor']/Docs/*" />
public DataTrigger([System.ComponentModel.TypeConverter(typeof(TypeTypeConverter))][Parameter("TargetType")] Type targetType) : base(new BindingCondition(), targetType)
Expand Down Expand Up @@ -53,11 +51,5 @@ public object Value
OnPropertyChanged();
}
}

object IValueProvider.ProvideValue(IServiceProvider serviceProvider)
{
//This is no longer required
return this;
}
}
}
10 changes: 1 addition & 9 deletions src/Controls/src/Core/Interactivity/PropertyCondition.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@
namespace Microsoft.Maui.Controls
{
/// <include file="../../../docs/Microsoft.Maui.Controls/PropertyCondition.xml" path="Type[@FullName='Microsoft.Maui.Controls.PropertyCondition']/Docs/*" />
[ProvideCompiled("Microsoft.Maui.Controls.XamlC.PassthroughValueProvider")]
[AcceptEmptyServiceProvider]
public sealed class PropertyCondition : Condition, IValueProvider
public sealed class PropertyCondition : Condition
{
readonly BindableProperty _stateProperty;

Expand Down Expand Up @@ -84,12 +82,6 @@ public object Value
}
}

object IValueProvider.ProvideValue(IServiceProvider serviceProvider)
{
//This is no longer required
return this;
}

internal override bool GetState(BindableObject bindable)
{
return (bool)bindable.GetValue(_stateProperty);
Expand Down
10 changes: 1 addition & 9 deletions src/Controls/src/Core/Interactivity/Trigger.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@ namespace Microsoft.Maui.Controls
{
/// <include file="../../../docs/Microsoft.Maui.Controls/Trigger.xml" path="Type[@FullName='Microsoft.Maui.Controls.Trigger']/Docs/*" />
[ContentProperty("Setters")]
[ProvideCompiled("Microsoft.Maui.Controls.XamlC.PassthroughValueProvider")]
[AcceptEmptyServiceProvider]
public sealed class Trigger : TriggerBase, IValueProvider
public sealed class Trigger : TriggerBase
{
/// <include file="../../../docs/Microsoft.Maui.Controls/Trigger.xml" path="//Member[@MemberName='.ctor']/Docs/*" />
public Trigger([System.ComponentModel.TypeConverter(typeof(TypeTypeConverter))][Parameter("TargetType")] Type targetType) : base(new PropertyCondition(), targetType)
Expand Down Expand Up @@ -53,11 +51,5 @@ public object Value
OnPropertyChanged();
}
}

object IValueProvider.ProvideValue(IServiceProvider serviceProvider)
{
//This is no longer required
return this;
}
}
}