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

158 Коммитов

Автор SHA1 Сообщение Дата
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
Jason Smith 28a31aa7f2
Merge branch '3.0.0' 2018-03-12 10:47:58 -07:00
E.Z. Hart 6a2499fe13
Revert "Disable AndroidUseLatestPlatformSdk so VS stops auto-updating Android projects;"
This reverts commit 3279709d95.
2018-03-12 09:56:53 -06:00
Stephane Delcroix 1df63c27b9 Merge branch '3.0.0' 2018-03-12 09:14:30 +01:00
E.Z. Hart 3279709d95
Disable AndroidUseLatestPlatformSdk 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 to avoid errors
2018-03-11 18:49:34 -06:00
Adam e42bd62fb5 [All] Bindable span (#1850)
* Bindable Text Property on Span

* Style applied to Span

* Added style property

* Unit tests added

* Minor fix and cleanup

* Cleanup of code after review

* Updated docs

* Set Parent and reduce calls to Text property

* OneTime Binding

* Allow OneTime Binding as a default

* Updated docs
2018-03-08 15:50:28 -08:00
Brian Macomber c96640d00c [Core, iOS, Android, UWP, WPF] Hide scroll view scroll bars (#1910)
* Initial Commit

* Initial Commit

Added setting the initial state of H and V Scroll bar visibility on Android

Added WPF support

Fixed a copy/paste of Upw that should be Wpf

Added GTK and MacOS.

Plus a minor addition to iOS

Added Tizen support

I am unable to test as I can not get Tizen working in my envrionment at the moment

* Added setting the initial state of H and V Scroll bar visibility on Android

* Added WPF support

* Fixed a copy/paste of Upw that should be Wpf

* Added GTK and MacOS.

Plus a minor addition to iOS

* Added Tizen support

I am unable to test as I can not get Tizen working in my envrionment at the moment

* Changes from review

* Update ScrollViewRenderer.cs

* add small WPF performance improvement

* add docs

* fix bad merge

* light refactor (macOS)

* spaces -> tabs

* more spaces -> tabs

* account for Android styles when setting default behavior
2018-02-26 13:20:39 -08:00
jcmanke 73fef4c129 [iOS Maps] Pin rendering customization (#1065)
* Changed MapRenderer to pure weak delegate pattern. GetViewForAnnotation
is virtual for pin rendering customization by subclasses.

* Added UI test for pin tap gesture

* Wait for callout before tapping it in UI test
2018-02-23 12:19:12 +00:00
Rui Marinho 4d43bd143d
[UITest] Fix test for UITest package update (#1923) 2018-02-20 00:00:53 +00:00
Gerald Versluis 1f770f6588 Implemented MaxLength property on Entry and Editor (#1880)
* Implemented UAP and WPF

* Revert "Implemented UAP and WPF"

This reverts commit e17a66236756021e2b66503281ee3c1cf463e5da.

* Started implementation of #1663

Added MaxLength property on InputView and implemented iOS and Android
Entry and Android Editor

* Implemented iOS Editor

* Improved Android MaxLength

First check to see if there is a LengthFilter in there already and
remove that first

* Implemented GTK naming enhancement for iOS

* Implemented UAP and WPF

* Implemented Tizen

* Removed Linq and implemented forgotten method 😅

* Fixed whitespaces -> tabs

Except GTK, seems everything is spaces there, so kept it for consistency

* Added null guard for iOS

* Implemented Mac OS

* Added samples to gallery

* Polished Tizen implementation

* Tizen EditorRenderer updated and converted more whitespaces to tabs

* Fixed spaces to tabs and usage of nameof

* Added trimming of current text when MaxLength is less than current value length

* Reference right Entry for Tizen

* Trimming on MaxLength change for Tizen

* Trimming on MaxLength change for GTK

* Removed redundant GetValue calls and whitespace fiesta

* And the ones I missed

* Updated the docs

* Revert "Updated the docs"

This reverts commit 416e28706ab921d72e72ebc6488d4b3c4651a384.

* Updated docs just for InputView
2018-02-19 14:27:27 -08:00