Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: crash fix plus minor changes to required package versions #161

Merged
merged 128 commits into from
Dec 15, 2024
Merged
Show file tree
Hide file tree
Changes from 126 commits
Commits
Show all changes
128 commits
Select commit Hold shift + click to select a range
e6cbce7
feat: Freaky image is in town :)
Sep 30, 2022
32691c2
Merge pull request #8 from FreakyAli/r2-gh/feat/more-controls
FreakyAli Sep 30, 2022
04035d1
feat: Picker, DatePicker and Timepicker just got Freaky :D
Sep 27, 2022
25cb20a
fix: handled some warnings
Sep 27, 2022
61322dd
feat: some changes to our files :)
Sep 28, 2022
43750cd
fix: TIL
Sep 28, 2022
24483a3
feat: TextInputLayout now has an outlined option :)
Sep 29, 2022
27c1ae7
fix: removed unwanted parts of the code
Sep 29, 2022
33ef54a
fix: background color is now transparent for entry view
Sep 29, 2022
119ac84
feat: freaky image added for descriptions
Sep 30, 2022
3cab82f
feat: final update for your freaky controls
Sep 30, 2022
e0c3cb9
Update README.md
FreakyAli Sep 30, 2022
8005721
Update README.md
FreakyAli Sep 30, 2022
a3bb662
fix: more information on properties
Sep 30, 2022
90ef385
feat: A UI for signatures + Handlers for unsupported platforms to avo…
FreakyAli Oct 6, 2022
4884196
fix: code clean up and other fixes for performance (#16)
FreakyAli Oct 7, 2022
f0e7185
Merge branch 'master' into develop
FreakyAli Oct 7, 2022
c6a7db1
fix: Circular Image now comes from our control. (#17)
FreakyAli Oct 10, 2022
9a26c76
fix: code clean up and updates (#18)
FreakyAli Oct 12, 2022
9cf2c40
chore: setup for 0.3 (#19)
FreakyAli Oct 13, 2022
e1e55c1
fix: fix for nupkg and readme now has gifs (#20)
FreakyAli Oct 14, 2022
2e622c4
fix: updated readme for better visual effects (#21)
FreakyAli Oct 14, 2022
9e7630e
Merge branch 'master' into develop
FreakyAli Oct 14, 2022
89662b8
fix: removed extra semi-colons
FreakyAli Oct 21, 2022
4b1f177
chore: feature request template (#23)
FreakyAli Oct 21, 2022
db43257
feat:support for .net7 (#31)
FreakyAli Nov 17, 2022
37b7003
feat: freaky checkbox is here (#28)
FreakyAli Nov 20, 2022
0f514c6
Merge branch 'master' into develop
FreakyAli Nov 20, 2022
2c42e83
fix: code clean up (#34)
FreakyAli Nov 20, 2022
7fca60e
Merge branch 'master' into develop
FreakyAli Nov 20, 2022
5cf0d40
feat: checkboxes are even freakier now (#36)
FreakyAli Nov 25, 2022
d65716d
fix: updated assembly version
FreakyAli Nov 25, 2022
1f2626b
fix: commit for code clean up (#38)
FreakyAli Nov 25, 2022
f3462e4
Merge branch 'master' into develop
FreakyAli Nov 25, 2022
ec1c6a2
fix: code clean up
FreakyAli Nov 25, 2022
cca8177
fix: added animations and visual states to checkbox (#41)
FreakyAli Dec 17, 2022
72cfb1b
Update README.md (#43)
FreakyAli Dec 31, 2022
fe5ac9c
fix: code clean up and ready checkbox (#39) (#42)
FreakyAli Dec 31, 2022
e9423bc
Merge branch 'master' into develop
FreakyAli Dec 31, 2022
677f9ea
Update README.md
FreakyAli Dec 31, 2022
a05781f
fix: updated readme for 4.2 release & removed unsused code and code …
FreakyAli Jan 14, 2023
a02d3dd
fix: added visual state management for checkbox and better check anim…
FreakyAli Jan 14, 2023
7f06cd1
Merge branch 'master' into develop
FreakyAli Jan 14, 2023
5e8df5b
feat: A Skia based Radiobutton for Maui (#52)
FreakyAli Feb 25, 2023
4f8823e
feat: RadioButtons and RadioGroup are here (#53)
FreakyAli Feb 25, 2023
aea3378
Merge branch 'master' into develop
FreakyAli Feb 25, 2023
215932c
chore: RadioButton officially released (#59)
FreakyAli Apr 18, 2023
e0502d6
Merge branch 'master' into develop
FreakyAli Apr 18, 2023
e90c1f2
fix: code clean up for windows (#67)
FreakyAli Jul 10, 2023
ee3aaf9
fix: code clean up for windows (#69)
FreakyAli Jul 11, 2023
4ca0432
Merge branch 'master' into develop
FreakyAli Jul 11, 2023
d29330d
fix: code clean up
FreakyAli Jul 11, 2023
ce952dd
feat : Freaky Button for your Maui Apps (#70)
FreakyAli Jul 16, 2023
cc76b87
Merge branch 'master' into develop
FreakyAli Jul 16, 2023
70290c5
fix: code clean up and conflict fixes
FreakyAli Jul 16, 2023
d1c582e
fix: code clean up
FreakyAli Jul 16, 2023
611c03a
fix: code clean up
FreakyAli Jul 16, 2023
49fb545
fix: FreakyButton is ready (#74)
FreakyAli Aug 20, 2023
3b66512
feat: SkiaSharp based JumpList for Maui + Crash fix for FreakyEntry (…
FreakyAli Sep 8, 2023
348b7e7
Merge branch 'master' into develop
FreakyAli Sep 8, 2023
6f0fd74
fix: code clean up for codefactor
FreakyAli Sep 8, 2023
71ca13b
Update README.md
FreakyAli Sep 23, 2023
a69d1fb
fix: version changes
FreakyAli Sep 23, 2023
2581495
feat: FreakyAutoCompleteView is here! (#80)
FreakyAli Oct 1, 2023
33e9d49
feat: FreakySwitch with Material 3 design for Android (#82)
FreakyAli Oct 1, 2023
086890a
Merge branch 'master' into develop
FreakyAli Oct 1, 2023
e1343d1
fix: merged with master
FreakyAli Oct 1, 2023
bceb7e1
fix: codefactor fixes
FreakyAli Oct 1, 2023
ffffb8b
fix codefactor fixes
FreakyAli Oct 1, 2023
d6237b3
fix: codefactor related fixes (#84)
FreakyAli Oct 1, 2023
bd2e847
fix: some code clean up and more
FreakyAli Oct 1, 2023
5c47b1a
clean up
FreakyAli Oct 1, 2023
0bafffc
fix: merged with master
FreakyAli Oct 1, 2023
df3d34f
fix: readme
FreakyAli Oct 1, 2023
9680363
Merge branch 'develop' of https://github.com/FreakyAli/Maui.FreakyCon…
FreakyAli Oct 1, 2023
edde0ec
fix: FreakySvgImageView can now load images from Url (#86)
FreakyAli Oct 2, 2023
524bc70
feat: FreakyCodeView that lets you handle OTP's, PinCodes and more (#81)
FreakyAli Oct 4, 2023
1d91069
Merge branch 'master' into develop
FreakyAli Oct 4, 2023
78d701b
fix: clean up
FreakyAli Oct 4, 2023
6df9aef
fix: final commit
FreakyAli Oct 4, 2023
ce24f07
fix: Minor bug fixes + removed deprecated code (#90)
FreakyAli Oct 7, 2023
cfbebcf
Merge branch 'master' into develop
FreakyAli Oct 7, 2023
4244112
docs: Reformatted code in readme files (#95)
cdefgah Oct 29, 2023
19aab2d
fix: Freaky switch’s default theme (#92)
FreakyAli Oct 29, 2023
ddfbb2f
fix: FreakyCodeView's circular border issue where the internal passwo…
FreakyAli Oct 29, 2023
b49bfd2
Merge branch 'master' into develop
FreakyAli Oct 29, 2023
c1ce747
Update InputViews.xaml
FreakyAli Oct 29, 2023
7186526
fix: material 3 dark theme for FreakySwitch & FreakySignaturePad heig…
FreakyAli Nov 11, 2023
5232055
Merge branch 'master' into develop
FreakyAli Nov 11, 2023
286077c
fix: dotnet 8 migration for all freaky controls and samples (#101)
FreakyAli Nov 17, 2023
a9ada40
Merge branch 'master' into develop
FreakyAli Nov 17, 2023
c87e0cd
Update Maui.FreakyControls.csproj
FreakyAli Nov 17, 2023
37cc9d9
Update README.md
FreakyAli Nov 18, 2023
12878cc
fix: code clean up and more
FreakyAli Nov 18, 2023
f59addb
fix: ChipView for Maui (#104)
FreakyAli Dec 30, 2023
5868161
fix: versioning changes
FreakyAli Dec 30, 2023
bfb3a0c
Merge branch 'master' into develop
FreakyAli Dec 30, 2023
934fdf4
fix: codefactor fixes
FreakyAli Dec 30, 2023
d152788
fix: code clean up
FreakyAli Dec 30, 2023
55b6da1
feat: FreakySwipButton is ready!! + bug fixes for TIL (#107)
FreakyAli Feb 10, 2024
85129c6
Merge branch 'master' into develop
FreakyAli Feb 10, 2024
30973e8
fix: clean up and more
FreakyAli Feb 10, 2024
f667113
fix: styling x version
FreakyAli Feb 10, 2024
de714ec
fix: Rewrote FreakySwitch with SkiaSharp, Visual state fixes for Frea…
FreakyAli Feb 25, 2024
c0156c7
Merge branch 'master' into develop
FreakyAli Feb 25, 2024
ad5810f
fix: Added .NET Stubs for UT and small fixes and clean up (#113)
FreakyAli May 10, 2024
5ff7905
Merge branch 'master' into develop
FreakyAli May 10, 2024
08fbbfd
fix: clean up
FreakyAli May 10, 2024
a394029
fix: Changes to the PinCodeControl, TextInputLayout and more (#122)
FreakyAli May 24, 2024
32162af
Merge branch 'master' into develop
FreakyAli May 24, 2024
a83f6bf
fix: merged with master and fixed build issues
FreakyAli May 24, 2024
99c8eef
[CodeFactor] Apply fixes
code-factor May 24, 2024
c01f537
Fix SkiaSharp missing resource errors (#127)
sk1llsh0t May 31, 2024
eb303e2
feat: FreakyZoomableView is now ready (#129)
FreakyAli May 31, 2024
964d213
[CodeFactor] Apply fixes
code-factor May 31, 2024
0ea7506
Merge branch 'master' into develop
FreakyAli May 31, 2024
b4bd73f
fix: Added a switch animation to the FreakySwitch (#136)
cgar0775 Jun 12, 2024
21b256b
fix: added back the solution that was deleted
FreakyAli Jun 12, 2024
3975c41
fix: breaking changes for v0.5 and removal of deprecated properties (…
FreakyAli Jun 12, 2024
b1833b1
Merge branch 'master' into develop
FreakyAli Jun 12, 2024
9801c44
[CodeFactor] Apply fixes
code-factor Jun 12, 2024
344d898
Fix FreakyTextInputLayout title position when focused on app start (#…
sk1llsh0t Oct 5, 2024
a230d6a
fix: theme change crash in entry/editor controls (#145)
sk1llsh0t Oct 5, 2024
690edbb
fix: merging master to develop to pass the workflows & other changes …
FreakyAli Dec 13, 2024
daa0eb9
fix build errors (#157)
janusw Dec 13, 2024
de33894
fix: added some exception handlers and updated some required package …
FreakyAli Dec 15, 2024
cffe47e
fix: merged with master
Dec 15, 2024
241a6be
fix: clean up
Dec 15, 2024
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
29 changes: 29 additions & 0 deletions .github/workflows/main_cd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Create a release on NuGet

on:
push:
tags:
- "v[0-9]+.[0-9]+.[0-9]+"
- "v[0-9]+.[0-9]+.[0-9]+-pre[0-9]+"
jobs:
release-nuget:

runs-on: windows-latest

steps:
- uses: actions/checkout@v4
- name: Verify commit exists in origin/main
run: |
git fetch --no-tags --prune --depth=1 origin +refs/heads/*:refs/remotes/origin/*
git branch --remote --contains | grep origin/master
- name: Get version information from tag
id: get_version
run: |
$version="${{github.ref_name}}".TrimStart("v")
"version-without-v=$version" | Out-File -FilePath $env:GITHUB_OUTPUT -Append
- name: Pack
run: dotnet pack ~/MAUI.FreakyControls/MAUI.FreakyControls/Maui.FreakyControls.csproj -c Release -p:PackageVersion=${{ steps.get_version.outputs.version-without-v }}
- name: Push
run: dotnet nuget push MAUI.FreakyControls/MAUI.FreakyControls/bin/Release/FreakyControls.${{ steps.get_version.outputs.version-without-v }}.nupkg -s https://api.nuget.org/v3/index.json -k ${{ secrets.NUGET_API_KEY }}
env:
GITHUB_TOKEN: ${{ secrets.NUGET_API_KEY }}
19 changes: 19 additions & 0 deletions .github/workflows/main_ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Build for CI

on:
push:
branches: [ "master" ]
paths-ignore:
- "**.md"
pull_request:
branches: [ "master" ]

jobs:
build-plugin-ci:

runs-on: windows-latest

steps:
- uses: actions/checkout@v4
- name: Build
run: dotnet build Maui.FreakyControls\Maui.FreakyControls.sln -c Release
2 changes: 1 addition & 1 deletion MAUI.FreakyControls/MAUI.FreakyControls.sln
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@ Global
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {3A49EF6E-4CF5-41B1-8F23-FCD2AC812C50}
EndGlobalSection
EndGlobal
EndGlobal
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Maui.FreakyControls.Shared.Behaviors;
namespace Maui.FreakyControls.Behaviors;

public abstract class BehaviorBase<T> : Behavior<T> where T : BindableObject
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using Maui.FreakyControls.Shared.Enums;
using Maui.FreakyControls.Enums;
using System.Windows.Input;

namespace Maui.FreakyControls;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.Globalization;

namespace Maui.FreakyControls.Shared.Converters;
namespace Maui.FreakyControls.Converters;

public abstract class BaseOneWayValueConverter : IValueConverter
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.Globalization;

namespace Maui.FreakyControls.Shared.Converters;
namespace Maui.FreakyControls.Converters;

public class ContentToInvisibilityConverter : BaseOneWayValueConverter
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.Globalization;

namespace Maui.FreakyControls.Shared.Converters;
namespace Maui.FreakyControls.Converters;

public class InverseBoolConverter : BaseOneWayValueConverter
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using Maui.FreakyControls.Shared.Enums;
using Maui.FreakyControls.Enums;
using System.Globalization;

namespace Maui.FreakyControls.Shared.Converters;
namespace Maui.FreakyControls.Converters;

public class LeftImageAlignmentToVisibilityConverter : BaseOneWayValueConverter
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using Maui.FreakyControls.Shared.Enums;
using Maui.FreakyControls.Enums;
using System.Globalization;

namespace Maui.FreakyControls.Shared.Converters;
namespace Maui.FreakyControls.Converters;

public class RightImageAlignmentToVisibilityConverter : BaseOneWayValueConverter
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Maui.FreakyControls.Shared.Enums;
namespace Maui.FreakyControls.Enums;

public enum AnimationType
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Maui.FreakyControls.Shared.Enums;
namespace Maui.FreakyControls.Enums;

public enum BorderType
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Maui.FreakyControls.Shared.Enums;
namespace Maui.FreakyControls.Enums;

public enum ButtonAnimations
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Maui.FreakyControls.Shared.Enums;
namespace Maui.FreakyControls.Enums;

public enum CheckType
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Maui.FreakyControls.Shared.Enums;
namespace Maui.FreakyControls.Enums;

public enum Design
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Maui.FreakyControls.Shared.Enums;
namespace Maui.FreakyControls.Enums;

public enum EventType
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Maui.FreakyControls.Shared.Enums;
namespace Maui.FreakyControls.Enums;

public enum FocusAnimation
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Maui.FreakyControls.Shared.Enums;
namespace Maui.FreakyControls.Enums;

public enum ImageAlignment
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Maui.FreakyControls.Shared.Enums;
namespace Maui.FreakyControls.Enums;

public enum ItemShape
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Maui.FreakyControls.Shared.Enums;
namespace Maui.FreakyControls.Enums;

public enum KeyboardType
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Maui.FreakyControls.Shared.Enums;
namespace Maui.FreakyControls.Enums;

public enum Shape
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Maui.FreakyControls;
namespace Maui.FreakyControls.Enums;

public enum SizeOrScaleType
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Maui.FreakyControls.Shared.Enums;
namespace Maui.FreakyControls.Enums;

public enum TextChangeReason
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using Maui.FreakyControls.Shared.Enums;
using Maui.FreakyControls.Enums;

namespace Maui.FreakyControls;

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
//Make sure .EventArgs is never created as a namespace.
namespace Maui.FreakyControls;

public class PointsEventArgs : FreakyEventArgs
{
public IEnumerable<Point> Points { get; set; } = Array.Empty<Point>();
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//Make sure .EventArgs is never created as a namespace.
//Make sure .EventArgs is never created as a namespace.
namespace Maui.FreakyControls;

public class StrokesEventArgs : FreakyEventArgs
{
public IEnumerable<IEnumerable<Point>> Strokes { get; set; } = new Point[0][];
public IEnumerable<IEnumerable<Point>> Strokes { get; set; } = Array.Empty<Point[]>();
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using Maui.FreakyControls.Shared.Enums;
using Maui.FreakyControls.Enums;
using System.Windows.Input;

namespace Maui.FreakyControls;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
x:Class="Maui.FreakyControls.FreakyButton"
xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:converter="clr-namespace:Maui.FreakyControls.Shared.Converters"
xmlns:converter="clr-namespace:Maui.FreakyControls.Converters"
xmlns:freakyEffects="clr-namespace:Maui.FreakyEffects.TouchEffects;assembly=Maui.FreakyEffects"
x:Name="this"
freakyEffects:TouchEffect.Color="{Binding NativeAnimationColor, Source={x:Reference this}}"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using Maui.FreakyControls.Extensions;
using Maui.FreakyControls.Shared.Enums;
using Maui.FreakyControls.Enums;
using System.Runtime.CompilerServices;
using System.Windows.Input;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using Maui.FreakyControls.Extensions;
using Maui.FreakyControls.Shared.Enums;
using Maui.FreakyControls.Enums;
using SkiaSharp;
using SkiaSharp.Views.Maui;
using SkiaSharp.Views.Maui.Controls;
Expand Down Expand Up @@ -45,12 +45,12 @@ private void CheckBox_Tapped(object sender, EventArgs e)

#region Defaults

private static readonly Design design = Shared.Enums.Design.Unified;
private static readonly Design design = Enums.Design.Unified;

private static readonly Shape shape =
DeviceInfo.Platform == DevicePlatform.iOS ?
Shared.Enums.Shape.Circle :
Shared.Enums.Shape.Sqaure;
Enums.Shape.Circle :
Enums.Shape.Sqaure;

private static readonly float outlineWidth = 6.0f;

Expand Down Expand Up @@ -224,7 +224,7 @@ private void DrawCheckFilled(SKPaintSurfaceEventArgs e)
IsAntialias = true
};

if (shape == Shared.Enums.Shape.Circle)
if (shape == Enums.Shape.Circle)
{
canvas.DrawCircle(
imageInfo.Width / 2,
Expand Down Expand Up @@ -330,7 +330,7 @@ private void DrawOutline(SKPaintSurfaceEventArgs e)
})
{
var shape = Design == Design.Unified ? Shape : FreakyCheckbox.shape;
if (shape == Shared.Enums.Shape.Circle)
if (shape == Enums.Shape.Circle)
{
canvas.DrawCircle(
imageInfo.Width / 2,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using Maui.FreakyControls.Extensions;
using Maui.FreakyControls.Shared.Enums;
using Maui.FreakyControls.Enums;
using Microsoft.Maui.Controls.Shapes;

namespace Maui.FreakyControls;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using Maui.FreakyControls.Extensions;
using Maui.FreakyControls.Shared.Enums;
using Maui.FreakyControls.Enums;
using System.ComponentModel;
using System.Diagnostics;
using System.Windows.Input;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using Maui.FreakyControls.Shared.Enums;
using Maui.FreakyControls.Enums;
using System.ComponentModel;
using System.Windows.Input;

Expand Down Expand Up @@ -292,19 +292,6 @@ public Color KeyboardTextColor
typeof(FreakyPinCodeControl),
Colors.Black);

[Obsolete("This property is deprecated, Use KeyboardButtonHeightRequest & KeyboardButtonWidthRequest instead.")]
public double KeyboardButtonSizeRequest
{
get => (double)GetValue(KeyboardButtonSizeRequestProperty);
set => SetValue(KeyboardButtonSizeRequestProperty, value);
}

public static readonly BindableProperty KeyboardButtonSizeRequestProperty = BindableProperty.Create(
nameof(KeyboardButtonSizeRequest),
typeof(double),
typeof(FreakyPinCodeControl),
100.0);

public double KeyboardButtonHeightRequest
{
get => (double)GetValue(KeyboardButtonHeightRequestProperty);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using Maui.FreakyControls.Shared.Enums;
using Maui.FreakyControls.Enums;
using System.Windows.Input;

namespace Maui.FreakyControls;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,22 @@ public FreakyDatePickerHandler()
}

private void MapDatePicker(IDatePickerHandler datePickerHandler, IDatePicker datePicker)
{
if (datePicker is FreakyDatePicker freakyDatePicker &&
datePickerHandler is FreakyDatePickerHandler freakyDatePickerHandler)
{
if (PlatformView is not null && VirtualView is not null)
{
if (freakyDatePicker.ImageSource != default(ImageSource))
{
freakyDatePickerHandler.HandleAndAlignImageSourceAsync(freakyDatePicker).RunConcurrently();
}
}
{
try
{
if (datePicker is FreakyDatePicker freakyDatePicker &&
datePickerHandler is FreakyDatePickerHandler freakyDatePickerHandler)
{
if (PlatformView is not null && VirtualView is not null)
{
if (freakyDatePicker.ImageSource != default(ImageSource))
{
freakyDatePickerHandler.HandleAndAlignImageSourceAsync(freakyDatePicker).RunConcurrently();
}
}
}
}
catch (Exception) { }
}
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using Microsoft.Maui.Handlers;
using Microsoft.Maui.Handlers;

namespace Maui.FreakyControls;

Expand All @@ -11,16 +11,20 @@ public FreakyEditorHandler()
}

private void MapFreakyEditor(IEditorHandler editorHandler, IEditor editor)
{
if (editor is FreakyEditor feditor && editorHandler is FreakyEditorHandler freakyEditorHandler)
{
if (PlatformView is not null && VirtualView is not null)
{
HandleAllowCopyPaste(feditor);
}
{
try
{
if (editor is FreakyEditor feditor && editorHandler is FreakyEditorHandler freakyEditorHandler)
{
if (PlatformView is not null && VirtualView is not null)
{
HandleAllowCopyPaste(feditor);
}
}
}
catch(Exception) { }
}
}
}
#else
public partial class FreakyEditorHandler : EditorHandler
{
Expand Down
Loading