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

167 Коммитов

Автор SHA1 Сообщение Дата
Pavel Yakovlev cceee9ded6 Add TabStop/TabIndex (#2795)
* [Core, UWP, Android] support TabStop/TabIndex

* removing linq

* add iOS / MacOS implementation

* add WPF implementation
fixes UWP implementation

* - addressing comments
- improve test
- optimizations
- added previous tab direction in same tab group

* addressing comments

* [Android] support tabstop for pickers

* - moving shared code to a static class
- removed reflection

* ITabStop -> changed to internal, renamed, added in to fastRenderers

* Update ITabStop to be public
2018-09-12 21:20:46 -07:00
Pavel Yakovlev 56d47a1469 [iOS] AutomationProperty support for cells (#3313) fixes #3296
* [iOS] AutomationProperty support for cells

* Add test case to AutomationProperties gallery
2018-08-23 13:28:31 +01:00
Gerald Versluis 203d4ffcf0 MaxLines property on Label (#3318)
* Implemented MaxLines on iOS, Mac OS, Android, UWP and WPF

Introduced new MaxLines property on Label

* Set default value to -1

* Implemented reverting to default value

* More improvements

Update measurement when MaxLines property value changes and updates to default values.

fixes #2060
fixes #1706
2018-08-16 07:25:47 +00:00
Rui Marinho 0610191b3d Merge branch '3.2.0' 2018-08-15 20:19:45 +01:00
Rui Marinho 689a0bb9bc
[iOS] Fix sizing issue on MDP (#3515) fixes #3458
* [iOS] Fix sizing of MDP when rotating

* [Controls]Add a NavigationPage to MDP FlowDirectionGallery so we can have the toggle button
2018-08-15 20:06:16 +01:00
Samantha Houts 8a760480a2 [Android] Prevent white flash when switching MainPage to new MasterDetailPage (#3283) fixes #1373
* Test rapid MDP swaps

* [Android] Prevent white screen flash

* [Android] Prevent crashes on rapid page swaps

* Shorten test time

* Preserve old code just in case

* Remove flaky test from main run

Confirmed that it doesn't ever crash on UITest

* More info in 1601 test

* Update NavigateToTestPage to await test cases page

This lets the page render and then clean itself up when we switch to the test case, which allows the test case for 1601 to actually render with a compressed layout after my change to Platform.

* Remove call to FragmentManager.ExecutePendingTransactions in MasterDetailContainer

this code was only added to prevent the page flicker, and it caused more issues than it solved.

* SetPage will now delay removing views until the new views are in place
2018-08-07 22:45:28 +01:00
Rui Marinho d081105d4c
Merge branch '3.2.0' 2018-08-07 13:05:24 +01:00
Shane Neuville 3c3029db08
[Android] check if bitmaps have been GC'd (#3459)
* [Android] fixes #2004 check if bitmaps have been GC'd

* - Remove duplicate calls for handling background drawable

* - set _backgroundTracker to null
2018-08-06 11:27:22 -06:00
adrianknight89 5a6f34970a [Android] Add IsSmoothScrollEnabled platform specific to control tab change animation (#2965)
* add ability to control smooth scrolling

* added test case

* removed test case

* add test button

* EnableGesture should be controlled by another platform specific
2018-08-02 16:51:36 -07:00
Alan Grgic 97d2f30f6b [Enhancement] Allow underline and strikethrough text decorations on labels and spans (#2221)
* Fixes #1632

* Allow underline and strikethrought text decorations on labels and spans

* revert some files

* pr feedback adjustments

* remove docs

* rename interface

* reorder enum

* clean up whitespace

* adjust tizen renderer

* add gallery demo for setting both underline and strike

* allow multiple values of enum to be set in xaml/css

* use normal null check

* use nameof

* include paragraph style

* tab alignment

* rebase from upstream

* pass control to update method on UWP

* correct text decorations type converter

* reset run text instead of label text on UWP when spans are used

* add tests for text decoration converter
2018-07-20 17:57:11 -06:00
Gerald Versluis 271cb309a6 [Enhancement][iOS] Support UIModalPresentationStyle.FormSheet (#3119)
* First attempt at #1726

Implemented enum and hooked into modal presentation to set the right flag whenever a screen is presented modally on the iPad

* Added back to gallery button on sample app

* Moved setting UIModalPresentationStyle to ModalWrapper ctor

* Removed unused usings
2018-07-10 16:43:41 -06:00
Rui Marinho ffa53d3113 Merge branch '3.2.0' 2018-06-29 02:56:02 +01:00
Rui Marinho 57994e7d8d Merge branch '3.1.0' 2018-06-28 17:07:59 +01:00
Samantha Houts a3fce93a0a [Android] NavigationPage should not push a page that has already been pushed (#3129) fixes #2393
* Add repro for #2393

* [Android] Don't push a page that has already been pushed

fixes #2393

* [Android] Consolidate redundant check

combine my check with the one added in #3021 for great success
2018-06-28 12:34:55 +01:00
Rui Marinho 9073cf788d
[iOS] Try another fix for toolbar items layout (#3123) fixes #2798
* [Controls] Push new page on repo

* [iOS] Do not set the same frame on toolbaritem
2018-06-26 16:36:00 +01:00
Samantha Houts 4d5a1f5482 TitleView (#2586)
* Stop crashing when I accidentally click on the Perf gallery

* [Core] Add TitleView to NavigationPage

- also add unit tests
- fixes #1716

* [Android] Add ClearRenderer static method to Platform

* [Android] Use Platform.ClearRenderer

it's a straight extract from this class

* [Android] Implement TitleView and TitleIcon on AppCompat backend

using lessons (and some duplicated code) from ListView header/footer views.

* [iOS] Implement TitleView

* [UWP] Implement TitleIcon and TitleView

* [Core] Add NavigationPage.BarHeight

* [Android] Use BarHeight

* NavigationBarGallery updates

* [Core] Add iOS HideNavigationBarSeparator Platform Specific

* [iOS] Implement HideNavigationBarSeparator Platform Specific

* sample search page

* Convert BarHeight to Android platform specific

* Reset BarHeight when leaving the gallery

* Add a sample TitleView xaml page

* VisualElement >> View

* Fix comment

* Improved SearchTitle sample page

* [Core] Set TitleView Parent on Changing instead of Changed

Changing is too late for the iOS layout

* [iOS] Fix layouts in iOS10

* [iOS] Stop content clipping

* Expanded test page

* [iOS] Fix HideNavigationBarSeparator for iOS<11

* [iOS] Layout TitleView with margins

* More tweaks to test page

* [UWP] Fix OnDetailPropertyChanged if/else

* [UWP] Comment empty setters

* Convert commented code to more useful comment.

* Adjust performance test async call
2018-06-25 13:00:03 +01:00
Kangho d72e8dd43b [Controls] Support NativeView to ControlGallery.Tizen (#3079) 2018-06-21 11:54:00 +01:00
Rui Marinho 1a29b0142a Merge branch '3.1.0' 2018-06-04 16:16:30 -07:00
Rui Marinho a31c51ca01 Merge branch '3.0.0' into 3.1.0 2018-06-04 16:14:31 -07:00
Rui Marinho a2c6cfa91c
[iOS] Fix secondary toolbaritems (#2870) fixes #2798
* [Controls] Add more secondary toolbar items

* [iOS] Don't try redraw toolbaritems if available size doesn't change
2018-06-04 10:46:02 -07:00
Samantha Houts 1a70c1325b [UWP,iOS] Enable screen readers to read non-interactive elements (#2876) fixes #1946
* [iOS] Default IsAccessibilityElement to true

* Update a11y gallery for new expectations

* [UWP] Don't override OnCreateAutomationPeer on LabelRenderer

This was added in #1067 to enable automated UI tests, but it has drastic effects on the Narrator and will need to be revisited.

fixes #1946
2018-06-03 19:19:46 -07:00
Sean Davies 67f87df3d4 SwipeGestureRecognizer (#2727)
* SwipeGesture

* Fix Build Error

* Remove unused var

* Update Xamarin.Forms.Controls.csproj

* Update Xamarin.Forms.ControlGallery.Android.csproj

* Update Xamarin.Forms.Maps.Android.csproj

* Update Xamarin.Forms.Core.UnitTests.csproj

* Update Xamarin.Forms.Platform.Android.AppLinks.csproj

* Update Xamarin.Forms.ControlGallery.Android.csproj

* Update Xamarin.Forms.Controls.csproj

* Update Xamarin.Forms.ControlGallery.Android.csproj

* Update GestureManager.cs
2018-05-28 11:49:05 +01:00
Samantha Houts 14af670f5a Merge branch '3.1.0' 2018-05-23 11:27:58 -07:00
Samantha Houts a6a3b25ade Merge branch '3.0.0' into 3.1.0 2018-05-23 11:26:13 -07:00
Seungkeun Lee 4dcfa9e1ca Fix ControlsGallery SearchBar HeightRequest issue (#2785) 2018-05-23 08:57:35 +02:00
Samantha Houts 348b443861 [iOS] Restore NativeViewWrapper registration (#2772)
* Add RegistrarValidationService to test presence of renderers

* [iOS] Restore NativeViewWrapper registration

fixes #2757

* [Android] Prevent NRE in ListViewAdapter
2018-05-22 11:24:47 -07:00
Rui Marinho c22b8b9e0f
Merge branch '3.1.0' 2018-05-15 16:16:52 +01:00
jcmanke b5f5d9f086 Fix pins not being removed from Map on Android (#2682) fixes #2411 2018-05-15 12:28:20 +01:00
jcmanke 9791291284 Map renderers listen for Pin property changes and update native pin controls. (#2685) fixes #2121 2018-05-15 12:27:29 +01:00
Pavel Yakovlev 53a0551c0c [iOS, Android, UWP] Added padding to Button control (#2426) Fixes #1702 2018-05-14 16:19:43 +01:00
Stephane Delcroix 67d2be4cd2 Merge branch '3.1.0' 2018-05-14 10:20:35 +02:00
ShaneN 3cc423242e fixes #1675 2018-05-09 09:32:29 -06:00
Michele 8a6a52b6d3 Changing the bindable property to TabsPlacement 2018-05-09 09:32:29 -06:00
mikescandy 9aac845640 Bottom navigation page (#3)
* Adding bottom navigation support to tabbed page

* Adding a bottom navigation page to the gallery

* Set the default behavior to false to avoid introducing a breaking change

* Fixing onlayout, handling collection change and improving color management
2018-05-09 09:32:29 -06:00
Javier Suárez Ruiz 088c2f5b3b [Enhancement] Rounded corners on BoxView (#1998)
* Added CornerRadius property to BoxView

* Added CornerRadius definition

* Removed unnecessary code

* Updated macOS BoxViewRenderer

* Changed BoxView CornerRadius Property definition

* Updated CornerRadius class (added Equals, operator ==, operator !=, GetHashCode and Deconstruct)
Added CornerRadiusTypeConverter

* Fixed namespaces (removed .Core)

* Changes from PR feedback

* Changes from PR feedback

* Fixed build error
Change FormsBoxView to internal

* Fixed build error

* Fixed build errors

* Changes in MacOS BoxViewRenderer
2018-05-08 11:34:13 +02:00
Ravinder Jangra 7fb100048d [Core,iOS,Android] Placeholder and PlaceholderColor on Editor (#2012) fixes #1907
* Revert "Merge branch 'Slider' into master"

This reverts commit 0aa3d01b68, reversing
changes made to 8961c28315.

* editor placeholder

* Updated Editor + docs

* UWP Added

* iOS Editor Placeholder

iOS Editor Placeholder text handling while setting text to null or ""

* remoed comment

* New EditorRenderer for iOS

Got some help from forum

* Delete Editor.xml

* Added placeholder to EditorGallery
2018-05-08 10:11:25 +01:00
Adam 500a8cda76 [All] Span GestureRecognizers (#2173)
* Bindable Text Property on Span

* Minor fix and cleanup

* Cleanup of code after review

* Android TapGestureRecognizer for Span

* iOS Span TapGestureRecognizer enabled

* Corrected Android issue with LineHeights

* UWP code cleanup for new Span properties

* WPF Span GestureRecognizers added

* Set Parent and reduce calls to Text property

* Add gesture recognizer to label if not present.

* Label Changed to handle Span and GestureRecognizer changes.
iOS updated to accomodate new CompositeGestureRecognizer

* Move Android to new Label structure

* Overridden Collection Clear events

* Refactoring code

* Refactor to extensions for span position calculations

* Further refactor and cleanup after rebase

* Fixed rebase issues

* Bug fixes, refactoring and performance improvements

* Moved to region and supported triggering overlapping regions, including inflation

* Inflation added

* Region inflate, and GestureElement

* Refactoring

* Refactoring of naming and loops

* Cleanup

* Removed command

* UWP tap span fix

* Detect child gesture recognizers in Android

* BackgroundColor support on span for WPF

* Remove trailing tabs

* Region UnitTests

* Refactor based on review

* Further code cleanup
2018-05-07 19:02:28 +01:00
Stephane Delcroix b79462c9e8
[All] ScaleX and ScaleY (#1280)
* [*] ScaleX and ScaleY

* Use scaleX and scaleY in sendViewBatchUpdate

* use scaleX and scaleY parameters in SendViewBatchUpdate
2018-05-07 14:22:56 +02:00
Stephane Delcroix 66175c1b1f Merge branch '3.0.0' 2018-04-26 11:03:15 +02:00
Samantha Houts c4d16c0d42 [Core] Improve Renderer registration order (#2519)
* Add repro for 2489

- Repo steps are to swap to the TabbedPage root; if the tabs are still visbile, test has passed.
- Also add Preserve attribute to the core test pages so we can test with the Android linker on.

* [Android] Add note to remind us where the renderers are registered

* [iOS] Switch to loading renderers via RenderWithAttribute

* [Core] Ensure that the most specific renderer is returned by Registrar.GetHandlerType

fixes #2489

* [Core] Prevent insane loop

* implement review feedback
2018-04-25 14:05:59 -07:00
E.Z. Hart e30cc43424 Force iOS to end editing when pushing a navigation page; fixes #2247 (#2497) 2018-04-24 13:02:28 +01:00
Rui Marinho 9a62f8babf Merge branch '3.0.0' 2018-04-19 17:57:28 +01:00
Rui Marinho b236a4a6f2
[UITests] Fix failing tests (#2500) 2018-04-19 17:31:58 +01:00
Shane Neuville 069f458f7d add <DebugType>full</DebugType> property to debug build for uwp debugging (#2419) 2018-04-11 09:11:57 +02:00
Alan Grgic 578c0eb23a [Enhancement] Add EvaluateJavaScript method to WebView (#2140)
* Add EvaluateJavaScript method to return string result of js calls

* add docs

* account for some quirks between platforms

* cleanup

* edge cases, standardization, and error handling

* early escape

* add null check

* fix code styles

* clarify sort

* code styles adjustment and null check
2018-03-22 10:20:47 -07:00
Paul DiPietro ca0123c0d2 [iOS] Allow user interaction with blurred elements 2018-03-19 11:53:18 -04:00
Rui Marinho 4d9a5bf370
Merge branch '3.0.0' 2018-03-15 17:07:49 +00:00
Rui Marinho 2f1f3e92e3
[Enhancement] Entry ReturnType (#2029)
* [Core] Add ReturnType to Entry

* [Controls] Add Entry ReturnType gallery

* [Android] Entry ReturnType implementation

* [iOS] Entry ReturnType implementation

* [Docs] Docs for ReturnType

* [UWP] Entry ReturnType implementation

* [Core] Make sure we respect command CanExecute fixes #1697

* [Docs] Fix docs

* [Tizen] Entry ReturnType implementation

* [Core] Add missing defaults to BP on entry

* [Tests]Add unit test to entry Returntype command

* [iOS,Android,Tizen,UWP] Better Exception for ReturnType

* [Android] Handle completed event with new return type

* [ControlGallery]Fix ReturnType example

* [UnitTests] Remove extra Test attribute
2018-03-15 10:29:08 +00:00
E.Z. Hart 599541e3de [UWP] Thumb color and image for Slider (#2065) fixes #1684
* Add demo/test pages for new properties

* Test attributes for new Slider properties

* Implement slider thumb color and thumb image on UWP

* Use nameof for ThumbImage property
2018-03-14 11:02:26 +00:00
E.Z. Hart 789ca0c142 Fix VS errors when loading clean solution; prevent VS rewriting Android project files (#2083)
* Disable AndroidUseLatestPlatformSdk in VS so VS stops auto-updating Android projects;
Remove XF.targets imports from projects which don't need it;
Make XF.targets imports conditional on existence of XFBT DLL in VS to avoid errors

* More consistent check for VS

* Apply nicer VS check logic to Xamarin.Forms.Xaml.UnitTests.csproj

* Fix missing "'"

* Re-add XF.targets imports to PagesGallery native projects
2018-03-14 11:01:44 +00:00