Граф коммитов

660 Коммитов

Автор SHA1 Сообщение Дата
Almir Vuk 5b9057a2a6
Implement ItemTappedEventArgsConverter and ConvertersGalleryPage (#157)
* ItemTappedEventArgsConverter Added.

* rename, extension and comment changes.

* Update XamarinCommunityToolkit/Converters/ItemTappedEventArgsConverter.shared.cs

Co-authored-by: Andrei <andrei.misiukevich@gmail.com>

* ItemTappedEventArgsConverter_Tests added.

* Converters Gallery Page, Models and ViewModels added.

* Update ItemTappedEventArgsConverter_Tests.cs

Co-authored-by: Andrei <andrei.misiukevich@gmail.com>
Co-authored-by: Gerald Versluis <gerald.versluis@microsoft.com>
2020-07-15 10:16:44 +02:00
Andrei f7b5f00be3
[Bug] EventToCommandBehavior throws ArgumentException (#159)
* fixes [Bug] EventToCommandBehavior throws ArgumentException with ListView events #158

* added tests
2020-07-15 10:01:48 +02:00
Charlin Agramonte eba902fca4
Added Missing Converter Tests (#156)
* Adding UnitTest project and some Converters tests

* Adding missing converters tests

Co-authored-by: Gerald Versluis <gerald.versluis@microsoft.com>
2020-07-08 10:06:30 +02:00
Gerald Versluis f6419a3452
Add unit tests to pipeline (#153)
* Add unit tests to pipeline

* Update README.md
2020-07-08 09:06:18 +02:00
Charlin Agramonte c2b805e3ff
Adding UnitTest project and some Converters tests (#152)
Co-authored-by: Gerald Versluis <gerald.versluis@microsoft.com>
2020-07-07 11:18:34 +02:00
Andrei 62a596da38
TextDecorationFlags for TextValidationBehavior (#151)
* TextValidationFlags: Fix #149

* updated sample
2020-07-07 10:50:58 +02:00
Gerald Versluis c5fa1f08de
Update README.md 2020-07-02 20:48:33 +02:00
Gerald Versluis d0b5f00007 Update README.md 2020-06-30 08:58:58 +02:00
Gerald Versluis 207c67b4b1 Update azure-pipelines.yml 2020-06-29 20:29:26 +02:00
Andrei d2d557deeb
[POC] Validation behaviors (#132)
* Validation behaviors

* removed useless effect behavior

* refactored samples

* Update XamarinCommunityToolkit/Behaviors/EventToCommandBehavior.shared.cs

Co-authored-by: Gerald Versluis <gerald.versluis@microsoft.com>

* renamed method

* improved readability

* renamed command in the sample files

* fixed build warning

* Update XamarinCommunityToolkitSample/Pages/Behaviors/NumericValidationBehaviorPage.xaml

Co-authored-by: Gerald Versluis <gerald.versluis@microsoft.com>

* improved readability of bindable props

* Update XamarinCommunityToolkitSample/Pages/Behaviors/EmailValidationBehaviorPage.xaml

Co-authored-by: Gerald Versluis <gerald.versluis@microsoft.com>

* updated sample

Co-authored-by: Gerald Versluis <gerald.versluis@microsoft.com>
2020-06-29 20:07:22 +02:00
Steven Thewissen 23398fba18
SafeAreaEffect helper for iOS specific styling (#146)
* Initial effect added

* A few PR fixes

* Small rework for PR comments

* Added type converter

* Renamed effect + finalized implementation

* Moved to using
2020-06-23 14:22:20 +02:00
Glenn Versweyveld b4553c688a
Added about page (#147)
* Added about page

* Enlarge avatars

Use empty view to show data loading
PR comments cleanup

* Fix typo
2020-06-22 20:08:31 +03:00
Andrei 97795663a0
AvatarView (#136)
* added AvatarView

* added obsolete attributes

* removed border width for now

* Update XamarinCommunityToolkit/Views/AvatarView.shared.cs

Co-authored-by: Gerald Versluis <gerald.versluis@microsoft.com>

* removed Frame inheritance

* Added AvatarView sample
Changed XF version for Debug

Co-authored-by: Gerald Versluis <gerald.versluis@microsoft.com>
2020-06-21 01:41:51 +03:00
Steven Thewissen ee4ac7332c
Multiconverter (#144)
* Added MultiConverter

* Multi converter with parameters

* PR fixes
2020-06-19 11:48:04 +02:00
Andrei e20caca475
Sample app redesign [Part 1] (#143)
* Sample app redesign

* Used colors as static resource instead of hardcoded value

* updated sample
2020-06-18 17:15:49 +03:00
Andrei b775148f99
Implement IMarkupExtension in converters (#139)
* Converters as MarkupExtension

* Renamed TextCaseConverterType to TextCaseType.
Renamed ValueConverterMarkupExtension to ValueConverterExtension and put it in Extensions folder.
2020-06-18 16:46:19 +03:00
Gerald Versluis 8b42bbc938
Create CONTRIBUTING.md (#127)
* Create CONTRIBUTING.md

* Update CONTRIBUTING.md

* Update CONTRIBUTING.md
2020-06-17 16:20:57 +02:00
Sunny b0d51921f5
Expansion Pack: Sample App, Behaviors, & More (#126)
* Behaviors

- BaseBehavior
- EffectBehavior
- EventToCommandBehavior
- NumericValidationBehavior
- AttachedNumericValidationBehavior

* Behavior

- Modified several behaviors based on community feedback
- Added TextColor property to NumericValidationBehavior to set a custom color instead of a default Red color
- Simplified code in other behaviors

* String Interpolation

- Replaced String.Format with string interpolation

* Behaviors

- BaseBehavior
- EffectBehavior
- EventToCommandBehavior
- NumericValidationBehavior
- AttachedNumericValidationBehavior

* Behavior

- Modified several behaviors based on community feedback
- Added TextColor property to NumericValidationBehavior to set a custom color instead of a default Red color
- Simplified code in other behaviors

* String Interpolation

- Replaced String.Format with string interpolation

* Update XamarinCommunityToolkit.csproj

Removed PackageLicenseFile due to CI build error:

Error NU5033: Invalid metadata. Cannot specify both a PackageLicenseExpression and a PackageLicenseFile.

* Update XamarinCommunityToolkit.csproj

Copied project file from origin/master branch to resolve CI build errors

* Behaviors

- BaseBehavior
- EffectBehavior
- EventToCommandBehavior
- NumericValidationBehavior
- AttachedNumericValidationBehavior

* Behavior

- Modified several behaviors based on community feedback
- Added TextColor property to NumericValidationBehavior to set a custom color instead of a default Red color
- Simplified code in other behaviors

* String Interpolation

- Replaced String.Format with string interpolation

* Update XamarinCommunityToolkit.csproj

Copied project file from origin/master branch to resolve CI build errors

* CI Build Fixes & New Behaviors

- Fixed CI build errors by removing multiple Include elements in project file, which caused the same file to be included multiple times during a build
- Fixed the automatic adding of obj folder to the solution by adding Exclude attribute to the single Compile element
- Added RegularExpressionValidationBehavior and MaxLengthValidationBehavior for Entry controls
- Added static RegularExpressions to contain most common regular expressions that can be used in any app, especially behaviors and validators

* Fixed project file

- Removed PackageLicenseFile element causing CI error on Pack NuGets task in Build macOS Library job

* More changes

- Renamed MaxLengthValidationBehavior to ExceededLengthValidationBehavior
- Changed logic in above validation to highlight text if text exceeds MaxLength
- Other minor changes

* Renamed Behavior Extensions, Fixed Validation Logic, New Behaviors & Logic

- Renamed Behaviors file extensions to "*.shared.cs"
- Removed Compile element in project file for including "*.cs" extensions because including both "*.cs" and "*.shared.cs" would cause the CI build to detect the same file twice
- Fixed logic in multiple behaviors to use existing TextColor of an Entry rather than using Color.Default if a TextColor is applied on a style and the behavior validation is true, which would override the applied TextColor
- Added MinMaxNumericValidationBehavior to compare the Entry value to the MinValue and MaxValue
- Renamed to LengthValidationBehavior and added MinLength property

* Code Comments

- Adding comments for future when documentation is generated for these classes

* DataChangedBehavior and supporting classes

- Added DataChangedBehavior to compare value of any bindable object to a second object using a comparison condition from XAML
- Added Actions collection to BaseBehavior to iterate over multiple actions using XAML
- Added ability in EventToCommandBehavior to iterate over the Actions collection and execute each action when the event in EventName is triggered
- Added ActionCollection and BindableObjectCollection to Controls
- Added ComparisonCondition to Enumerations
- Added Controls, Helpers, and Interfaces folder

* XamarinCommunityToolkitSample

- Added sample app to test Behaviors
- Added code in BehaviorsPage to test NumericValidation, LengthValidation, MinMaxValidation, and RegularExpressionValidation
- Fixed validation code

* Standardized coding style across files

* A bit more cleanup

* More Fixes

- Added static TextColorProperty to AttachedNumericValidationBehavior
- Added sample to demo above behavior in BehaviorsPage
- Added missing setting of currentTextColor in MinMaxValidationBehavior
- Replaced Email regular expression string to allow for uppercase letters

* Comments

- Added comments to AttachedNumericValidationBehavior for future documentation

Co-authored-by: Steven Thewissen <github@thewissen.io>
2020-06-17 09:52:41 +02:00
Andrei 37974f90fe
Added converters | IntToBool | DoubleToInt | BoolToObject | IndexToArrayItem | LowerCaseText | UpperCaseText (#130)
* Added more converters

* Made the converters throwing an exception in case of value or parameter is invalid.
Removed useless BoolToArrayValue converter.

* covered IntToBoolConverter by comments

* covered IndexToArrayItemConverter by comments

* added comments to DoubleToIntConverter

* added comments to BoolToObjectConverter

* fixed error message typo

* updated comments of ConvertBack methods

* Added Lower/Upper case text converters

* fixed indentation

* fixed converters names

* Updated TextCaseConverter
2020-06-11 18:58:07 +03:00
Steven Thewissen dc6a87785b
Added converters | Equal | NotEqual | ListIsNullOrEmpty | ListIsNotNullOrEmpty (#128)
* Added a few more converters

* Indentation + return value PR fix

* More PR fixes

* Fixed indentation on list converters

* Fix naming + remove null check

* Renamed InvertedBoolConverter

* Update InvertedBoolConverter.shared.cs

* Null checks changed

* Additional ArgumentException when incoming isn't a boolean

* Added error handling to list casts

* Keeping it dry 
2020-06-09 16:01:00 +02:00
Gerald Versluis 17696a62ae
Set up CI with Azure Pipelines (#124)
* Set up CI with Azure Pipelines

[skip ci]

* Use latest available macOS bits

* Trigger CI

* Update NuGet license metadata

* Add build status to README

* Update azure-pipelines.yml for Azure Pipelines

* Update semantic version

* Add triggers in YAML

* Update README.md
2020-06-08 10:36:52 +02:00
Gerald Versluis e2943033d3
Lower Forms dependency to 3.5 (#125) 2020-06-04 10:34:06 +02:00
Steven Thewissen 74809debf6
Basic project setup & added some basic converters (#120)
* Fixes #119

* Added some basic converters

* Converting to string explicitly instead of ToString

* Changes to csproj

* Renamed converters

* Small PR changes

* PR updates
2020-06-04 09:36:26 +02:00
Steven Thewissen 44bfc44709
Update README.md 2020-05-31 16:17:15 +02:00
Gerald Versluis a18fd1bf28
reboot time! (#118)
* Update with "not active"

* Added some basic things for rebooting (#117)

* Added some basic things for rebooting

* Updated readme

* Re-added PR template, wrongly deleted

* PR comments

* Update .github/ISSUE_TEMPLATE/bug-report.md

Co-authored-by: Andrei <andrei.misiukevich@gmail.com>

* Update .github/ISSUE_TEMPLATE/feature-request.md

Co-authored-by: Andrei <andrei.misiukevich@gmail.com>

* PR suggestion included

* Added workaround section

Co-authored-by: Andrei <andrei.misiukevich@gmail.com>

Co-authored-by: James Montemagno <james.montemagno@gmail.com>
Co-authored-by: Steven Thewissen <github@thewissen.io>
Co-authored-by: Andrei <andrei.misiukevich@gmail.com>
2020-05-31 14:45:34 +02:00
Bart Lannoeye ddae5d9b1b
Merge pull request #107 from bartlannoeye/master
Fix the link to contributing.md
2018-10-31 22:12:13 +01:00
Bart Lannoeye 85f8636a8f Fix the link to contributing.md 2018-10-31 21:55:26 +01:00
James Montemagno a225831107
Update README.md 2018-07-09 14:05:22 -07:00
Lieven Van den Audenaeren 75a289862a Update SwitchChangeColor.android.cs (#99)
Fix for wrong starting color on attach
2018-07-06 13:23:17 -07:00
James Montemagno c016b58310
Update NuGet pcakges and sync settings in (#101) 2018-07-06 12:51:07 -07:00
Bart Lannoeye 030810734d
Merge pull request #96 from xamarin/xf-3.0
Update to XF 3.0
2018-05-25 19:28:54 +02:00
Paul DiPietro ea8aee21f8 Update to 3.0.0.482510 2018-05-25 13:07:26 -04:00
Paul DiPietro ba36533e73 Update to XF 3.0 2018-05-10 12:37:53 -04:00
Paul DiPietro f27ce14a7a Animations.Extensions namespace adjustment (#93) 2018-04-26 11:18:14 -07:00
Paul DiPietro 2834991fa3
Merge pull request #92 from wcoder/fixes/readme1
README.md - Fixes links
2018-04-25 21:10:07 -04:00
Yauheni Pakala e8a4566f8a Fixes links 2018-04-25 22:19:27 +03:00
Bart Lannoeye 155c447f5c
Merge pull request #90 from xamarin/typo
Fix another typo
2018-04-20 16:53:35 +02:00
Paul DiPietro 4aaffa84a1 Fix another typo 2018-04-19 23:59:06 -04:00
Bart Lannoeye 7743d0f6c7
Merge pull request #89 from xamarin/heart-typo
Typo correction
2018-04-19 09:28:50 +02:00
Paul DiPietro 85bd20e827 Correct 'hearth' to 'heart' 2018-04-18 14:05:50 -04:00
James Montemagno 447d0ba884
Update README.md (#86)
* Update README.md

* Update README.md

* Update README.md

* Update README.md
2018-04-13 11:46:53 -07:00
Paul DiPietro afd4447a15
Merge pull request #88 from xamarin/fix/87
Remove extra character causing a crash
2018-04-13 11:27:05 -04:00
Paul DiPietro 6bb32bc4f0 Remove extra character causing a crash 2018-04-12 16:42:40 -04:00
James Montemagno b08937ca45
GH-78 & GH-77 Completely reorganize and update repo! Added StyleCop (#82)
* Completely reorganize and update repo!

* Add Style Cop and fix all formatting

* Additional Cleanup for rename and organization

* Update readme

* small tweaks :)
2018-04-06 15:53:25 -07:00
James Montemagno 75170ddada
Merge into master (#71)
* Initial Commit

* Renaming folders

* Sample app renaming projects and namespace

* Folder renaming

* Italic Placeholder Effect

Created Effect that makes the placeholder of an Entry in Xamarin.Forms italicized. A comment on StackOverflow said Font.PointSize isn't exactly the size of the text, but I've found it's close enough.

* Updated Sample app

Updated the Sample app to include a demonstration of the Italic Placeholder Effect. I forgot the RoutingEffect so had to make that.

* Add tests and rename

* Add visibility

* Tabs to spaces

* Add the ValueConversionAttribute that is used by tools such as the WPF Designer or MFractor to verify conversion type-safety in Xaml #2

Also, annotate all existing classes with ValueConversionAttribute.

* Fix references for pcl

* Add xml file to release mode

* Add sample project

* Add SelectAllTextEntryEffect for Android and iOS, with Example

* Add support for changing the true color for a toggle switch

* First implementation SelectAllTextEntryEffect for UWP

* More Organon renaming

* PR feedback on unspecified

* removed unused variables

* Added SelectAllTextEntryEffect to UWP

* [UWP] Add SearchBarSuggestionEffect

* Add ChangePickerColorEffect for Android

* Clean

* Add ChangeColorPickerEffect also for iOS, with sample.
SelectAllTextEntryEffect corrected…

* Re-organization/Naming/Appveyor Scripts/More

Gettings ready for builds in appveyor. Moved to a standard that I use in
all projects.

* Mass renaming. remove _, remove private, and more style guidelines

* Initial Commit of Behaviors

* Added ChangeColorPickerEffect for UWP

* Initial Control Commit

* Initial Gesture Commit

* Initial Animation Commit

* Update nugget & rd.xml file

* Add platform specific projects

* Add platform specific projects

* Add platform specific projects

* Add Entry Behaviors

* Add New Behaviors

EventToCommand, AddEffect, and NumericValidation

* Add projects to solution

* Update solution with projects.

* Add projects to solution

* Rename rd file

* rename rd file

* Fixes for building Effects lib

* Fixing clear entry effect

* Remove arrow pattern

Fixes #31

* Else not needed on if - return pattern

* Spaces instead of Tabs

* Bye tabs

* Try saving the Visual Studio settings!

* Revert "Try saving the Visual Studio settings!"

This reverts commit 22229ce356f8890e72a838ffb2f78d14ad53543d.

* Converting tabs to spaces

* Fix for PR27

* Tabs to spaces

* Adding unstaged project file

Someone got lost

* Fixed filename and tts

* Build fixes

* Some tabs slipped in

* Removing magic strings from Effects ctors

* Removing orphaned old sample files

* Moving filtered Converters back to /src

* Moving filtered Behaviors back to /src

* Moving filtered Gestures back to /src

* Moving filtered Effects back to /src

* Moving filtered Controls back to /src

* Moving filtered Animations back to /src

* Restructure the codebase and add CI!

* Update cake

* Fix package locations

* cleanup slns

* fix gestures sln

* Update README.md

* Update README.md

* Adding editorconfig

* Update Contributing.md

* Refactor and rename

* Adjustments

* Build fix

* Added allias

* Fixing NuGet monnikers

* Update build.cake

* Updating nuspecs to unified repo

* Unify package descriptions

* Fix for #25

This code fixes #25. It is a bug of built-in behaviour in Xamarin.iOS,
as seen on their [bug
tracker](https://bugzilla.xamarin.com/show_bug.cgi?id=33666). After
each change of certain properties (TextColor, Font, Text or
FormattedText) the effect is reapplied.

* Code formatting

Reformatted some code for better readability

* Toggled event and value is being eaten by the effect implementation!
Need to apply the value to the Xamarin forms Control
Fixes #31

* First stab at adding samples project

* Changes to address issues during code review

* I blame NUGET

* Fix #35

* Added Switch change color effect sample

* Added Forms Community Toolkit animations code

* Changed namespaces declaration position

* Changed project error message from Spanish to English.

* BindableProperty nameof

* Added Animations Sample

* Revert "BindableProperty nameof"

This reverts commit d0749a5424.

* Revert "Revert "BindableProperty nameof""

This reverts commit 30d41f0381.

* Deleted animations sample (left for another PR).

* Change condition to positive checks

* if (Animation == null) Change condition

* Added Animations Sample
Some fixes in Animations Library
Updated Xamarin.Forms NuGet version of sample projects

* Fixed wrong Spanish error project message

* More error messages fixes

* Changes related to PR #39 Feedback

* Update README.md

* Effect sample Entry disable auto correct

* Effect sample Entry italic placeholder

* Review adjustments

* Added all current entry effect samples

* Added Size Font To Fit label effect sample

* Remove file level xaml compilation attribute

* trying to fix cake

* Target newer Cake

* Try specific Cake filehelpers version

* Image View blur effect sample
#HacktoberFest

* Updating AppVeyor badge

* Adding missing tempkey

* Fixed link to sample app

Fixes #29

* Added link to documentation

Fixes #33

* Add converter

* Add tests

* Add doc

* Move MockConverter to separate file

* Update explanation of methods

* Update docs

* Added ColorAnimation
Updated Animations Sample
Added Animations nuspec

* Fixed ColorAnimation usings
Changed Animations nuspec Xamarin.Forms version

* Make it easy to spot esp on mobile

* Updated Xamarin.Forms NuGet packages to v2.5

* Update README.md

toolkit name change.

* Update Contributing.md

name change

* Update LICENSE

name change, update year

* Updated more projects to Net Standard
Renamed namespaces from FormsCommunityToolkit to XamarinCommunityToolkit
Updated some nuspecs

* Changed Sample namespaces
More changes in nuspecs

* Fixed Effects.Android namespace error

* Fixed incorrect project references

* Updated nuspecs

* Updated nuspecs (PR feedback)

* Multi-target!

* Rename to Xamarin.Toolkit

Aligns with UWP Community Toolkit

* Fix tests

* Fix android build

* Final fix for android

* Finalize new SLN

* update readme

* Final tweaks to csproj files

* Add netstandard 1.0 and docs

* Refactor Build Props and Targets

Nothing for targets right now.

* Cleanup samples

* Update android resources :)

* Remove readthedocs link
2018-04-04 09:50:06 -07:00
James Montemagno a14e1e7990
Merge pull request #66 from xamarin/davidortinau-patch-1
Update README.md
2018-02-08 20:14:20 -08:00
David Ortinau b43a8dae86
Update README.md
relative link to the samples project
2018-01-23 16:27:57 -06:00
David Ortinau b1bead1956
Update README.md
name change
2018-01-23 15:35:33 -06:00
Bart Lannoeye 9d6ea004ad Merge pull request #27 from bartlannoeye/master
Adding media
2017-03-20 19:58:35 +01:00
Bart Lannoeye 79564f61f6 Colored cog/logo 2017-03-19 20:11:24 +01:00