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

243 Коммитов

Автор SHA1 Сообщение Дата
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
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
Samantha Houts bd5db90850 [Core] Add IsSet to BindableObject (#1741)
* [Core] Add IsDefault and IsSet to BindableObject

* Add tests for IsSet and IsDefault

* Update docs

* Remove redundant null arg check

* Remove IsDefault

* [docs] removing `IsDefault` from docs

 - fixes #1652
2018-01-31 10:20:20 +01:00
Frank A. Krueger e07e446a27 Use GetHandlerForObject instead of GetHandler (#1713)
* Use GetHandlerForObject instead of GetHandler

This allows IReflectableTypes to be used.

* Update Registrar docs

- fixes #1712
2018-01-30 09:06:35 +01:00
Samantha Houts 50698fb46d Revert "Update docs"
This reverts commit af7afe6a96.
2018-01-29 19:28:04 -08:00
Samantha Houts af7afe6a96 Update docs 2018-01-29 19:26:27 -08:00
Stephane Delcroix 38f244aa49
[Xaml] let the previewer know the asm (#1594)
* [Xaml] let the previewer know the asm

in addition to the resourcePath, tell the previewer the assembly in
which we're looking for the resource.

* fix docs
2018-01-17 15:19:18 +01:00
E.Z. Hart 28948d7ef7 VisualStateManager phase 1 (#1405)
* Port from old VSM branch

* Add PS and notes

* Checkpoint: entry text UWP mostly working, need to check on background colors

* Remove irrelevant samples from the EntryDisabledStatesGallery
Make Background color work on UWP Entry with VSM

* Add platform specific for disabling legacy colors on Android

* Add OnPlatform example to visual state manager gallery

* Add example OnIdiom in Visual State Manager

* Add platform specific for disabling legacy color mode on iOS Entry

* Add gallery for Button disabled states
Handling legacy colors for Buttons on Android

* Split out disabled states galleries; disabled legacy handling for Picker

* TimePicker disabled states

* DatePicker color management on Android

* Color management for pre-AppCompat button

* Button legacy color handling on iOS

* Consolidate Platform Specifics;
legacy colors working for iOS Picker and DatePicker

* Fix broken search bar color management
SearchBar color management working with VSM
Add test page for SearchBar disabled color management
Consolidate legacy color management check code into extension method on Android

* Legacy color management for Editor on Android

* Fix legacy color stuff for SearchBar Cancel button on iOS

* C# 7 cleanup

* Add colors for Cancel Button

* Make sure VisualStateGroup collections set by styles are distinct objects

* Validation example

* Make common state names consts

* Make the Windows VSM and Forms VSM work together

* Update galleries for Windows

* Make new methods internal

* Split gallery classes and add more explanation to validation example

* Remove debugging statements

* Add a quick code-only example

* Make legacy color management work for fast button renderer

* Remove old TODO

* Update docs

* Move RunTimeNamePropertyAttribute to Xamarin.Forms.Xaml namespace

* Verify XF namespace when looking for VisualState

* Use nameof

* Make common states constants public

* Cast VisualElement directly so it crashes if the property is set on the wrong type

* Collection -> IList for VisualStateManager

* Setting fromStyle to true

* Remove extraneous `private set`

* Seal VSM classes

* Use constraints instead of ==

* Add teardown method; use constraints rather than ==

* Remove null checking with GetVisualStateGroups

* Don't explicitly initialize collections on elements

* Actually, turns out that fromStyle:false *was* correct

* Direct casts

* Use GetIsDefault check in GoToState

* Validate parents in FindTypeForVisualState

* Validate group and state names on Add

* Fixed check for setter collection

* Fix issues with "duplicate" names when VisualStateGroups declared directly on VisualElements

* Add gallery example for VSGs directly on VisualElements

* Update docs

* Fix bug where initial TextColor isn't set for FastRenderer Button

* Move to explicit VisualStateGroupList in Setter

* Fix return types for unit tests

* Using string.CompareOrdinal in GetState

* Update docs

* Add check for null/empty VisualState Name properties
2018-01-05 09:11:51 +00:00
Rui Marinho 6668ff6458
[iOS] Update inner stack correctly when popped fast (#1029)
* [iOS] Update the NavigationPage inner stack when UIViewController is removed

* [iOS] Remove debug info

* Update submodule
2018-01-02 11:37:05 +00:00
Rui Marinho 47da2f8bf5
Bump submodule and update docs (#1452)
* Bump submodule

* Bump

* Fix spelling

* bump

* Fix missing docs

* [Android]Move to v8 tools
2017-12-21 19:10:25 +00:00
Stephane Delcroix 5ea86a266b
Stylesheets (#1207)
* [*] Support for CSS StyleSheets

 Parsing, loading, and applying of StyleSheets

 see https://github.com/xamarin/Xamarin.Forms/pull/1207#issue-266464280
 for complete description.

* use initial, not none

* fix tests
2017-12-20 10:47:50 +01:00