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

41 Коммитов

Автор SHA1 Сообщение Дата
Brandon Minnick 4eb36f4126
Update azure-pipelines.yml 2021-03-05 22:18:38 -08:00
Brandon Minnick 6792b976b7
Update azure-pipelines.yml 2021-03-05 22:07:46 -08:00
Brandon Minnick 5843c70a50
Update azure-pipelines.yml 2021-03-05 21:56:24 -08:00
Brandon Minnick 06b4d9c954
Update azure-pipelines.yml 2021-03-05 21:46:06 -08:00
Brandon Minnick c4a46b5bdb
Update azure-pipelines.yml 2021-03-05 21:36:19 -08:00
Brandon Minnick 2d88beff79
Update azure-pipelines.yml 2021-03-05 21:32:02 -08:00
Brandon Minnick 9c0674dbd5
Update azure-pipelines.yml 2021-03-05 21:22:45 -08:00
Brandon Minnick 1fe2a4a4e6
Revert "Update azure-pipelines.yml"
This reverts commit 0842280e36.
2021-03-05 21:02:43 -08:00
Brandon Minnick 0842280e36
Update azure-pipelines.yml 2021-03-05 21:02:32 -08:00
Brandon Minnick e3c3da1d63
Update azure-pipelines.yml 2021-03-05 21:00:12 -08:00
Brandon Minnick 20e5818a89
Update azure-pipelines.yml 2021-03-05 20:34:01 -08:00
Brandon Minnick 421e3314e2
Update azure-pipelines.yml 2021-03-05 18:50:47 -08:00
Brandon Minnick e246e061da
Update azure-pipelines.yml 2021-03-05 18:44:39 -08:00
Brandon Minnick 3a75a59aa8
Update azure-pipelines.yml 2021-03-05 18:38:50 -08:00
Brandon Minnick ec66139749
Use .NET 5.0 2021-03-05 18:18:03 -08:00
Gerald Versluis 14ad23760e
Fix build signing (#958)
* Update azure-pipelines.yml

* Update azure-pipelines.yml
2021-02-22 21:01:45 +01:00
Gerald Versluis 0a7f0329c7 Update azure-pipelines.yml for Azure Pipelines 2021-02-22 15:37:05 +01:00
Gerald Versluis f571dcf5ea
Update azure-pipelines.yml 2021-02-16 08:57:47 +01:00
Gerald Versluis f62c078146 Update azure-pipelines.yml for Azure Pipelines 2021-02-04 11:46:25 +01:00
Gerald Versluis 532633c47e
Update azure-pipelines.yml 2021-02-04 11:28:49 +01:00
Gerald Versluis b0ca201f76
Update azure-pipelines.yml 2021-02-03 13:57:34 +01:00
Gerald Versluis 21bec3e669
Update azure-pipelines.yml 2021-01-08 11:41:41 +01:00
Gerald Versluis 8f574e595f Update azure-pipelines.yml for Azure Pipelines 2021-01-06 14:10:55 +01:00
Gerald Versluis f956e16688 Update azure-pipelines.yml for Azure Pipelines 2021-01-06 14:10:43 +01:00
Gerald Versluis 913fa79632
Move sample to root and merge Markup sample (#685)
* Move sample to root and rename

* Move Markup folder

* Update azure-pipelines.yml

* Update azure-pipelines.yml

* Fix GTK build

* Fixing references

* Add Markup

* Last fixes

* Folder rename to be inline with .NET Foundation guidelines
2020-12-17 10:33:35 +01:00
Matthew Leibowitz fa93de1445
Update azure-pipelines.yml (#682)
* Update azure-pipelines.yml

* Update azure-pipelines.yml

* Create SignList.xml

* Update azure-pipelines.yml for Azure Pipelines

* Update azure-pipelines.yml

Co-authored-by: Gerald Versluis <gerald@verslu.is>
Co-authored-by: Javier Suárez <javiersuarezruiz@hotmail.com>
2020-12-15 13:16:06 +01:00
Gerald Versluis 9169e70112
Update azure-pipelines.yml 2020-12-15 09:18:52 +01:00
Gerald Versluis df806d68c0
Update azure-pipelines.yml 2020-12-15 09:14:56 +01:00
Gerald Versluis e6d740c9ad
Update azure-pipelines.yml 2020-12-14 22:20:51 +01:00
Gerald Versluis 841c06f3ce Update azure-pipelines.yml for Azure Pipelines 2020-12-14 21:51:03 +01:00
Vladislav Antonyuk c3ebd2f7c6
Fix Samples build (#613)
* Fix Samples build

* Add job to build samples

Co-authored-by: Vladislav Antonyuk <vlad.antonyuk@outlook.com>
2020-11-26 09:24:02 +01:00
Pedro Jesus c579590850
Part of Project clean-up #529 (#587)
* moved files and fixed XCT solution

* fixed Markup solutions

* Renaming, tidying

- More renaming of files and folders to be more consistent
- Added UnitTest project to Xamarin.CommunityToolkit solution
- Removed unused Support.md
- Fixed path to csproj in build yaml to fix the build

* Update azure-pipelines.yml

* Update Xamarin.CommunityToolkit.UnitTests.csproj

Co-authored-by: Gerald Versluis <gerald@verslu.is>
2020-11-20 21:29:13 +01:00
Vincent Hoogendoorn c030809060
Move C# Markup Extensions from Forms to Toolkit (#522)
* [Spec] CSharpForMarkup (#8342)

* - Add MarkupExtensions from 0615662827/src/XamarinFormsMarkupExtensions.cs
- Remove specific converters
- Fix .NETStandard 1 build errors by refactoring IConvertible to Enum generic constraints
- Add RegisterDefaultBindableProperties method
- Reformat source to comply with Forms contibuting guidelines

* - Move markup extensions to Xamarin.Forms.Markup namespace to prevent impact on existing code and to support clear separation of UI markup from UI logic
- Split up source file for better maintainability

* Cleanup:
- Names of generic types and variables to reflect where clauses
- Namespaces remove unused & sort
- Add whitespace
- Remove unused file

* Fix for incorrect type name in exception message
Remove RowCol helpers because compiler cannot infer its generic type parameters. Use Row and Col methods instead

* Add targetNullValue and fallbackValue parameters to binding helpers.
Equivalent to bd7f999576

* rename binding helpers sourcePropertyName parameter to path

* Enable Style<T> on BindableObject instead of Element to resolve https://github.com/xamarin/Xamarin.Forms/pull/8342#discussion_r363088124

* Fix for Grid properties Row, Col, RowSpan, ColumnSpan not set when default value is specified https://github.com/VincentH-Net/CSharpForMarkup/issues/7

* Support DefaultBindableProperties for BindableObject (was limited to Element)

* .Font:
- Support any IFontElement (was limited to Button, Label, Entry and Picker)
- Fix for italic ignored when bold == true

* Fix for .FontSize, .Bold, .Italic return Label instead of type derived from Label

* Unit tests batch 1: for LabelExtensions, LayoutExtensions, ViewExtensions

* Add DefaultBindableProperties for more BindableObject types

* Remove .Menu() helper from ViewInFlexLayoutExtensions (bc no relation to FlexLayout)

* Fix for .Row and .Col without span specified still sets span

* Rename MarkupBaseTestFixture.TestPropertySet to TestPropertiesSet

* Add unit tests for ViewInFlexLayoutExtensions, ViewInGridExtensions and VisualElementExtensions

* Add default bindable property for all applicable bindable objects in core.

* Add unit tests for DefaultBindableProperties

* Support Bind, Assign and Invoke on BindableObject (was Element)
Add inline doc to clarify purpose of Bind overloads

* Add unit tests for BindableObjectExtensions

* Fix for attributes not set in .Font
Rename fontSize parameter to size
Enable .FontSize, .Bold and .Italic on IFontElement (was Label)

* Add unit tests for ElementExtensions

* Add unit tests for ElementExtensions

* Add assert of exception message content in GetDefaultBindablePropertyForUnsupportedType

* Add unit tests for EnumsForGridRowsAndColumns

* Add inline doc to clarify purpose of gesture recognizer binding overloads
Rename private constant bindingContextPropertyName to bindingContextPath for clarity

* Add unit tests for Style; cleanup namespaces in Style

* Simplify BindableObjectExtensions implementation (functionality unchanged)

* Add IGestureRecognizers to GestureElement and View, to avoid code duplication when accessing the existing GestureRecognizers property

* - Add specific helpers for more built-in gesture recognizers
- Add helpers to support initializing gesture recognizers
- Eliminate duplicate code for View and GestureElement by using new IGestureRecognizers
- Simplify implementation
- Rename ViewGesturesExtensions to ElementGesturesExtensions

* Extract BindingHelpers from BindableObjectExtensionsTests

* Add unit tests for ElementGesturesExtensions

* Add support for typed converter parameters
Add asserts for conversion values in unit tests

* Add unit tests for FuncConverter

* Add missing calls to Bind overloads in unit test for supporting derived types in BindableObject extensions fluent API

* Cleanup: remove unneeded Xamarin.Forms. prefix from static class references

* Add unit tests for PlatformSpecificsExtensions

* Reorder FuncConverter type params to optimize for most common usage and to remain backwards compatible with https://github.com/VincentH-Net/CSharpForMarkup

* Extend Bind*Gesture helpers to support all possible binding parameters

* Rename EnumsForGridRowsAndColumns to GridRowColEnums

* Add BindCommand helper to bind to default Command + CommandParameter properties
Add RegisterForCommand to register default Command + CommandParameter properties for custom bindable objects

* - Change Bind*Gesture helper parameters to match BindCommand parameters, to enable binding to Command + CommandParameter in a single compact call (removed parameters did not make sense for a command).
- Add inline doc to more ElementGesturesExtensions helpers where needed
- Improve ElementGesturesExtensions source formattting for consistency and readability

* Remove PlatformSpecificsExtensions
(only 2 iOS-only helpers; replace with guidance in PR description on how to use any platform specific with .Invoke)

* Fix inline doc spelling: it's -> its

* Rename TextLeft -> TextStart, TextRight -> TextEnd to support RTL

* Add Columns.Define(width, width ...) and Rows.Define(height, height ...) overloads for Grid

* Rename Grid rows & columns extensions class to GridRowsColumns

* Change gesture recognizer helpers implementation from reuse existing instance to always add new instance

* Change Bind*Gesture helpers default to not bind the commandparameter (is the more common scenario)

* Rename BoolNotConverter to NotConverter and make it a 2-way converter

* Add culture support to FuncConverter

* Rename helpers Left -> Start, Right -> End
Add opt-in LeftToRight and RightToLeft helpers

* Rename Col -> Column throughout

* Rename H -> Horizontal and V -> Vertical throughout

* Add Markup_Experimental flag for all API methods and update all unit tests to run with and without the flag

* Re-add "Markup_Experimental" flag

* Add default bindable properties / test exclusions for new BindableObject types in core

* Add constructorHint to FuncConverter and Style for more clear experimental flag message

* Add default bindable property for RadioButton - fixes test AllBindableElementsInCoreHaveDefaultBindablePropertyOrAreExcluded failure

* Cross-Platform OS Theme APIs (#9958)

* Implement OnAppTheme

* Implement AppThemeColor

* Added tests

* Finishing up

* Implement UWP

* Xcode 11 and additional test

* Update Forms.cs

* Update ViewRenderer.cs

* Update ViewRenderer.cs

* Remove IAppThemeProvider

* Implemented RequestedThemeChanged

* Update WindowsBasePlatformServices.cs

* Bindable props and Android invalidate

* Update DefaultBindableProperties.cs

* Updates at runtime

* Review feedback part 1

* Implement VisualElement.OnRequestedThemeChanged

* UWP Dispatcher

* Add experimental flag

* ControlGallery restructure

* Update ViewRenderer.cs

* Update WindowsBasePlatformServices.cs

* iOS pre-13 fix

* AppTheme fix NRE (#10327)

* Various fixes

* Back to basics

* [Enhancement] Shapes (#9218)

* Added Shapes to Core and Core Gallery samples
Implemented basic Shapes on iOS

* Added basic shapes Android implementation

* Fixed UWP namespace conflicts

* Fixed WPF namespace conflicts

* Implemented basic shapes on UWP

* Fixed UWP Ellipse and Rectangle size issue

* Fixed Tizen Build

* Changes to fix the build errors

* Exclude shapes renderers from Tizen compilation

* Implemented LineCap and LineJoin in Android and iOS

* Implemented LineCap and LineJoin on UWP

* Fixed build error

* Updated Polygon sample

* Fixed UWP Build error (namespace conflicts)

* Fixed namespaces collision build error

* Added "Shapes_Experimental" flag

* Update UWP ShapeRenderer size logic

* Updated iOS and Android ShapeRenderer size logic

* Fixed UWP Build error

* Added WPF implementation

* Fixed Tizen Build error

* Added Shapes macOS implementation

* Fixed broken unit tests

* Use the same Shapes classes between UWP and WPF backends

* Fixed flipper macOS shape issue

* Changed Shape class to be abstract

* Added Polygon and Polyline unit tests

* Added more Shapes Unit Tests

* Moved Shapes to Xamarin.Forms.Shapes in Android, iOS and macOS

* Moved Shapes to Xamarin.Forms.Shapes namespace in Windows (UWP and WPF)

fixes #2452 (partially)
fixes #9178

* [Enhancement] Shapes (Path) (#9264)

* Added Path definition in Core (Shapes)
Implemented Path in Android and iOS

* Fixed Android build errors

* Fixed UWP Build

* Fixed WPF Build

* Implemented PathRenderer on UWP

* Added unit tests

* Fixed namespaces conflicts in Platform projects

* Changes to fix the build errors

* Implemented Path Transformations in Android and iOS

* Fixed Build error in WPF and UWP

* Implemented Path Transformations in UWP

* Fixed iOS Build error

* Changes to fix the Build (Path namespace conflict)

* More changes to fix the build error

* Fixed Windows Build errors

* Fixed Path size issue on UWP

* Added Shapes_Experimental flag

* Updated path sample

* Updated Android ShapeRenderer size logic

* Added Shape Aspect sample in Core Gallery

* Added more Shapes samples

* Updated UWP PathRenderer size logic

* Updated droid and iOS pathRenderer size logic (same behavior in all the platforms)

* Updated UWP ShapeRenderer

* Implemented Path in WPF Backend

* Fixed build error

* Initial Clip implementation in WPF and UWP (work in progress)

* Added Path implementation on macOS

* Added Clip implementation in Android, iOS and macOS

* Fixed broken unit tests

* Notify the change of Geometry if any of the child properties changed

* Added new sample clipping different views

* Fixed flipped shape issue on macOS

* Added support to Clip using EllipseGeometry, LineGeometry and RectangleGeometry in UWP

* Changed Shape class to be abstract

* Moved Shapes to Xamarin.Forms.Shapes in Android, iOS and macOS

* Moved Shapes to Xamarin.Forms.Shapes namespace in Windows (UWP and WPF)

* Fixed wrong property in LineGeometry

* Fixed build error

* Added Clip Performance sample in Core Gallery

* Update Matrix.cs

* Update RectangleGeometry.cs

* Update Xamarin.Forms.Platform.macOS.csproj

* Some duplicate classes

* Update PointCollectionTests.cs

* Update ImageButtonRenderer.cs

* Update Xamarin.Forms.Platform.iOS.csproj

* Update Xamarin.Forms.Platform.iOS.csproj

* Fixed tabs error

Co-authored-by: Samantha Houts <samhouts@users.noreply.github.com>

fixes #2452 (partially)
fixes #9178

* Add fluent DynamicResource markup helpers

* Add support for all IPaddingElement Elements to Padding markup helpers (was only Layouts)

* Make family first parameter of Font markup helper (reduces the need to use named parameters across all FontElement extensions)

* Add Stars(double) markup helper for Grids

* Add RelativeLayout markup helpers

* wip Add RelativeLayoutTests

* Add RelativeLayout markup helpers done

* Add BindableLayout markup helpers

* wip Add MultiBind and MultiConverter support to markup helpers

* - Add multiconverter markup helpers
- Improve Bind markup helpers: add multibinding, make more strongly typed, remove converterParameter where unused
- wip Add unit tests for multiconverter and multibind

* wip Add unit tests for multibind

* Move MultiBind helpers + tests to separate files
wip Complete MultiBind unit tests

* wip Add unit tests for MultiBind markup helpers

* Add unit tests for MultiBind and MultiConvert markup helpers

* Add overloads for Bindable Layout markup helpers that take a Func<object> instead of a DataTemplate

* move C# Markup out of forms with internalsvisibleto, eliminate reflection

* Markup API: build against Forms 5 NuGet, remove experimental checks, change namespace to Xamarin.CommunityToolkit.Markup, add TODO comments for inaccessible IPaddingElement

* Build against Forms 5 NuGet, change namespace to Xamarin.CommunityToolkit.Markup.UnitTests, remove experimental flag testing. add TODO comments for inacccessible API's

* Add PR link to TODO comment

* Update to Forms NuGets that have public IPaddingElement
Get unit tests working and succeeding except for issue in Forms

* Bring unit tests to 100% code coverage
Cleanup mocks and remove all unused code from them
Remove all unnecessary namespace usings

* prefix Markup top-level folders with Xamarin.CommunityToolkit.

* add Xamarin.CommunityToolkit.Markup.sln, eliminate Markup subfolders, fix notimplemented exception in MockPlatformServices

* include stylecop.json in Markup project

* add comment with Forms NuGets download url to project files

* add prefix Xamarin.CommunityToolkit. to namespaces and assembly names where missing

* add package settings, license and icon to markup project

* add MarkupSample solution

* fix android build errro due to max path length (remove solution folder)
complete MarkupSample

* remove dependency on internal Forms PaddingElement and FontElement classes

* add temporary msbuild target for downloading NuGets from Forms PR

* add markup to ci

* fix markup project folder names in ci

* fix markup temporary NuGet download in ci

* fix markup unit test project for ci

* use NuGets from PR as merged into Forms 5.5.0 branch
fix tests that fail due to Forms PR 12689 not yet merged

* remove experimental wrapper from markup unit tests
align markup unit test project packagereferences to xct unit test project

* fix all code formatting warnings where applicable
suppress remaining code formatting warnings with justification where not applicable

* add warning codes from GlobalSuppressions.cs to NoWarn in project files

* fix Forms version warning
revert adding warning codes in project files

* ci run all tests in single task

* align markup csproj to XCT csproj for same type of debug info in release package

* update forms version in markup sample

* update to Forms 5.0.0.1709-pre4
remove custom Forms NuGet download targets
update unit tests for Forms fix fix https://github.com/xamarin/Xamarin.Forms/pull/12689

* Markup package version  to 1.0.0-pre4
Markup sample to Markup 1.0.0-pre4 and Forms 5.0.0.1709-pre4

Co-authored-by: Gerald Versluis <gerald.versluis@microsoft.com>
Co-authored-by: Javier Suárez <javiersuarezruiz@hotmail.com>
Co-authored-by: Vincent Hoogendoorn <dev@vincenth.net>
Co-authored-by: Vincent Hoogendoorn <vincenth@workstreampeople.com>
2020-11-17 12:04:26 +01:00
Gerald Versluis 8470f56f1a
Update azure-pipelines.yml (#524) 2020-11-05 14:09:07 +01:00
Yann Zahringer Ferrando 23baecafbd
AsyncCommand (#279)
* WeakEventManager added

* AsyncCommand added

* cosmetics

* Update XamarinCommunityToolkit/ObjectModel/IAsyncCommand.shared.cs

* Update XamarinCommunityToolkit/ObjectModel/AsyncCommand.shared.cs

* Update XamarinCommunityToolkit/Helpers/WeakEventManager.shared.cs

* cosmetics

* ArgumentNullException constructor test added

* Lazy isNullableParameterType added

* cosmetics

* Update XamarinCommunityToolkit/ObjectModel/AsyncCommand.shared.cs

* Update XamarinCommunityToolkit/ObjectModel/AsyncCommand.shared.cs

* Update XamarinCommunityToolkit/ObjectModel/AsyncCommand.shared.cs

* CanExecute tests converted to Theory

* build fix

* unit test fix

* async void test fixed with semaphore

* Add AsyncValueCommand & UnitTests

* Update Unit Tests for xUnit

* Delete AsyncCommand_Tests.cs

* Added IAsyncCommand.IsExecuting, IAsyncCommand.AllowsMultipleExecutions

* Add missing NuGet Packages

* Added NuGet Packages

* Fixed Failing Unit Tests

Defer `async void`. This ensures InvalidCommandParameterException is thrown on the calling thread/context before reaching an async void method

* Add BaseCommand, Update Unit Tests

* Finish Unit Tests

* Implement AsyncCommand

* Implement WeakEventManager

* Updated XML Documentation

* Update XML Documentation

* Add & Implement IAsyncCommand<TExecute, TCanExecute>  + IAsyncValueCommand<TExecute, TCanExecute>

* Add IAsyncCommand<TExecute, TCanExecute> Tests, Add IAsyncValueCommand<TExecute, TCanExecute> Tests

* Fix Failing Tests

* Removed Default Parameters

* Update XamarinCommunityToolkit/Helpers/WeakEventManagerService.shared.cs

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

* Update XamarinCommunityToolkit/ObjectModel/AsyncCommand.shared.cs

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

* Update XamarinCommunityToolkit/ObjectModel/AsyncValueCommand.shared.cs

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

* Update XamarinCommunityToolkit/Helpers/WeakEventManager.shared.cs

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

* Update XamarinCommunityToolkit/Helpers/WeakEventManager.shared.cs

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

* Update XamarinCommunityToolkit/Helpers/WeakEventManagerService.shared.cs

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

* Update XamarinCommunityToolkit/Helpers/WeakEventManagerService.shared.cs

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

* Update XamarinCommunityToolkit/Helpers/WeakEventManager.shared.cs

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

* Implement ValueTuple for EventManagerService, Remove WeakEventManager from CameraView

* merge build fix

* Re-add .NET Standard 2.1 Support

* null check cleanup

* Increase NETCORE_TEST_VERSION to 3.1.x

* Add null check

Co-authored-by: Andrei <andrei.misiukevich@gmail.com>
Co-authored-by: Brandon Minnick <13558917+brminnick@users.noreply.github.com>
Co-authored-by: Pedro Jesus <pedrojesus.cefet@gmail.com>
2020-09-19 01:47:54 +03: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 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
Gerald Versluis 3cde9de091 Update azure-pipelines.yml for Azure Pipelines 2020-07-15 20:24:35 +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
Gerald Versluis 207c67b4b1 Update azure-pipelines.yml 2020-06-29 20:29:26 +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