Skip to content
This repository has been archived by the owner on Dec 21, 2023. It is now read-only.

Commit

Permalink
Updated GraphicsControls to use P11
Browse files Browse the repository at this point in the history
  • Loading branch information
jsuarezruiz committed Dec 15, 2021
1 parent 0ef88ab commit 5239722
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Microsoft.Maui.Graphics.Controls.MultiTargeting.targets
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@
</PropertyGroup>

<ItemGroup Condition="$(TargetFramework.Contains('-windows')) == true ">
<PackageReference Include="Microsoft.Graphics.Win2D" Version="1.0.0.29-preview3" />
<PackageReference Include="Microsoft.Maui.Graphics.Win2D.WinUI.Desktop" Version="6.0.101-preview.11.679" />
<PackageReference Include="Microsoft.Graphics.Win2D" Version="1.0.0.30" />
<PackageReference Include="Microsoft.Maui.Graphics.Win2D.WinUI.Desktop" Version="6.0.101-preview.11.758" />
</ItemGroup>

</Project>
2 changes: 1 addition & 1 deletion src/GraphicsControls/GraphicsControls.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<PackageId>Microsoft.Maui.Graphics.Controls</PackageId>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Maui.Graphics" Version="6.0.101-preview.11.679" />
<PackageReference Include="Microsoft.Maui.Graphics" Version="6.0.101-preview.11.758" />
</ItemGroup>
<Import Project="..\..\Microsoft.Maui.Graphics.Controls.MultiTargeting.targets" />
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
using CoreGraphics;
using Foundation;
using Microsoft.Maui.Graphics.Native;
using Microsoft.Maui.Platform;
using UIKit;

namespace Microsoft.Maui.Graphics.Controls
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
using Android.Text;
using Android.Views;
using Android.Views.InputMethods;
using Microsoft.Maui.Platform;
using static Android.Views.View;
using ATextAlignment = Android.Views.TextAlignment;

Expand Down
3 changes: 2 additions & 1 deletion src/GraphicsControls/Handlers/Editor/EditorHandler.iOS.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System;
using Microsoft.Maui.Platform;
using System;
using UIKit;

namespace Microsoft.Maui.Graphics.Controls
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
using Android.Views;
using Android.Views.InputMethods;
using Android.Widget;
using Microsoft.Maui.Platform;
using static Android.Views.View;
using static Android.Widget.TextView;

Expand Down
1 change: 1 addition & 0 deletions src/GraphicsControls/Handlers/Entry/EntryHandler.iOS.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using System;
using Foundation;
using Microsoft.Maui.Platform;
using UIKit;

namespace Microsoft.Maui.Graphics.Controls
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
using CoreGraphics;
using Foundation;
using Microsoft.Maui.Graphics.Native;
using Microsoft.Maui.Platform;
using UIKit;

namespace Microsoft.Maui.Graphics.Controls
Expand Down
4 changes: 3 additions & 1 deletion src/GraphicsControls/Handlers/View/ViewHandler.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#if __IOS__ || MACCATALYST
using Microsoft.Maui.Platform;

#if __IOS__ || MACCATALYST
using NativeView = UIKit.UIView;
#elif MONOANDROID
using NativeView = Android.Views.View;
Expand Down

0 comments on commit 5239722

Please sign in to comment.