Skip to content

Commit

Permalink
Switch main projects to Microsoft.Xaml.Behaviors
Browse files Browse the repository at this point in the history
  • Loading branch information
Nigel Sampson committed Dec 13, 2018
1 parent f23095d commit 19176c5
Show file tree
Hide file tree
Showing 10 changed files with 13 additions and 19 deletions.
Binary file removed lib/System.Windows.Interactivity.dll
Binary file not shown.
6 changes: 2 additions & 4 deletions src/Caliburn.Micro.Platform/ActionMessage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,11 @@
using EventTrigger = Microsoft.Xaml.Interactions.Core.EventTriggerBehavior;
#else
using System.Windows;
using System.Windows.Controls;
using System.Windows.Controls.Primitives;
using System.Windows.Data;
using System.Windows.Interactivity;
using System.Windows.Markup;
using System.Windows.Media;
using EventTrigger = System.Windows.Interactivity.EventTrigger;
using Microsoft.Xaml.Behaviors;
using EventTrigger = Microsoft.Xaml.Behaviors.EventTrigger;
#endif

/// <summary>
Expand Down
6 changes: 1 addition & 5 deletions src/Caliburn.Micro.Platform/Caliburn.Micro.Platform.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -23,19 +23,15 @@
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'net46'">
<PackageReference Include="Microsoft.Xaml.Behaviors.Wpf" Version=" 1.0.1" />
<Reference Include="PresentationCore" />
<Reference Include="PresentationFramework" />
<Reference Include="System.Windows.Interactivity">
<HintPath>..\..\lib\System.Windows.Interactivity.dll</HintPath>
</Reference>

<Reference Include="System.Xaml" />
<Reference Include="WindowsBase" />
<Compile Include="Platforms\net46\**\*.cs" />
</ItemGroup>

<ItemGroup Label="Package">
<None Include="..\..\lib\System.Windows.Interactivity.dll" PackagePath="lib\net46" Pack="true" />
<None Include="Platforms\uap\Caliburn.Micro.Platform.rd.xml" PackagePath="lib\uap10.0.16299\Caliburn.Micro.Platform\Properties\Caliburn.Micro.Platform.rd.xml" Pack="true" />
</ItemGroup>

Expand Down
2 changes: 1 addition & 1 deletion src/Caliburn.Micro.Platform/ConventionManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
using System.Windows.Data;
using System.Windows.Markup;
using System.Windows.Shapes;
using EventTrigger = System.Windows.Interactivity.EventTrigger;
using EventTrigger = Microsoft.Xaml.Behaviors.EventTrigger;
#endif
#if !WINDOWS_UWP
using System.Windows.Documents;
Expand Down
2 changes: 1 addition & 1 deletion src/Caliburn.Micro.Platform/ElementConvention.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
using FrameworkElement = global::Xamarin.Forms.VisualElement;
#else
using System.Windows;
using TriggerBase = System.Windows.Interactivity.TriggerBase;
using TriggerBase = Microsoft.Xaml.Behaviors.TriggerBase;
#endif

/// <summary>
Expand Down
4 changes: 2 additions & 2 deletions src/Caliburn.Micro.Platform/Message.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
using DependencyObject = global::Xamarin.Forms.BindableObject;
#else
using System.Windows;
using System.Windows.Interactivity;
using TriggerBase = System.Windows.Interactivity.TriggerBase;
using Microsoft.Xaml.Behaviors;
using TriggerBase = Microsoft.Xaml.Behaviors.TriggerBase;
#endif


Expand Down
6 changes: 3 additions & 3 deletions src/Caliburn.Micro.Platform/Parser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@
using System.Text.RegularExpressions;
using System.Windows;
using System.Windows.Data;
using EventTrigger = System.Windows.Interactivity.EventTrigger;
using TriggerBase = System.Windows.Interactivity.TriggerBase;
using TriggerAction = System.Windows.Interactivity.TriggerAction;
using EventTrigger = Microsoft.Xaml.Behaviors.EventTrigger;
using TriggerBase = Microsoft.Xaml.Behaviors.TriggerBase;
using TriggerAction = Microsoft.Xaml.Behaviors.TriggerAction;
using System.Text;
#endif

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using System.Collections.Specialized;
using System.Linq;
using System.Windows;
using System.Windows.Interactivity;
using Microsoft.Xaml.Behaviors;

/// <summary>
/// A collection that can exist as part of a behavior.
Expand Down
2 changes: 1 addition & 1 deletion src/Caliburn.Micro.Platform/Platforms/net46/Parameter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using System;
using System.ComponentModel;
using System.Windows;
using System.Windows.Interactivity;
using Microsoft.Xaml.Behaviors;

/// <summary>
/// Represents a parameter of an <see cref="ActionMessage"/>.
Expand Down
2 changes: 1 addition & 1 deletion src/Caliburn.Micro.Platform/ViewModelBinder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
using Microsoft.Xaml.Interactivity;
#else
using System.Windows;
using System.Windows.Interactivity;
using Microsoft.Xaml.Behaviors;
#endif

/// <summary>
Expand Down

0 comments on commit 19176c5

Please sign in to comment.