1
0
mirror of https://github.com/chylex/.NET-Community-Toolkit.git synced 2024-11-25 01:42:46 +01:00
Commit Graph

1970 Commits

Author SHA1 Message Date
Sergio Pedri
4a02915357 Added RelayCommand type 2020-04-13 19:32:04 +02:00
Sergio Pedri
2727747f1a Minor code refactorings
Changed the property raise methods to follow ObservableCollection naming convention (cc. @Aminator)
2020-04-13 18:54:26 +02:00
Sergio Pedri
511b795271 Minor code style tweaks 2020-04-13 18:40:28 +02:00
Sergio Pedri
9e8412c551 Added ObservableObject class 2020-04-13 18:38:24 +02:00
Sergio Pedri
7c85757c28 Moved Ioc class to separate package 2020-04-13 18:12:17 +02:00
Sergio Pedri
f12bc6c5d3 Added empty Microsoft.Toolkit.Mvvm package 2020-04-13 18:11:03 +02:00
Sergio Pedri
963b6d8207 Minor code refactoring 2020-04-10 13:27:38 +02:00
Sergio Pedri
e06498d7d2 Added Ioc.TryGetInstance<TService> API 2020-04-10 13:26:07 +02:00
Sergio Pedri
8b4c35d64a Speed optimizations to Ioc.GetInstanceWithoutCaching<TService>() 2020-04-10 13:02:56 +02:00
Sergio Pedri
46eee78990 Fixed an XML comment 2020-04-09 20:55:34 +02:00
Sergio Pedri
3f35124c1b Minor code refactorings 2020-04-09 20:47:41 +02:00
Sergio Pedri
1a6cca81b8 Added Ioc.GetInstanceWithoutCaching<TService() API 2020-04-09 20:21:16 +02:00
Sergio Pedri
2a33452a5b Minor code refactoring 2020-04-09 20:18:00 +02:00
Sergio Pedri
eea992ebc0 Added Ioc.GetAllCreatedServices() API 2020-04-09 19:33:44 +02:00
Sergio Pedri
b9f77916bd Added Ioc.Reset() API, minor bug fixes 2020-04-09 18:00:01 +02:00
Sergio Pedri
1f31ba347b Added Ioc.Unregister<TService>() API 2020-04-09 17:47:42 +02:00
Sergio Pedri
edc0119d78 Minor code refactoring 2020-04-09 17:45:53 +02:00
Sergio Pedri
debe7c81d0 Added Ioc.GetAllRegisteredServices() API 2020-04-09 17:45:33 +02:00
Sergio Pedri
edd90c7eec Minor bug fixes 2020-04-09 17:26:48 +02:00
Sergio Pedri
9d2b90a96b Added IoC.IsRegistered<TService>() API 2020-04-09 17:01:03 +02:00
Sergio Pedri
acd0c8b5e1 Minor code refactoring 2020-04-09 16:56:28 +02:00
Sergio Pedri
123889f90f Improved IoC thread-safety 2020-04-09 16:54:33 +02:00
Sergio Pedri
b980082f5e Added IoC class 2020-04-09 16:34:50 +02:00
Sergio Pedri
fab713c51b Merge pull request #19 from windows-toolkit/master
Changes from master
2020-04-03 13:39:11 +02:00
Vincent
8ca869469e Merge remote-tracking branch 'origin/master' into u/vgromfeld/observableGroup 2020-04-02 23:14:34 +02:00
Vincent
f8285cd1d5 simplify implementation of ReadOnlyObservableGroupedCollection 2020-04-02 22:54:56 +02:00
Michael Hawker MSFT (XAML Llama)
aa3523f43d Merge branch 'master' into u/vgromfeld/bindableAttributeRemoved 2020-04-01 15:46:54 -07:00
Vincent
cca93e0eaf address PR comments 2020-04-01 22:53:33 +02:00
Michael Hawker MSFT (XAML Llama)
69f1af3a18 Merge pull request #3207 from windows-toolkit/testsCI+UnitTestFixes
✔ Fix Unit Tests for Integration with CI Builds 🎉🎉🎉
2020-04-01 13:04:53 -07:00
michael-hawker
b5931110a9 Ignore System tests which fail in CI 2020-04-01 12:24:03 -07:00
michael-hawker
e3ab3759b2 Add/Fix System Unit Tests for Nullable Booleans, see Issue #3198
To be removed later with WinUI 3 transition.
2020-03-31 14:48:22 -07:00
Vincent
b8b33ee24f Merge branch 'master' into u/vgromfeld/observableGroup 2020-03-30 23:15:35 +02:00
Ze Groumf
905d79f47c add IReadOnlyObservableGroup interface for x:Bind 2020-03-30 23:13:22 +02:00
Sergio Pedri
75de6c2fd2 Merge pull request #18 from windows-toolkit/master
Changes from master
2020-03-27 20:14:38 +01:00
Ze Groumf
1e6a2e2bb2 simplify base constructor call 2020-03-26 23:27:13 +01:00
Ze Groumf
0b9b929ae3 add IList tests 2020-03-26 22:40:04 +01:00
Ze Groumf
7bb10d54f6 updated sample and fixed ReadOnlyGroupedCollection implementation 2020-03-26 00:18:16 +01:00
Vincent
8a908915fa removed remaining bindable attributes 2020-03-25 09:22:56 +01:00
Michael Hawker MSFT (XAML Llama)
f3fdc21288 Merge pull request #3189 from windows-toolkit/styleCopUpdate
Updated StyleCop to 1.1.118.
2020-03-24 18:16:49 -07:00
Alexandre Zollinger Chohfi
98bf68c112 Updated StyleCop to 1.1.118. 2020-03-24 16:54:08 -07:00
Vincent
915292dd43 Merge pull request #3155 from vgromfeld/u/vgromfeld/removeUnusedFields
Remove IDE0059: Value assigned to variable is never used
2020-03-23 23:02:30 +01:00
Ze Groumf
73287b3a0c add unit tests 2020-03-19 23:59:36 +01:00
Ze Groumf
d37b52c679 first drop 2020-03-19 22:01:34 +01:00
Vincent
50b0e556a3 Merge branch 'master' into u/vgromfeld/removeUnusedFields 2020-03-16 08:51:49 +01:00
Sergio Pedri
482c4722d4 Merge pull request #10 from windows-toolkit/master
Changes from official master
2020-03-15 12:48:59 +01:00
Sergio Pedri
8acc8b7308 Guard APIs (#3131)
* Initial guard APIs added

* Added EqualTo and NotEqualTo APIs

* Added more Guard APIs

* New interval Guard APIs added

* Added Guard APIs for IEnumerable<T> values

* Renamed APIs

* Added Guard APIs for Stream values

* Added Guard APIs for ReadOnlySpan<T> values

* Added Guard APIs for ReadOnlyMemory<T> values

* Code refactoring

* Minor code refactoring

* Added Guard.IsBitwiseEqualTo<T> API

* Added Guard.IsNull API

* Code refactoring and optimizations

* Code refactoring

* Added Guard.HasSizeNotEqualTo<T> API

* Added Guard size API overloads for the string type

* Added Guard size API overloads for T[] arrays

* Code refactoring

* Removed unnecessary using directives

* Added Guard reference check APIs

* Added new Guaard APIs for string values

* Improved Guard.IsBitwiseEqualTo<T> API

* Improved Guard.IsNull APIs

* Added new size APIs for copy operations

* Added new type test APIs, minor code tweaks

* Minor bug fixes

* Added Guard APIs for Task values

* Minor code tweak

* Added new Guard.IsEmpty APIs

* Refactored code to remove unsafe requirement

* Added Guard.IsInRange<T> APIs

* Added missing type checks in Guard.IsBitwiseEqualTo API

* Added ValueTypeExtensions.ToHexString API

* Code refactoring

* Added ValueTypeExtensions tests

* Added general Guard tests

* Bug fixes in the Guard class

* Minor speed improvements

* Code refactoring

* Removed unnecessary using directives

* More speed improvements and API refactoring

* Refactored/fixed some Guard APIs

* More bug fixes

* Added Guard tests for array APIs

* Fixed the Guard.IsNotEmpty<T> array API

* Moved exception throwers to separate class

* Moved general Guard throwers to separate class

* Disabled warning for XML overload resolution

* Moved array Guard throwers to separate class

* Moved stream Guard throwers to separate class

* Fixed some XML docs

* Moved enumerable Guard throwers to separate class

* Moved task Guard throwers to separate class

* Added new Guard APIs for tasks

* Moved string Guard throwers to separate class

* Moved ReadOnlySpan<T> Guard throwers to separate class

* Added Span<T> APIs to the Guard class

* Moved ReadOnlyMemory<T> Guard throwers to separate class

* Added Memory<T> APIs to the Guard class

* Minor code refactoring

* Update file headers

* Removed unnecessary methods

* Added TypeExtensions.ToTypeString extension

* Improved error messages for general Guard APIs

* Improved error messages for Enumerable Guard APIs

* Improved error messages for stream Guard APIs

* Improved error messages for array Guard APIs

* Improved error messages for string Guard APIs

* Improved error messages for task Guard APIs

* Improved error messages for span Guard APIs

* Improved error messages for memory Guard APIs

* Improved type string for nullable types

* Improved type string for value tuple types

* Minor performance improvement

* Added numeric comparison T4 file

* Updated .gitignore to skip generated files

* Moved comparison Guard APIs to separate file

* Renamed template file, fixed incorrect XML doc

* Fixed missing blank line

* Removed unnecessary type parameters

* Moved enumerable Guard APIs to separate file

* Code refactoring in the enumerable T4 template

* Renamed a file

* Added empty template for ThrowHelper.Collection

* Code refactoring in the T4 templates

* Switched collection throw helpers to T4 generation

* Code refactoring

* Removed incorrect file header

* Added new Guard.IsInRangeFor API

* Updated .gitignore, added generated files to source control

* Added tests for Guard.IsInRangeFor

* Improved formatting of values in error messages

* Improved error messages

* More improvements to the error messages

* Minor code tweaks

* Added Guard.IsNotOfType APIs

* Added Guard.IsNotAssignableToType APIs

* Added Guard.IsDefault<T> APIs

* Fixed some XML docs

* Added missing [Pure] attribute

* Fixed typo in a comment

* Removed unnecessary comment after code changes

* Added XML comment for the T4 service

* Added more comments to ToHexString

* Suppressed an incorrect code style warning

* Added more tests for Guard.IsInRange

* Added Guard.IsNotInRangeFor APIs

* Added readme file for the T4 templates

* Changed generated files extension to .g.cs to avoid conflicts

* Added Guard.IsCloseTo and Guard.IsNotCloseTo APIs

* Added tests for IsCloseTo

* Updated ".g.cs" extension for generated files

Co-Authored-By: Michael Hawker MSFT (XAML Llama) <michael.hawker@outlook.com>

* Removed extra space (typo)

Co-Authored-By: Michael Hawker MSFT (XAML Llama) <michael.hawker@outlook.com>

* More tweakes to the Guard.md file

* Excluded TypeInfo.g.cs file from .ttinclude from checkout

* Added more info about target ranges for some APIs

* Added IsCloseTo overloads for long type

* Minor code tweaks

* Added comment to describe (uint) cast range check trick

* Added a nore about the .g.cs files being checked in

* Fixed IsCloseTo tests

* Fixed IsNull tests

Co-authored-by: Michael Hawker MSFT (XAML Llama) <michael.hawker@outlook.com>
2020-03-14 18:13:04 -07:00
Vincent Gromfeld
5424cf709d remove unused fields 2020-02-28 15:15:14 +01:00
Alexandre Zollinger Chohfi
37438bf687 Merge pull request #3033 from windows-toolkit/mhawker/graph-helpers
Graph Control Prep
2019-10-31 14:20:35 -07:00
michael-hawker
a87660cf2c Rename Convert to Converters to not clash with system one. 2019-10-24 21:11:46 -07:00
michael-hawker
2808f6dc36 Add Missing Header 2019-10-24 18:45:12 -07:00