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

252 Коммитов

Автор SHA1 Сообщение Дата
E.Z. Hart fed91773fd
Remove docs which survived the merge from the 3.0.0 branch 2018-04-02 16:30:19 -06:00
Rui Marinho 6d090d100f Merge branch '3.0.0' 2018-03-24 14:13:28 +00:00
E.Z. Hart ce924e76c1
Removing docs 2018-03-23 10:39:43 -06:00
Shane Neuville a1315cf72a [Core] Create Sync version of SendSleep so lifecycle methods don't have to be async void (#2122)
* 2104 remove async calls that swallow exceptions for life cycle events

* fixed UI test for ios
2018-03-22 10:49:01 -07: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
Stephane Delcroix 2c76d1ad0e
[C] convenience extension method (#2153) 2018-03-21 15:47:15 +01:00
Ravinder Jangra 356dad001b
Merge pull request #8 from xamarin/master
rebase
2018-03-19 10:52:29 +05:30
Niklas Therning 99f6d30be7 Added the Entry.IsTextPredictionEnabled property (#2038) fixes #1677
Makes it easier for users to disable text prediction/autocomplete/autosuggest.
Fixes #1677.
2018-03-15 17:18:07 +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
Shane Neuville dfeb9f7f91 Editor Auto Resize with Text Changes (#2091)
* Editor Auto Resize with Text Changes 1733

* comment changes
2018-03-14 12:25:33 -07:00
Ravinder Jangra 2b4a589eed Docs uploaded 2018-03-13 12:20:17 +05:30
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
Rui Marinho 7bab9f46d9
Merge branch '3.0.0' 2018-03-08 11:19:32 +00:00
Jason Smith c17838a599 Reinstate StyleClass but keep @class as requested (#2044) 2018-03-08 10:11:45 +01:00
Johan Lorensson 0209ce77cd [UWP] Icon on TabbedPage (#1952)
* [Enhancement] Icon on TabbedPage UWP.

Fixes issue #1705.

* Update documentation for issue 1705.

* Smaller adjustments to make sure we still have same fixed header size
when icons are collapsed as before.

* Updated with review feedback.

TabbedPageRenderer.cs has also been updated to use tabs instead of spaces.

* Fix problem to restore back previous alignments on tabbed paged header text block.

When showing images in tabbed paged headers we store old alignment of text block
to be able to restore when hiding images (getting back original alignment of text block).
If sizes where changed for images while showed, the old values where lost.

Fix makes sure only the old values are stored, if current alignment is not the
default (center) when displaying images in tabbed paged header.
2018-03-07 10:37:27 -08:00
Ravinder Jangra 65f4e078ce [Core,iOS,Android] Color on Slider (Implementation) (#1781) fixes #1684
* Implementation for #1690

* Updated  default(Color) -> Color.Default

* Added UWP + default

* Revert "Merge branch 'Slider' into master"

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

* Update SliderRenderer.cs

* Updated Doc

* Updated Slider

Removed Comment.
Formated Code
now building fine for android.

* Slider Renderer for iOS

Reuploding

* Reuploading SliderRenderer for UWP

* Checking and enabling  For API >19
2018-03-07 10:57:59 +00:00
Jason Smith 4a8f78db4c
Merge remote-tracking branch 'origin/3.0.0' 2018-03-06 13:17:23 -08:00
Jason Smith 27fff867f3
Add IVT for kzu's needs with comments for future automation (#2030) 2018-03-06 13:16:16 -08:00
Jason Smith 90ca928180
Merge branch '3.0.0' 2018-03-06 11:54:19 -08:00
Jason Smith e53e384543
Add missing docs file after merge 2018-03-06 11:31:47 -08:00
Stephane Delcroix e1170a9e8d [CSS] use `class` instead of `StyleClass` (#2023)
- fixes #2022
2018-03-06 09:45:11 -08:00
Stephane Delcroix 3db717e863 [C] make Application ctor public (#2020)
- fixes #2018
2018-03-06 12:02:19 +00:00
Daniel Cazzulino c3eec10c86 Add Application.PageAppearing/Dissapearing events (#1970)
In scenarios where you want to keep track of pages as they are
appearing on screen, it's useful to be able to subscribe to a
global event from the `Application` to track those pages for
later processing (i.e. showing a timeline for the app, reloading
XAML for some of those pages, maybe replaying the timeline, etc.)

The new events are automatically raised from the Page base class
right after sending the page-level Appearing/Disappearing events.
2018-03-05 14:06:41 -08:00
Jason Smith 19e19e24d9
Merge branch '3.0.0' 2018-03-05 13:47:35 -08:00
Jason Smith 247a475498
Merge branch '15-5' into 3.0.0 2018-03-05 13:41:43 -08:00
Samantha Houts 1ce84e00db [Android] Buttons can be round; remove Padding & Shadow by default (#1935)
* Add repro for 1909

* [Android] Get PaddingLeft from native button

* [Core] Add PS for removing the native padding from Android buttons

* [Android] Implement UseNativePadding

* Adjust test to show the new UseNativePadding results

* Update docs

fixes #1909

* Update docs again

* Add button styles for testing

* [Core] Add UseDefaultShadow and UseDefaultPadding platform specifics

* Use new PS in tests

* [Android] Button uses new Platform Specifics

* Update docs

* Fix test case
2018-03-05 12:50:16 -08:00
Stephane Delcroix afb387b22f
[Xaml] add DesignMode flag (#1976)
- fixes #1731
2018-03-05 12:44:37 +01:00
Kangho 32c929cb0d Add Watch to TargetIdiom (#1990) 2018-03-01 12:13:14 -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
E.Z. Hart 1030013834 Allow users to specify resolution method for handlers, effects, and services (#1870) fixes #1739
* Let user set delegate to resolve handlers, effects, and services; closes #1739

* Remove old comments

* Move dependency-resolution-specific code to a separate class;
Remove Reset method; simplify internal API;

* Update docs to reflect new changes

* Add type checks closer to resolution; rename ForceResolve; remove public delegate type;

* Update docs
2018-02-26 11:48:15 +00:00
Shane Neuville b5fab7192c Capitalization keyboard flag additions for Entry/Editor (#1683) (#1833) 2018-02-26 11:06:24 +00:00
Jason Smith e67e8313e3 [iOS] Add shadow effect (#1896)
* Add shadow effect for iOS

* Fix docs

* Fix formatting issues
2018-02-22 12:24:37 +00:00
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
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
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
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
Francesco Bonacci 58d56d02c8 Add ProgressColor on ProgressBar (#1861) 2018-02-15 12:10:40 +00:00
Stephane Delcroix b96f65bdd9 Merge branch '15-5' 2018-02-12 09:34:33 +01: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
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
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 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
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
Alan Grgic 9beca0d8cb [Enhancement] UWP PlatformSpecific to display JavaScript alerts in WebView (#1785) fixes (#1682)
* add platformSpecific for enabling UWP javascript alerts in webview

* update docs
2018-02-06 10:49:13 +00:00
E.Z. Hart 49a937fc5c Rename InputTransparentInherited to CascadeInputTransparent (#1771)
* Rename InputTransparentInherited to CascadeInputTransparent

* Update docs

* Update property checks
2018-02-02 12:00:00 +00:00
E.Z. Hart 85334fd4a0 Allow Layouts to specify whether child controls inherit InputTransparent (#1621)
* Test created

* Round out test page;
Add InputTransparentInherited to VisualElement;
Handle InputTransparentInherited for Android;

* Handle InputTransparentInherited for iOS

* Move InputTransparentInherited to Layout

* Handle InputTransparentInherited for UWP

* Handle changes to InputTransparentInherited

* Automate tests

* Make property style consistent

* Fix some formatting issues

* Fix build

* Fix automation NRE during hit testing; fix transparency test
2018-02-01 10:47:24 +00:00
Samantha Houts c18e85ee43 [Internal] Basic performance testing and monitoring (#1329)
* [Core] Extract Performance class to Performance Provider

* [iOS] Add instrumentation

* [Android] Update instrumentation

* [Controls] Add perf gallery

* Update docs

* Get build number from txt file

* Remove unnecessary .bat
2018-01-31 18:09:15 +00:00
Stephane Delcroix ae18666599 Merge branch '15-5' 2018-01-31 10:27:51 +01:00