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

1713 Коммитов

Автор SHA1 Сообщение Дата
Henric Müller 2b24c3f6dc Added support for ListView full width separators on iOS (#1854) fixes #1665
* Fixes #1665 by adding `SeparatorStyle` property
to iOS specific ListViews. ListViewRenderer will check
this property when cells are retrieved in the ListViewDataSource
and set SeparatorInset and LayoutMargins to zero.
2018-02-21 19:07:18 +00:00
Kangho efe699907e Support CascadeInputTransparent to Tizen (#1916) 2018-02-21 18:03:45 +00:00
Rui Marinho 5d357c89e6 Merge branch '15-5' 2018-02-20 17:20:16 +00:00
Rui Marinho d2f6ffae5b
[Android]?Remove UserVisibleHint (#1550) fixes #1438 2018-02-20 12:32:20 +00:00
Rui Marinho ccba670b37
[iOS] ViewDidLayoutSubviews after removing page (#1532) fixes #1426
* [Controls] Repo for issue #1426

* [Controls] Simplify reproducion

* [iOS] Make sure to call layout when page is removed from stack and CurrentPage is updated

* [Controls] Fix issue number

* Update test and packages

* [Build] Fix windows cert

* [Build]Fix master and build (#1920)

* [Build]Fix master and build

* [Pages] Fix certs

* Update Xamarin.Forms.ControlGallery.WindowsUniversal.csproj

* Fix test again

* Update Bugzilla37841.cs
2018-02-20 12:30:32 +00:00
Daniel Cazzulino f4c9c32977 Use relative URL to support recursive checkout in VSTS (#1926)
This is the norm in all other repos building in VSTS and
makes upstream build definitions and scripts much simpler.
2018-02-20 12:23:57 +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
Rui Marinho c02086d302
[Build]Fix master and build (#1920)
* [Build]Fix master and build

* [Pages] Fix certs
2018-02-19 17:07:47 +00:00
Rui Marinho f6c5b75e65 [Build] Fix windows cert 2018-02-19 15:14:11 +00:00
Thetyne 0cdf4711de [Android] Allow customizing Android MenuItem (#1873)
* [Android] Allow customizing Android MenuItem with tintcolor and custom drawable.

* [Android] Allow customizing Android MenuItem with tintcolor and custom drawable. Review

* [Android] Allow customizing Android MenuItem with tintcolor and custom drawable. Review dispose drawable.
2018-02-16 12:46:37 -08:00
Johan Lorensson 40e88596c9 [Enhancement]Add SearchBar platform specific for IsSpellCheckEnabled. (#1824)
Issue #1691.
2018-02-16 11:04:40 -08:00
Niklas Therning 0b2bbb03d4 [Enhancement] IsSpellCheckEnabled on Entry/Editor (#1836)
Adds the InputView.IsSpellCheckEnabled property which makes it easier to
disable the native spell checking features. Fixes #1660.
2018-02-16 10:39:19 +00:00
Rui Marinho c4701be513
[Android,Core] Entry platform specific to set ImeOptions and flags (#1829) fixes (#1696)
* [Android,Core] Entry platform specific to set ImeOptions and flags on TextView

* [Docs] Add docs fixes #1696
2018-02-16 10:37:53 +00:00
Stephane Delcroix bfd3ad6491 [C] BO.IsSet() returns false after ClearValue() (#1828)
- fixes #1813
2018-02-16 10:22:10 +00:00
Alan Grgic 8821301e7e [Android] PlatformSpecific for WebView mixed content (#1784)
* add android platform specific for webview mixed content flags

add unit tests and gallery pages

* code style adjustment

* retry update docs

* retry update docs

* Fix bad merge on TestAttributes enum
2018-02-15 15:49:22 -08:00
BradChase2011 8df4bf807c [macOS] ScrollView doesnt support Horizontal Orientation and doesnt d… (#1817)
* [macOS] ScrollView doesnt support Horizontal Orientation and doesnt default to Start.

* Null ref when a ScrollView is added with no content.
2018-02-15 22:49:54 +00:00
Rui Marinho 05b69eba69
[UITest] Update packages (#1892) 2018-02-15 22:23:50 +00:00
adrianknight89 d22785ce56 [Android] TimePicker Format should work (#1780) fixes #1461
* timepicker fix

* fix logic error

* Update Xamarin.Forms.Controls.Issues.Shared.projitems
2018-02-15 17:29:54 +00:00
BradChase2011 d10c2cdbe2 [macOS] DatePicker & TimePicker dont report IsFocused and use old Dat… (#1820)
* [macOS] DatePicker & TimePicker dont report IsFocused and use old DateTime.

* [macOS] DatePicker & TimePicker dont report IsFocused and use old DateTime. (Missing File)
2018-02-15 17:28:25 +00:00
BradChase2011 ea26f459aa [macOS] TapGesture assigned on a parent blocks children input (Picker) from receiving input. (#1822) 2018-02-15 15:50:13 +00:00
E.Z. Hart 3b0a6d2432 Allow SearchBar cancel button colors to be set individually (fixes #1878) (#1885) 2018-02-15 15:48:53 +00:00
Francesco Bonacci 58d56d02c8 Add ProgressColor on ProgressBar (#1861) 2018-02-15 12:10:40 +00:00
Rui Marinho 1233e055d7
[Nuspec] Add .Design dll.s back (#1884) 2018-02-15 11:08:16 +00:00
E.Z. Hart a248ee5fb3 Check IsEnabled on TextCell before executing command (#1889) 2018-02-15 11:05:06 +00:00
Jason Smith 15ec58a876 Revert "Add toolbox support to nuget package (#1871)"
This reverts commit 0a2e52eb27.
2018-02-14 14:02:57 -08:00
Stephane Delcroix cf5e8482ed remove $ from our .nuspec (#1881) 2018-02-14 11:42:31 -07:00
kingces95 c9dd450406 Retain row-as-header behavior when recycling (#1832) fixes #1598 2018-02-14 12:22:05 +00:00
Stephane Delcroix 8e5a3baac3 [XamlC] do not log task input parameters 2018-02-14 10:19:27 +01:00
Stephane Delcroix af6f333790
[XamlC] Cache Resolve and ImportReference (#1875)
ImportReference with System.Reflection based argument is notoriously
slow on .NET. So we cache the results for those.

We do not cache the results for TypeReference, MethodReference or
FieldReference calls, as those are already fast (passthrough if the
reference was already imported), and they aren't valid as dictionary
keys (no concept of equatability).

While we're at it, we shave another few ms from Resolve(TypeReference)
calls as well.

As, on good days, it shaves up to 40% of XamlC time, we can say that it

 - fixes #1848
2018-02-13 22:27:02 +01:00
E.Z. Hart dcb5d10c09 Don't assume casts to Activity from Context will be successful (#1867) 2018-02-13 10:53:54 -08:00
Jason Smith 0a2e52eb27
Add toolbox support to nuget package (#1871)
* Add toolbox support to nuget package

* Add picker/label to toolbox
2018-02-13 10:33:10 -08:00
Stephane Delcroix b96f65bdd9 Merge branch '15-5' 2018-02-12 09:34:33 +01:00
Stephane Delcroix 3a5eb2e0ce [internal] disposable performance helpers 2018-02-10 12:59:16 +01:00
matt4pi 3bcb9c614e Ensure Android PanGestureRecognizer sends the Completed status (#1495) (#1753) 2018-02-09 10:47:25 +00:00
kingces95 54aa51c653 Remove dead code (#1849) 2018-02-09 10:35:18 +00:00
Henric Müller 96e01cc3fb Allow DetectReadingOrderFromContent on UWP (#1717) (#1826)
* Fixes #1717 by adding property DetectReadingOrderFromContentProperty
to InputView and Label and updating EntryRenderer, EditorRenderer and LabelRenderer
for Windows.
2018-02-09 10:33:44 +00:00
adrianknight89 896508d36f slider fix (#1756) 2018-02-08 16:39:48 -08:00
Chris King d68db632f2 Allow arbitrary nuget version 2018-02-08 13:36:10 -10:00
Rui Marinho ff40c5b4e1
Add netstandard1.0 support (#1649)
* [Core] Add pcl Xamarin.Forms.Core

* [Core] Add Platform PCL

* [Core] Add Xamarin.Forms.Core PCL

* [Core] Use multi target

*  [Nuget,Core] Add pcl back, multi target netstandard1.0 and netstandard2.0

* [Core] Fix ImageSource for non PCL

* Fix uap

* [UWP] Fix references

* Cleaned up the solution file to remove unused platforms (#1770)

* Try don't build Appx

* [Core]Use netstandard1_0 compile directive

* Don't build UWP and WPF on macOS (#1774)

* [Xaml] Fix compile constant

* [Core] Fix Tuple usage

* [Build] Update provisioning 15.5 sr5

* [Core] Use default compile directive for netstandard1.0

* [Nuget] Add uwp dependency to nuspec

* [Nuspec] Fix speling

* [Core] Add support to FlexLayout on netstandard 1.0

* Try fix test

* cleanup

* [Core] Fix netstandard1.0 usage

* [Core] Remove tuple usage FlexLayout, cleanup
2018-02-08 18:18:56 +00:00
Samantha Houts 2fba186574 [Android] Button Border can be set independent of other properties and will not change the size of the Button. fixes #1436 **behavior change** (#1570)
* Revert "Revert "Fix border on android buttons  (#941)""

This reverts commit a4c7f31d1215174aa86d7647bcbce0dd5e719a9a.

* Add repro for 1436

Fix typo

* [Core] Use 2dp for Android default Button BorderRadius

* [Android] Add shadow & padding to ButtonDrawable

* [Android] Set BackgroundDrawable on Button when BorderWidth, BorderRadius, and BorderColor are changed

Also add RippleDrawable when supported for the nice ripple effect on press, and set the PaddingTop for the ButtonDrawable. fixes #1436

* [Android] Default Color for Button is specified for AppCompat and AppAct

* [Android] Check BorderRadius value against proper default

* Fix test case number

* grumble grumble this branch is still vs2015 grumble

* [Android] Get button color from resources

* [Core] Obsolete Button.BorderRadius in favor of CornerRadius

* [Core] Added VisualElement.DefaultBackgroundColor

* Update tests to ignore obsolete prop warning

* [Android] Use Button.CornerRadius instead of BorderRadius

* [iOS] Use Button.CornerRadius instead of BorderRadius

* [macOS] Use Button.CornerRadius instead of BorderRadius

* [UWP] Use Button.CornerRadius instead of BorderRadius

* Update docs

* Fix more cases of BorderRadius obsolete warnings

* [UWP] Use BP.DefaultValue instead of abstracted const

* [Android] Use BP.DefaultValue instead of abstracted const

* [Core] Remove unnecessary abstracted consts from Button

* [Android] Fix default corner radius on ButtonDrawable

* Unit tests for Button.CornerRadius/BorderRadius

* [iOS] Restore default Button.CornerRadius

* [UWP] Add todo
2018-02-08 17:55:08 +00:00
Stephane Delcroix 6cbb51341a
[xamlg] version the CodeGeneratedAttribute (#1838)
- fixes #1810
2018-02-08 14:32:02 +01:00
Stephane Delcroix c44728e242
[build] reduce verbosity of build (#1837)
- fixes #1798
2018-02-08 14:31:35 +01:00
Shane Neuville 7e387eb778 [Core] AbsoluteLayout content now fills all available space on Android devices (#1761)
* Removed rounding in AbsoluteLayout to ensure Android devices with certain sizes can still use proportional sizes to fill the device screen.

* doc updates
2018-02-07 14:24:47 -05:00
Stephane Delcroix 6d5d4a33e1 [Flex] add inline docs for flex
- fixes #1815
2018-02-07 14:58:03 +01:00
Kangho 252adc3667 [Tizen] Slightly enhance tizen backend (#1800)
* Add IVisualElementRenderer.GetNativeContentGeometry

- GetNativeContentGeometry can be used to compute position of content.
- It can fix invalid layout by root content that is not placed in (0,0)

* Update focus policy explitly on MasterDetailPage

- IsPresentedChangedEventArgs has been added.

* Fixed renderer creation order

- Fixed an issue where the current page location of CarouselPage changes when changing device orientation

* Add static Forms.MainWindow Property

* Fix ScrollView.ScrollToAsync doens't work

* Fix MasterDetail crash issue

- When MasterBehaivor was changed, does not working anymore Because wrong property update
- Fix Layout issue when MasterBehavior was changed LayoutCallback was not called because geometry was not changed

* Allow to user can change MasterPage ratio

- To change the ration of MasterPage, use UpdateMasterPageRatio() in derrived renderer of MasterDetailPageRenderer.

* Fix ViewInitialized event processing

* Dispose modal renderer correctly

* Fixed issue the button's of Date/TimePicker can not be selected.

* Fix black scrren issue when application initialize

* Refactoring DeviceOrientation for tizen backend

- Use Device.Info.CurrentOrientation in MasterDetailPage
- Orientation was decided by device screen ratio
- PortraitXXX/LandscapeXXX was not used because it only defeind in iOS devices

* Fix Date&TimePicker to get focused on TV

- This commit includes the behavior change of Native.Editfield.
- Text Input is activated when user select the field when it has focus on.

* Fixed the Appearing / Disappearing Event Handling of Pages

- Fixed a problem where Focus is moved to a page other than the current Page of TabbedPage & CarouselPage
- Fixed an issue where Appearing & Disappearing Event of Master / Detail of MasterDetailPage was not called

* Fix MasterDetailPage crash issue

* Change API visibility of Forms's utility methods into public

* Remove VisualElementRenderer.DoLayout to avoid any confusion

* Refactor CellRenderer's implementation

* Fix Completed event routine for Entry & Editor

* Implement TizenPlatformServices.OpenUriAction

* Refactor Platform, Forms and FormsApplication in Tizen backend

* Refactor platform more flexible

* Add LightweightPlatform
2018-02-07 10:33:14 +00:00
Stephane Delcroix f9b0b4ee29
[C/XamlC] BindingMode.OneTime (#1805)
* [C/XamlC] BindingMode.OneTime

Bindings with mode == OneTime:
 - are only applied when the BindingContext changes
 - do not subscribe to INPC

if the Binding is compiled and the mode explicitely set in the
`{Binding}` Markup extension, the setters and handlers aren't even
created.

 - fixes #1686

* update docs
2018-02-07 09:43:15 +01:00
kicsiede 59befd5d0c [iOS] Fix object disposed exception in ImageCell (#1808)
* BUGFIX: object disposed exception

by the time the async image load completes the imagecell could be disposed resulting in an unhandled exception

* FIX uiimage == null case
2018-02-07 09:39:45 +01:00
Stephane Delcroix fca51cfa32 add authors to flex.cs header 2018-02-06 14:45:58 +01:00
Stephane Delcroix 825886eef4 [C] FlexLayout, with managed engine (#1759)
* [C] FlexLayout, with managed engine

* [C] add type converter and attributes for CSS

* [C] fix flex-order

* [C] fix typo and margin in Flex

* [Flex] relative value for Basis, padding on the layout

* fix docs

* [Flex] fix NRE on empty layout

* [flex] fix layout measuring
2018-02-06 10:54:33 +00:00