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

320 Коммитов

Автор SHA1 Сообщение Дата
Andrei Nitescu 802ab20e71 Fixes binding to nullable types (#6860)
-fixes #6280
2019-07-15 13:34:54 +02:00
Stephane Delcroix 04d44fbe82
[X] do not compile binding set as property values (#6837)
binding passed as properties don't have a valid datatype, so do not compile those.

- fixes #5240
2019-07-15 12:02:13 +02:00
Mike Schwörer f507130f4d Fixed: Button CornerRadius doesn't work in explicit style (#6753)
- fixes #5046 

* Fixed #5046 - Button CornerRadius doesn't work in explicit style

* Added Unit Test

* Requested changes from PR

* Moved UnitTest to Xamarin.Forms.Xaml.UnitTests

* Update Xamarin.Forms.Xaml.UnitTests/ButtonCornerRadius.xaml.cs

Co-Authored-By: Stephane Delcroix <stephane@delcroix.org>

* Do not add ButtonCornerRadius in csproj

* removed dangling changes in ButtonUnitTest.cs
2019-07-11 10:52:18 +02:00
Samantha Houts c9ebaab4b4 Merge branch '4.1.0' into 4.2.0 2019-07-09 10:50:41 -07:00
Stephane Delcroix d44d705cf1 [X] Allow x:Null for x:DataType (#6822)
- fixes #6648
2019-07-08 16:03:32 -07:00
Andrew Hoefling efa9cf4a02 Adds FontImage Markup Extension for FontImageSource (#6398)
* Added FontImage markup extension which simplifies usage of FontImageSource into any ImageSource

* Added unit tests to cover TabBar which is used in Shell

* Cleaned up xaml for test code

* Removed class references from unit test project which were added by mistake

* Removed FontImageExtension from markup parser

* Added ContentProperty to markup extension

* Added Size to FontImageExtension

* Updated unit tests for new properties

* added unit tests to certify each property was set correctly by the markup extension

* Added content property test to certify that Glyph is being set correctly

* Flipped order in unit tests of expected and actual

* Updated default value for Size to use the FontImageSource default's value. This will keep it in sync if that value ever changes

fixes #6376
2019-06-27 17:23:32 -07:00
Samantha Houts 577bc7b06f Merge branch '4.1.0' 2019-06-27 16:50:21 -07:00
Stephane Delcroix ea0d55dd0d
[X] resolve event handlers in base generic types (#6194)
* [XamlC] fix Debug harness generation code

* [X] resolve event handlers in base generic types

- fixes #6176
2019-06-26 14:35:54 +02:00
Akihiko Odaki 54acfa9122 [XamlC] Do not try to set a value to bound source property if unavailable (#6564) 2019-06-20 11:37:42 +02:00
ShaneN 8d526f34a8 merge 4.1.0 into master 2019-06-18 10:49:34 -06:00
Tim Barham 7b21069fad Resolve fallback type before trying to make constructed generic type (#6511)
* Resolve fallback type before trying to make constructed generic type

The FallbackTypeResolver hander in the Forms previewer does not have access to the x:TypeArguments attribute, so if it constructs a proxy generic type from metadata it can't construct it. So the previewer has to create an unconstructed generic type, and Forms will need to construct it.

So we need to move the code that constructs the generic type after the call to FallbackTypeResolver.

(cherry picked from commit 5acfea4f457453856a8905002f4d35c8e9aad106)

* Fix error building DesignTimeLoaderTests in 4.1
2019-06-13 20:21:55 +02:00
Akihiko Odaki 24bf23b2d1 [XamlC] Correctly load addresses of values in more compiled binding paths (#6423)
This is a follow-up of commit 12f5b702ef.
2019-06-08 10:55:53 +02:00
Samantha Houts 70f8363929 Merge branch '4.0.0' into 4.1.0 2019-06-05 21:15:41 -07:00
Samantha Houts 0ab3ea7f37 Merge branch '3.6.0' into 4.0.0 2019-06-05 21:10:49 -07:00
Stephane Delcroix 70bf803eb1
handle implicit resources (#6416) 2019-06-05 15:23:04 +02:00
Stephane Delcroix 5fa0f9fcd8
[CSS] workaround for corner-radius (#6401)
Frame and Button implement IBorderElement bot do not share the CornerRadiusProperty.
This ifx workaround that so the CSS engine is not confused. This is a workaround,
a proper, but breaking, change is required and will happen on master
2019-06-05 08:26:51 +02:00
Samantha Houts 46d9cf283e Merge branch '4.0.0' into 4.1.0 2019-05-31 21:00:25 -07:00
Samantha Houts 14539da7b4 Merge branch '3.6.0' into 4.0.0 2019-05-31 18:50:16 -07:00
Samantha Houts 95d1a87951
Roll back assembly version to 2.0.0.0 (#6379)
fixes #6375
2019-05-31 18:36:34 -07:00
Rui Marinho f8fd2811dc
Merge branch '4.0.0' 2019-05-22 22:32:28 +01:00
Rui Marinho 38711f35d0
Merge branch '3.6.0' into 4.0.0 2019-05-22 16:23:05 +01:00
Stephane Delcroix 48885e0331
Load resources (#6243)
* internal method to only reload RDs

* fix test
2019-05-22 14:02:45 +02:00
Rui Marinho 9bc0fc6b0a
[Build] Update builds, remove submodule, update AssemblyInfo with GitInfo (#6068)
* [Build] Remove submodule

* [Build] Use GitInfo to set Assembly metadata

* [Build] Remove extra prop

* [Build] Update version

* [Build] Update versions to be consistent with existing Build.Tasks

* [Build] Update build number

* [Build] make sure build tasks gets info

* [Build] Add assembly info unit test

* [Test] Refactor test for gitinfo on vsts
2019-05-22 01:06:59 +01:00
inforithmics a19e105240 fixes BindableLayout DataTemplate - XamlC #5486 (#6178)
fixes #5651
fixes #5486

* Update TypeReferenceExtensions.cs
2019-05-20 11:00:46 -07:00
Stephane Delcroix 5eca00b0e2
move imports to Directory.Build.[props|targets] (#6212) 2019-05-18 05:19:09 -07:00
Samantha Houts 1b26e4d9f3 Merge branch '4.0.0' 2019-05-09 21:14:54 -07:00
Shane Neuville 03e9a9fe43 Remove experimental flag for shell and change a few apis (#6086) fixes #2415
* api changes for shell official

* Update Xamarin.Forms.Core/Shell/Shell.cs

Co-Authored-By: PureWeen <shane94@hotmail.com>

* Update Xamarin.Forms.Core/Shell/ShellItemCollection.cs

Co-Authored-By: PureWeen <shane94@hotmail.com>

* Update Xamarin.Forms.Core/Shell/ShellSection.cs

Co-Authored-By: PureWeen <shane94@hotmail.com>

* Update Xamarin.Forms.Core/Shell/ShellItem.cs

Co-Authored-By: PureWeen <shane94@hotmail.com>

* fix compile errors

* fix ui test

* fix ui test

* removed some more properties

* remove a couple more
2019-05-09 14:18:04 -07:00
Stephane Delcroix 42b61a8722
report file location on error (#6024) 2019-05-03 20:29:08 +02:00
Akihiko Odaki 92ee64e2f6 [Xaml[C]] Allow to connect to static event handler (#5119) 2019-05-03 20:25:03 +02:00
Stephane Delcroix 48f48371db
[X] pass the instance along the rlq (#6007)
allow resourceprovider to track lifecycle of xaml-generated object
2019-05-02 17:51:12 +02:00
ShaneN b3927b617f merge 4.0.0 in master 2019-04-29 14:14:19 -06:00
Matthew Leibowitz a8d0d7a1d4 [WIP] Unify the image handling (#4915)
* Initial code to get unifiied image handling
 - not yet tested
 - still using FileImageSource in some areas

* Updated the button renderers and added tests for Android

* Updated a few more of the Android renderers
 - also added an `IsEmpty` property to the ImageSource to indicate if this source actually contains data that can be used to try and load an image
 - added a few more "tests"
 - includes the changes for #4916

* A few more changes

* Keep the default page for the sample app

* Changing everything to ImageSource and going from there
 - Android, iOS, UWP and WPF are compiling
 - GTK, Mac and Tizen are not yet finished
 - Added a new interface for UWP to return an IconElement in addition to ImageSource (for app bar buttons)
 - not tested yet, nor are there any tests

* Renamed the property to be more useful

* All of Android is now async
 - still only minimal tests
 - also removed the bits that are in https://github.com/xamarin/Xamarin.Forms/pull/4948

* Update Xamarin.Forms.Platform.cs

* A few fixes to whitespace and nameof()

* Updated iOS and UWP wirth async image sources

* A few fixes and WPF support

* A few fixes for Android after the big merge

* Updated a few more loaders:
 - ios
 - macos
 - tizen
 - gtk

* Fix a few things after the merge

* - cast type to FileImageSource

* fix setting of title content if icon doesn't load

* fix IButtonLayoutManager to return correct control

* remove cast and add pack api

* - fix timing issues with layout/invalidation

* - remove aggresive element invalidations for now

* first set of api changes

* obsolete old apis and create new ones for ImageSource

* obsolete messages and static ordering fix

* add tests

* switch default on windows to show images on tabs

* - XStatic obsolete fix

* fix NPC test and bring back alert check on uwp

Fixes #3207
Fixes #4689
2019-04-26 13:46:13 -07:00
ShaneN 5475846880 merge 4.0.0 into master 2019-04-08 13:17:37 -06:00
Tim Barham 53979c8297
XamlLoader should not ignore x:TypeArguments on root node (#5804) 2019-04-05 15:31:28 +10:00
Stephane Delcroix c92fb05acd Merge branch '4.0.0' 2019-04-04 08:55:24 +02:00
Stephane Delcroix ab164c0ede
[X] resolve generic indexer types (#5794)
- fixes #5510
2019-04-03 15:19:33 +02:00
Stephane Delcroix 3f65849d76
[Shell] propagate BindingContext to SearchHandler (#5730)
- fixes #5705
2019-04-03 08:49:01 +02:00
Stephane Delcroix 92382c9703
[C] change searchHandler bindingMode (#5776)
Change the default BindingMode for some properties

- fixes #5706
2019-04-02 10:02:44 +02:00
Samantha Houts 723f2de439 Merge branch '4.0.0' 2019-03-27 17:14:57 -07:00
E.Z. Hart f1297f93d5 Re-enable "Treat warnings as errors" (#5602)
* Enable "treat warnings as errors"

* Remove unnecessary for loop

* Remove properties which already exist in base class

* Make property hiding explicit and obsolete hiding property

* Move Treat Warnings as Errors setting to props file

* Fix weird quotation changes in Xamarin.Forms.Build.Tasks.csproj

* Scrub empty WarningsAsErrors tags

* Remove unused variable

* Fix TearDown method hiding in UI tests

* Fix Id member hiding in test for Bugzilla32871

* Fix RootPage member hiding in Bugzilla51503

* Fix RooPage member hiding in Issue1483

* Disable warnings for deprecated OpenGL calls

* Fix member hiding in test view models

* Fix RootPage member hiding in Issue1931

* Fix Id member hiding in Bugzilla42620

* Fix AutomationId member hiding in Bugzilla57114

* Fix Layout member hiding in Bugzilla40911

* Remove unused variables from Bugzilla31114

* Remove unused variable

* Fix various unused variable warnings

* Disable warning to leave example code for reference

* Fix unused variable from macOS test

* Remove unused members

* Fix unused variable warnings

* Fixed unused property warnings

* Fix warnings for unused code

* Disable 'await' warning

* Remove unused variable

* Adding pragma directives for await warnings

* Remove member hiding

* Turn off global "Treat warnings as errors" in other platforms

* Use MarkerId instead of obsolete Id member

* Fix await warnings in WPF GeocoderBackend

* Add missing await

* Disable warning for unused event
2019-03-27 18:38:38 +00:00
Akihiko Odaki 422c4419f3 [Xaml] Throw XamlParseException when a duplicate property is detected (#5558) 2019-03-26 15:49:05 +01:00
Samantha Houts b20afe467f Merge branch '4.0.0' 2019-03-18 18:26:21 -07:00
Samantha Houts 0a7e7352b8 Merge branch '3.6.0' into 4.0.0 2019-03-18 18:25:50 -07:00
Stephane Delcroix 447aa6fda2 [X] intercepts FindByName exceptions (#5599)
for previewer

- fixes #5572
2019-03-18 16:43:59 -07:00
Stephane Delcroix 3461ded959 [X] resilient to random text content (#5557)
- fixes https://devdiv.visualstudio.com/DefaultCollection/DevDiv/_workitems/edit/817588
2019-03-18 15:45:15 -07:00
Stephane Delcroix 5d45f74d29 [X] Allow empty property xaml-elements (#5550)
- fixes https://devdiv.visualstudio.com/DevDiv/_workitems/edit/817710?src=WorkItemMention&src-action=artifact_link
- reverts #4582
2019-03-18 14:58:36 -07:00
Stephane Delcroix a125f6d7ba Merge branch '4.0.0' 2019-03-18 09:40:38 +01:00
Stephane Delcroix fb169ce976 Merge branch '3.6.0' into 4.0.0 2019-03-18 09:40:11 +01:00
Akihiko Odaki 7c71feec26 [XamlC] Resolve complex property type (#5086) 2019-03-15 15:12:57 -07:00
Stephane Delcroix 5c07fa9b43 [X] resilient to unyped x:Name (#5552)
Allow the previewer to recover from an x:Name attribute on a element
with unresolved type.

- fixes #5546
- closes #5547
2019-03-14 17:42:54 -07:00