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

660 Коммитов

Автор SHA1 Сообщение Дата
Mark Allibone 88bef7390e
Date time offset converter (#248)
* Adds date time offset converter

* Adds tests for DateTimeOffsetConverter

* Adopts naming convention for shared code

* Add xml doc and some more tests

* Removes explicit private declarations

* Update XamarinCommunityToolkit/Converters/DateTimeOffsetConverter.shared.cs

* Update XamarinCommunityToolkit/Converters/DateTimeOffsetConverter.shared.cs

* Update XamarinCommunityToolkit/Converters/DateTimeOffsetConverter.shared.cs

* Update XamarinCommunityToolkit/Converters/DateTimeOffsetConverter.shared.cs

* Adds sample

* Update XamarinCommunityToolkitSample/Pages/Converters/DateTimeOffsetConverterPage.xaml.cs

* Remove VS inserts from project file

* Revert sln back to pre-VS Windows added lines

Co-authored-by: Andrei <andrei.misiukevich@gmail.com>
2020-09-01 15:06:51 +03:00
github-actions[bot] 73ea43542a
Automated dotnet-format update (#251)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2020-09-01 09:43:36 +02:00
Bernd Hirschmann cecbc1f986
use decimal separator from current culture (#256)
* use decimal separator from current culture

* fixed indention

* added additional tests

Co-authored-by: Bernd Hirschmann <bhi@guidnew.com>
2020-08-31 21:27:55 +02:00
Gerald Versluis af9878178e
CameraView iOS (#244)
* Implemented iOS

* Code cleanup

* Translations and more cleanup/polishing

* Undo csproj change

* Apply suggestions from code review

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

* float to double

* Removed BrowserEditable attributes

* Made MediaCapturedEventArgs read-only

* Fixed tests

Co-authored-by: Andrei <andrei.misiukevich@gmail.com>
2020-08-28 09:28:53 +02:00
Matthew Leibowitz 2ec8588b15
Revert "Merge ObservableRangeCollection from MVVMHelpers"
This reverts commit 4911422858.
2020-08-27 22:28:40 +02:00
Matthew Leibowitz 4911422858
Merge ObservableRangeCollection from MVVMHelpers
- Fixes #249
- This added the code as is and also the tests
2020-08-27 22:27:33 +02:00
Andrei 2eb74d1859
MultiValidationBehavior (#239)
* Added MultiValidationBehavior

* Added multi validation behavior
2020-08-27 17:21:59 +03:00
github-actions[bot] 06db733c8b
Automated dotnet-format update (#246)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Gerald Versluis <gerald.versluis@microsoft.com>
2020-08-27 14:29:42 +03:00
Gerald Versluis 0c53811767
Added some unit tests to check namespaces (#245)
* Create ConvertersNamespace_Tests.cs

* Review feedback

* More review feedback

* Update ConvertersNamespace_Tests.cs
2020-08-27 13:22:38 +02:00
Andrei dc7225aa74
NumericValidationBehavior: Added Max/Min decimal places (#227)
* NumericValidationBehavior: Added Max/Min decimal places

* Update XamarinCommunityToolkit/Behaviors/Validators/NumericValidationBehavior.shared.cs

* Updated numeric sample by adding maximum decimal places

Co-authored-by: Gerald Versluis <gerald.versluis@microsoft.com>
2020-08-26 16:16:16 +02:00
Lachlan Gordon c15fc6a13e
Set Default Language (#243)
Added default language in sample app. Without this UWP has Null for all resources until a language is set.
2020-08-26 13:08:28 +02:00
Brian Macomber 593c5941c1
Update README.md (#235) 2020-08-26 09:24:43 +02:00
github-actions[bot] 7d97d513d3
Automated dotnet-format update (#229)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Gerald Versluis <gerald.versluis@microsoft.com>
2020-08-25 13:01:07 +02:00
Lachlan Gordon a03c21e466
Set android Toolbar item color (#233)
Updated toolbar item color to #5D5D5D which matches `NavigationBarTextColor` from App.xaml.

Old color was white text on white background

Co-authored-by: Gerald Versluis <gerald.versluis@microsoft.com>
2020-08-25 12:56:41 +02:00
Lachlan Gordon 128f78e92d
Added .mfractor to gitignore (#232) 2020-08-25 12:50:38 +02:00
Charlin Agramonte b330c3ac24
Added Multilingual Support (#216)
* Adding multilingual support

* Adding multilingual support

* Updating sample AppResource reference

* Make Xamarin CommunityToolkit linker safe (#210)

* Made the lib linker safe

* rebase against main

* Update XamarinCommunityToolkit/Helpers/TranslateExtension.shared.cs

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

* Update XamarinCommunityToolkit/Helpers/TranslateExtension.shared.cs

Co-authored-by: Pedro Jesus <pedrojesus.cefet@gmail.com>

* Updating the TranslationExtension file namespace

* Update .editorconfig (#212)

Tabs in https://github.com/xamarin/XamarinCommunityToolkit/pull/209 were rendering wider than 4 spaces

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

* Added missing strings in AppResources.resx for UriValidationBehavior (#218)

* Edited Resx and it messed up the Designer

Added missing Resx strings for UriValidationDescription.

* Updated Resource Text to match Andrei's original

Co-authored-by: Andrei <andrei.misiukevich@gmail.com>
Co-authored-by: Gerald Versluis <gerald.versluis@microsoft.com>

* Multi binding sample (#219)

* Edited Resx and it messed up the Designer

Added missing Resx strings for UriValidationDescription.

* Created sample for MultiConverter

Added MultiConverterPage and MultiConverterPageViewModel
Added string resources in AppResources.resx
Added link to new page in ConvertersGalleryViewModel

* Updated Resource Text to match Andrei's original

* UI Neatening

Adding some spacing and padding and line breaks to look after Gerald's eyes.

* Update XamarinCommunityToolkitSample/ViewModels/Converters/MultiConverterViewModel.cs

* Update XamarinCommunityToolkitSample/Pages/Converters/MultiConverterPage.xaml.cs

Co-authored-by: Gerald Versluis <gerald.versluis@microsoft.com>
Co-authored-by: Andrei <andrei.misiukevich@gmail.com>

* Automated dotnet-format update (#221)

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* Added UWP Sample and Target Framework (#222)

* Added UWP Sample

Added UWP Sample Project
Added Project to Solutions
Configured references and Run configurations
It runs on UWP and all features seem to work

It looks like VS Windows made lots of run configuration changes. I'm not sure if they should be here, or if they should be committed separately, or somehow prevented.

* Added UAP target framework

Added `uap10.0` as a target frame
Fixed a wonky project reference
Fixed ImageResourceExtension to work with UAP

* Just white space

Changed all spaces to tabs in C# files.

* Reverted a bunch of SLN changes from when my VS went rogue

* Reorganized Target Framework declaration

My previous target frameworks had isssues:
* Toolkiit wouldn't build on mac
* Target Frameworks were declared separately for Debug and Release but were exactly the same
* It was targetting UAP10.0 which is too broad and requires more VS workloads, now targettings 10.0.16299 specifically
* Project file already had some clever Windows_NT  target framework stuff included but it was doing nothing because the frameworks were declared in the wrong place

Now we've got less code, it works on Mac and it works for more windows users. Win, win win.

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

* Adding multilingual support

* Adding multilingual support

* Updating sample AppResource reference

* Update XamarinCommunityToolkit/Helpers/TranslateExtension.shared.cs

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

* Update XamarinCommunityToolkit/Helpers/TranslateExtension.shared.cs

Co-authored-by: Pedro Jesus <pedrojesus.cefet@gmail.com>

* Updating the TranslationExtension file namespace

* Minor .csproject clean up

Co-authored-by: Pedro Jesus <pedrojesus.cefet@gmail.com>
Co-authored-by: Andrei <andrei.misiukevich@gmail.com>
Co-authored-by: Bart Lannoeye <bart.lannoeye@gmail.com>
Co-authored-by: Gerald Versluis <gerald.versluis@microsoft.com>
Co-authored-by: Lachlan Gordon <lachlanwgordon@gmail.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2020-08-24 16:01:12 -04:00
Lachlan Gordon 21bfb022cf
Added UWP Sample and Target Framework (#222)
* Added UWP Sample

Added UWP Sample Project
Added Project to Solutions
Configured references and Run configurations
It runs on UWP and all features seem to work

It looks like VS Windows made lots of run configuration changes. I'm not sure if they should be here, or if they should be committed separately, or somehow prevented.

* Added UAP target framework

Added `uap10.0` as a target frame
Fixed a wonky project reference
Fixed ImageResourceExtension to work with UAP

* Just white space

Changed all spaces to tabs in C# files.

* Reverted a bunch of SLN changes from when my VS went rogue

* Reorganized Target Framework declaration

My previous target frameworks had isssues:
* Toolkiit wouldn't build on mac
* Target Frameworks were declared separately for Debug and Release but were exactly the same
* It was targetting UAP10.0 which is too broad and requires more VS workloads, now targettings 10.0.16299 specifically
* Project file already had some clever Windows_NT  target framework stuff included but it was doing nothing because the frameworks were declared in the wrong place

Now we've got less code, it works on Mac and it works for more windows users. Win, win win.

Co-authored-by: Gerald Versluis <gerald.versluis@microsoft.com>
2020-08-24 15:29:23 +02:00
github-actions[bot] df8c75f5be
Automated dotnet-format update (#221)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2020-08-24 11:01:39 +02:00
Lachlan Gordon 0d6e61f965
Multi binding sample (#219)
* Edited Resx and it messed up the Designer

Added missing Resx strings for UriValidationDescription.

* Created sample for MultiConverter

Added MultiConverterPage and MultiConverterPageViewModel
Added string resources in AppResources.resx
Added link to new page in ConvertersGalleryViewModel

* Updated Resource Text to match Andrei's original

* UI Neatening

Adding some spacing and padding and line breaks to look after Gerald's eyes.

* Update XamarinCommunityToolkitSample/ViewModels/Converters/MultiConverterViewModel.cs

* Update XamarinCommunityToolkitSample/Pages/Converters/MultiConverterPage.xaml.cs

Co-authored-by: Gerald Versluis <gerald.versluis@microsoft.com>
Co-authored-by: Andrei <andrei.misiukevich@gmail.com>
2020-08-21 16:16:08 +02:00
Lachlan Gordon 3c55b1e94a
Added missing strings in AppResources.resx for UriValidationBehavior (#218)
* Edited Resx and it messed up the Designer

Added missing Resx strings for UriValidationDescription.

* Updated Resource Text to match Andrei's original

Co-authored-by: Andrei <andrei.misiukevich@gmail.com>
Co-authored-by: Gerald Versluis <gerald.versluis@microsoft.com>
2020-08-21 09:42:18 +02:00
Bart Lannoeye 39f2dafe07
Update .editorconfig (#212)
Tabs in https://github.com/xamarin/XamarinCommunityToolkit/pull/209 were rendering wider than 4 spaces

Co-authored-by: Gerald Versluis <gerald.versluis@microsoft.com>
2020-08-21 09:34:06 +02:00
Pedro Jesus c4f0abaa03
Make Xamarin CommunityToolkit linker safe (#210)
* Made the lib linker safe

* rebase against main
2020-08-20 14:52:27 +03:00
Brian Macomber e69d64c06c
Add proposal approval process (#208) 2020-08-19 11:16:52 +03:00
Gerald Versluis eee635d6ae
Create dotnet-format-daily.yml (#207) 2020-08-18 14:46:14 +02:00
Andrei e16e55f62d
UriValidationBehavior (#205)
* UriValidationBehavior

* added sample page

* added unit tests

* fixed UI glitch
2020-08-18 08:20:02 +02:00
Gerald Versluis 4ce5f5e299
Add to gitignore and delete comitted one (#206) 2020-08-17 14:13:59 +02:00
Ieuan Walker 563bfa4c44
Masked behavior (#180)
* working masked behaviors + examples

* code formatted

* typo fixed

* Changed to use BaseBehavior.
Changed to use InputView rather than Entry

* Updated Mask property to be a bindable Propperty.
Added Bindable property for override the unmasked value (default is 'X')

* editor example

* Fixed csproj issue

* Fixed suggested formatting

* update

* Fixed suggestions

* Updated

* fixed suggestion

* Fix

* Added hardcoded text to resource

* Update XamarinCommunityToolkit/Behaviors/MaskedBehavior.shared.cs

* Update XamarinCommunityToolkit/Behaviors/MaskedBehavior.shared.cs

* 🐛 Fix unexpected behaviors

* update

* update

* fixed namespaces and text translations

* Added hardcoded text to resources

* Formatted doc

* Removed weird merge file

* Formatting

* Create dotnet-format-pr.yml

* Update dotnet-format-pr.yml

* Update dotnet-format-pr.yml

* Delete dotnet-format-pr.yml

* Revert "Delete dotnet-format-pr.yml"

This reverts commit 87592cec88.

* Update dotnet-format-pr.yml

* Update dotnet-format-pr.yml

* Delete dotnet-format-pr.yml

Co-authored-by: Andrei <andrei.misiukevich@gmail.com>
Co-authored-by: Felipe Baltazar <felipe.dasilvabaltazar@gmail.com>
Co-authored-by: Gerald Versluis <gerald@verslu.is>
2020-08-16 17:49:44 +02:00
Gerald Versluis a46f4a97c6 Update README.md 2020-08-12 14:39:57 +02:00
Andrei 86da3237f3
SideMenuView (#187)
* SideMenuView

* moved files to own folder

* tabs to spaces

* Added more method to side menu element collection

* moved private stuff to top of file

* removed editorBrowsable

* renamed Diff to Shift

* initial sample setup

* fixed state bug

* updated spacings

* fix formatting

* fix crash

* fix formatting

* removed using

Co-authored-by: Gerald Versluis <gerald.versluis@microsoft.com>
2020-08-12 11:53:45 +03:00
Andrei 1bd53958ff
fixed resources path (#198)
Co-authored-by: Gerald Versluis <gerald.versluis@microsoft.com>
2020-08-12 09:52:16 +02:00
Pedro Jesus dcdb44bd8d
Fixed project name in solution file (#199) 2020-08-12 08:40:08 +02:00
Gerald Versluis 09bef29c5e
Big Rename (again...) (#191)
* Big rename

* dotnet format

* Update azure-pipelines.yml

* Update Xamarin.CommunityToolkit.csproj

* Update azure-pipelines.yml

* Update README.md

* Update .editorconfig

* Spaces to tabs

* Moar formatting

* Adapted ByteArrayToImageSourceConverter
2020-08-11 22:45:15 +02:00
Almir Vuk b99d4cb04b
Implement ByteArrayToImageSourceConverter in converters. (#182)
* ByteArrayToImageSourceConverter implementation.

* Convert method changes.

* Convert back and tests changes.

* Update XamarinCommunityToolkit.UnitTests/Converters/ByteArrayToImageSourceConverter_Tests.cs

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

* Added null checks and other UI sample releated changes .

* Update XamarinCommunityToolkit/Converters/ByteArrayToImageSourceConverter.shared.cs

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

* Using System.Threading fix.

* Update XamarinCommunityToolkitSample/Resx/AppResources.resx

* Update XamarinCommunityToolkit/Converters/ByteArrayToImageSourceConverter.shared.cs

Co-authored-by: Andrei <andrei.misiukevich@gmail.com>
2020-08-10 18:42:48 +03:00
Gerald Versluis 32131aef7d
Delete code-format-pr.yml 2020-08-08 21:33:47 +02:00
Gerald Versluis d2680af931
Create code-format-pr.yml 2020-08-08 13:35:34 +02:00
Andrei ec581b3f30
- Upgraded lower supported XF version to 4.5 (#188)
- Removed useless interface
- Moved RangeSlider to Views namespace and folder
2020-08-06 19:57:49 +02:00
Charlin Agramonte cc2c654773
Moved all strings to a Resource file (#186)
* Moving all strings to a Resource file

* Minor XAML reference style
2020-08-05 09:33:09 +02:00
Steven Thewissen f5f655d410
Update README.md (#185)
Added Nightly feed.
2020-08-03 11:33:56 +02:00
Andreas Nesheim b28f9af32e
Fixed project reference for main solution (#173) 2020-08-01 23:05:38 +02:00
David Ortinau 963337398a
Update README.md 2020-07-31 12:11:28 -05:00
David Ortinau 9f67312607
adding some images for the readme 2020-07-31 11:59:20 -05:00
Charlin Agramonte cdbb6e5e60
Added Animation Behavior (#169)
* Adding Animation Behavior

* Removing Duplicate items

* Fix

* Update XamarinCommunityToolkit/Behaviors/Animations/AnimationTypes/FadeAnimation.shared.cs

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

* Update XamarinCommunityToolkit/Behaviors/Animations/AnimationBehaviour.shared.cs

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

* Microsoft.Toolkit.Xamarin.Forms namespace rename. (#167)

* Huge rename of namepsace.

* Update azure-pipelines.yml

* NuGet rename

* Merge fix

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

* Adding Animation Behavior

* Removing Duplicate items

* Fix

* Update XamarinCommunityToolkit/Behaviors/Animations/AnimationTypes/FadeAnimation.shared.cs

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

* Update XamarinCommunityToolkit/Behaviors/Animations/AnimationBehaviour.shared.cs

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

* Applying PR feedbacks

* Remove EasingType

Co-authored-by: Gerald Versluis <gerald.versluis@microsoft.com>
Co-authored-by: Andrei <andrei.misiukevich@gmail.com>
Co-authored-by: Almir Vuk <almir.vuk@outlook.com>
Co-authored-by: Gerald Versluis <gerald@verslu.is>
2020-07-28 14:20:53 +02:00
Almir Vuk 60092a20d3
Microsoft.Toolkit.Xamarin.Forms namespace rename. (#167)
* Huge rename of namepsace.

* Update azure-pipelines.yml

* NuGet rename

* Merge fix

Co-authored-by: Gerald Versluis <gerald@verslu.is>
Co-authored-by: Gerald Versluis <gerald.versluis@microsoft.com>
2020-07-24 20:41:54 +02:00
Andrei 507eee99da
RangeSlider (#166)
* RangeSlider

* fixed thumb size binding in sample

* updated sample
2020-07-23 20:44:59 +02:00
Steven Thewissen e5ddc37bbb
Sample UI update (#164)
* Starting to restructure samples

* Update WelcomePage.xaml.cs

* Lots of sample reworking

* Minor tweaks for Droid

* PR suggestions
2020-07-20 16:42:40 +02:00
Almir Vuk e868fcd0bc
Implement ItemSelectedEventArgsConverter in converters (#162)
* ItemSelectedEventArgsConverter and Test added.

* Sample page and gallery page updated.

* Formatting fixes on sample view models.

* Method(s) renaming.

Co-authored-by: Gerald Versluis <gerald.versluis@microsoft.com>
2020-07-17 08:25:37 +02:00
Gerald Versluis 72a7019edf
Create SECURITY.md 2020-07-16 10:50:22 +02:00
Gerald Versluis 313792999f
Update bug-report.md 2020-07-16 10:38:22 +02:00
Javier Suárez 7eac934a95
Updated main branch references in docs (#161)
Co-authored-by: Gerald Versluis <gerald.versluis@microsoft.com>
2020-07-15 21:30:02 +02:00
Gerald Versluis 3cde9de091 Update azure-pipelines.yml for Azure Pipelines 2020-07-15 20:24:35 +02:00