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

105 Коммитов

Автор SHA1 Сообщение Дата
Stephane Delcroix b96f65bdd9 Merge branch '15-5' 2018-02-12 09:34:33 +01: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
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
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
E.Z. Hart d46d6fb403 Remove key info for WP8, WinRT from blank.config and readme 2018-01-16 12:15:23 -07:00
E.Z. Hart 721104751c Make pre-build target work in .NET Standard 2018-01-16 11:21:07 -07:00
E.Z. Hart eb5839341e
Merge branch 'issue-filters' 2018-01-10 16:59:00 -07: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
E.Z. Hart 9a8c3e7825
Add filter toggles for the various issue trackers 2018-01-03 09:58:04 -07:00
E.Z. Hart 0d199d1515
Filter issues screen as user types 2018-01-03 09:58:04 -07:00
E.Z. Hart 245389cbbd
Remove unused URLs for invalid images 2017-12-28 16:57:45 -07:00
E.Z. Hart a65dfad6a4
Change image source to one we control 2017-12-28 16:55:19 -07:00
E.Z. Hart dfa3172bb5
Update source image to valid image we control 2017-12-28 16:46:59 -07:00
E.Z. Hart 8dc66ecd3a
Replace invalid image URLs with images we control;
Make test work on Android even if the Linker is on;
2017-12-28 16:23:23 -07: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
Stephane Delcroix b083cf9c83 fix typo in csproj 2017-12-14 10:54:00 +01:00
WonYoung Choi 27ea629c41 Move XF.Build.Tasks to nestandard2.0 (#1370)
Remove net47 project of XF.Build.Tasks. Xamarin.Forms.nupkg provides
Xamarin.Forms.Build.Tasks.dll and dependencies built with netstandard2.0 only.
2017-12-13 14:29:57 +00:00
Paul DiPietro abe2f3d1f5 [All] Implement IFontElement on Picker, DatePicker, and TimePicker (#662)
* [C] Implement IFontElement on Picker/TimePicker/DatePicker

* Add InvalidateMeasure calls

* Add behavior to macOS renderers
2017-12-12 14:02:21 +00:00
Rui Marinho b74d545fc1
[All] Move to netstandard2.0 **Breaking change** (#1306)
* Move to netstandard 2.0

* Fix docs

* Small fixes
2017-11-29 17:37:06 +00:00
Rui Marinho 5a60f17e47
[Win] Remove Windows 8.1 platforms **Breaking change** (#1267)
* [Platforms]Remove WP8.0 and WinRT

* Update submodule

* [UWP] Fix maps UWP

* [UWP] Remove more stuff from old windows platforms

* [Docs] Update docs
2017-11-27 15:14:01 +00:00
Rui Marinho c35af7fe1b Merge branch '2.4.0' into 15-5 2017-11-15 19:24:19 +00:00
Rui Marinho 92552a7080 [iOS] Fix issue when enabling SafeArea and scrolling (#1274)
* [Controls] Add example for bugzilla 60659

* [iOS] Adjust size of the PageContainer related with the UINavigationBar height

* [iOS] Fix typo

* [iOS] Make sure we don't crash when disposed and LayoutSubviews is called
2017-11-15 19:22:19 +00:00
Rui Marinho 74266a19ab
[iOS] Fix issue when enabling SafeArea and scrolling (#1274)
* [Controls] Add example for bugzilla 60659

* [iOS] Adjust size of the PageContainer related with the UINavigationBar height

* [iOS] Fix typo

* [iOS] Make sure we don't crash when disposed and LayoutSubviews is called
2017-11-15 19:20:22 +00:00
E.Z. Hart f00907ea16 Add more UWP automated testing capabilities (#1252)
* Implement Clear(marked) method

* For Windows tests where we need to query a value we can't get, mark inconclusive

* Fix queries for multi-line "marked" values

* Force frames with text in them to be "tappable"

* Actually rerun queries during retry

* Update images for package deployment

* Allow the tests to restart the Control Gallery if it crashes

* UWP tests can now activate context menus

* Make double-tap (really double click) work for UWP desktop

* Get some basic scroll up/down functions working

* ScrollTo functions

* Modify ListViewRenderer automation peer to prevent freezing on ListViews

* Allow automation to find tabs

* Temporarily ignore some of the tests which don't do much

* Make ListViews with string/value type lists work

* Add note about 29257/60478

* Use toggle button for test 30353 for UWP

* Handle getting screen bounds consistently

* Make test for G2414 use ActivateContextMenu extension method

* Simplify UI test for 31330 and make it runnable on Windows

* Add notes on failing tests

* Add query for MoreButton on G2809 test

* Ignore ActivityIndicator IsRunning test for UWP

* Use ScrollDownTo instead of ScrollForElement method on Windows

* CellsGalleryTestCellList now working on UWP

* Cells tests working on UWP

* Re-add Tap to ScrollAndTap

* Get rid of custom automation peer stuff and just fix the tests

* Viewport caching and multi-monitor support for scroll

* Modified scroll values to hopefully get this running correctly on high density screen

* Clear messages so Appearing tests don't freeze up automation on UWP

* Make test for 32230 compatible with UWP

* Make test 32615 compatible with UWP

* Use ActivateContextMenu to simplify 34561 test

* Add notes for 34912 failure

* Make 36171 test compatible with UWP tests

Add directions for running the tests locally

* PR cleanup
2017-11-10 10:52:25 +00:00
Samantha Houts 2b5f91c628 [Android] Remove NavigationPage fragments after everything else is disposed (#1180)
* Add repro for 45702

* [Android] Remove fragments after everything else is disposed
2017-11-09 09:06:33 -07:00
Samantha Houts d3d59ee4f0 [All] Basic Right-To-Left Support (#1222)
* Restart RTL work

* Remove IsInherited flag as it never got used

* [Core] Unit tests

* [Core] FlowDirection

* Add FlowDirectionGallery

* Android gallery supports RTL

Need to set minSdkVersion to 17 to test

* iOS gallery supports RTL

* UWP gallery supports RTL

* [Android] Implement FlowDirection

* [iOS] Implement FlowDirection

* [macOS] Implement FlowDirection

* [UWP] Implement FlowDirection

* Update docs

* [Core] Simplify EffectiveFlowDirection enum & expose helper extensions

Also, TEST TEST TEST

* Update docs
2017-11-09 14:31:15 +00:00
Rui Marinho 26491b3e49 Merge branch '2.4.0' into 15-5 2017-11-02 22:47:12 +00:00
Rui Marinho 042699447a [iOS] Fixes for iOS11 (#1238)
* [iOS] Add SafeArea support

* [iOS] Only apply SafeArea on iOS11 or newer

* [iOS] Handle SafeAreaInsets on ViewCell and GroupCell

* [iOS] Set page padding from safe area

* [Controls] Use SafeArea PS

* [iOS] Add platform specific for LargeTiles

* [iOS] Add LargeTitleDisplayMode platform specific for ios11

* [iOS] Fix page size when large title collapses

* [iOS] Add platform specific to expose SafeAreaInsets from iOS11

* [Controls] Large titles iOS specific gallery page

* [iOS] Remove comment code on PS example

* [Controls] Add gallery sample for Safe Area PS

* [iOS] Inside a TabbedPage safe area bottom is handle by UITabViewController

* [Core,iOS]If we are not using safearea set the padding to the default

* [iOS] Revert SafeAreas on navpage

* [iOS] Fix safe area inset for ViewCell

* [iOS] Handle ViewCell margin correctly on iOS11

* [Core,iOS] Rename to UsingSafeArea, use BPKey instead for SafeAreaInsets

* [Core,iOS] Rename to UsingLargeTitles

* [iOS,Core] Rename to PrefersLargeTitles
2017-11-02 11:07:49 -07:00
Rui Marinho 4d49e5786a [iOS] Fixes for iOS11 (#1238)
* [iOS] Add SafeArea support

* [iOS] Only apply SafeArea on iOS11 or newer

* [iOS] Handle SafeAreaInsets on ViewCell and GroupCell

* [iOS] Set page padding from safe area

* [Controls] Use SafeArea PS

* [iOS] Add platform specific for LargeTiles

* [iOS] Add LargeTitleDisplayMode platform specific for ios11

* [iOS] Fix page size when large title collapses

* [iOS] Add platform specific to expose SafeAreaInsets from iOS11

* [Controls] Large titles iOS specific gallery page

* [iOS] Remove comment code on PS example

* [Controls] Add gallery sample for Safe Area PS

* [iOS] Inside a TabbedPage safe area bottom is handle by UITabViewController

* [Core,iOS]If we are not using safearea set the padding to the default

* [iOS] Revert SafeAreas on navpage

* [iOS] Fix safe area inset for ViewCell

* [iOS] Handle ViewCell margin correctly on iOS11

* [Core,iOS] Rename to UsingSafeArea, use BPKey instead for SafeAreaInsets

* [Core,iOS] Rename to UsingLargeTitles

* [iOS,Core] Rename to PrefersLargeTitles
2017-11-02 11:04:55 -07:00
Stephane Delcroix c0e89187bb [Test] Make sure we always test with different Cultures (#1219)
also get rid of the 'Turkey' build configuration
2017-10-24 10:41:33 +02:00
Rui Marinho 0927f1e688 [Packages] Update UITest and consolidate packages (#1201)
* [Packages] Update UITest and consolidate packages

* [Controls] Remove old packages

* [UITest] Try fix UITests iOS11

* [UITests] Use back instead of custom class
2017-10-18 18:13:21 +01:00
Rui Marinho 5b67a1b6e8 [Packages] Update UITest and consolidate packages (#1201)
* [Packages] Update UITest and consolidate packages

* [Controls] Remove old packages

* [UITest] Try fix UITests iOS11

* [UITests] Use back instead of custom class
2017-10-18 18:08:25 +01:00
Rui Marinho cc47809a2b [Packages] Update UITest and consolidate packages (#1201)
* [Packages] Update UITest and consolidate packages

* [Controls] Remove old packages

* [UITest] Try fix UITests iOS11

* [UITests] Use back instead of custom class
2017-10-18 18:04:03 +01:00
E.Z. Hart a544753154
Allow duplicate issue numbers per tracker (#1127) 2017-10-18 17:28:44 +02:00
E.Z. Hart 813b953360
Fix failing UI tests for Android FormsApplicationActivity (#1141)
* Fix broken test for 57910 when using FormsApplicationActivity

* Fix NRE when removing a page during OnAppearing using FormsApplicationActivity

* Update 45926 test to work correctly with FormsApplicationActivity

* Update 32830 test so it doesn't crash on FormsApplicationActivity

* Longer wait before refreshing appearing messages (to work with FormsApplicationActivity)

* Fix input transparency issue with old FrameRenderer

* Remove extraneous using directive

* Just ignore test 32830 on FormsApplicationActivity

* [Controls] Add missing directive
2017-09-15 15:38:49 +01:00
E.Z. Hart fc6d571e8a Fix failing UI tests for Android FormsApplicationActivity (#1141)
* Fix broken test for 57910 when using FormsApplicationActivity

* Fix NRE when removing a page during OnAppearing using FormsApplicationActivity

* Update 45926 test to work correctly with FormsApplicationActivity

* Update 32830 test so it doesn't crash on FormsApplicationActivity

* Longer wait before refreshing appearing messages (to work with FormsApplicationActivity)

* Fix input transparency issue with old FrameRenderer

* Remove extraneous using directive

* Just ignore test 32830 on FormsApplicationActivity

* [Controls] Add missing directive
2017-09-15 15:37:09 +01:00
Stephane Delcroix 8ee62e827e [C, iOS, Android] LayoutCompression (#1136)
* [C, iOS, Android] LayoutCompression

* fix docs

* minor fixups
2017-09-13 11:18:59 +02:00
Stephane Delcroix cc2129395b Better XF .targets errors reporting (#1125)
* [XamlC] Better XF .targets errors reporting

 - throw build errors if multiple xf .targets are imported, or if the
  .targets doesn't match the Tasks.dll ABI. That validation is skipped
  when building in CI, as the build task is not yet present at
  validation time.
 - reuse the main .targets for UnitTest builds, avoid duplication
 - parameterize the .targets

* define defaults before import
2017-09-07 09:06:03 +02:00
E.Z. Hart 8cb9050ddf Allow duplicate issue numbers per tracker (#1127) 2017-09-06 17:36:28 +01:00
E.Z. Hart 1aab6ff489 Repro 58406; apply effects to fast renderers on Android (#1077) 2017-08-10 10:35:27 -07:00
E.Z. Hart 075a6b370d Set the Id field for Android Views created by Forms (#1004)
* Repro of modal-over-map-crash issue

* Automated test for maps modal crash

* Generate Ids for all Renderer Views on Android

* Add Ids for PageContainer and PageRenderer

* Remove TODO comment

* Verify fast renderers aren't disposed before querying Id
2017-06-22 23:33:03 +01:00
Samantha Houts 4e83b8ee0f [All] Rename Accessibility -> AutomationProperties (#912)
* [All] Renamed Accessibility -> AutomationProperties

* Update docs

* Restore doc summaries

* Revert unintended csproj changes
2017-05-10 18:20:57 +01:00
Rui Marinho 5518d3fbaf Fix bugzilla55542 (#898)
* [Controls] Add repo for bugzilla 55542

* [Core] Fix caching null renderer for ViewCell view
2017-05-04 15:27:30 +01:00
Rui Marinho 2be80a55a5 [UITests]Add Xamarin.Forms.Core.UITests.Shared (#711)
* [UITests]Add Xamarin.Forms.Core.UITests.Shared

* fix

* [UITests]Use shared UITest project on macOS

* [UITests] Add correct platform queries

* [Controls] Add missing Preserve
2017-03-23 11:03:48 +00:00
Samantha Houts e7f5a4188d [iOS] ViewCells will respond to ForceUpdateSize in RecycleElement mode (#809)
* Add reproduction for 44525

* Clean up gallery page

* [iOS] Get index path from Cell in RecycleElement

* Fix obsolete code
2017-03-14 10:30:22 +00:00
Rui Marinho 1ad18e33eb [Android] Small performance fixes to ListViewRenderer, PlatformSpecific IsFastScrollEnabled (#797)
* [Android] Enable fast scroll by default

* [Android] Cache count for Listview

* [Android] Add IsFastScrollEnabled AndroidSpecific and sample

* [Android] Use count cache on GetCellsFromPosition

* [Android] Fix default for platform specific IsFastScrollEnabled

* [Docs]Fix docs

* [Android] Don't used cached listCount when getting cell
2017-03-08 11:30:08 +00:00
kingces95 e6d5186c8a Remove InternalsVisibleTo from Core to XF.Platforms.* (#782)
* Remove InternalsVisibleTo from Core to XF.Platforms.*

* Changes per Jason's code review

* Move LockableObservableListWrapper to internals namespace

* Changes per Stephane's code review

* update docs

* Touch code to get CI to run tests

* Rebase; Update documentation
2017-03-07 14:56:24 -05:00
Stephane Delcroix 62cdb35a0b
remove files committed by accident 2017-03-02 23:31:24 +01:00
Stephane Delcroix d2708bbadd [Xaml] Fallback to App.Current for DynResources (Previewer) (#793)
* [Xaml] Fallback to App.Current for DynResources (Previewer)

* [C] avoid NRE and ensure setting the style
2017-03-02 23:28:37 +01:00
E.Z. Hart caa8882ff2 Split Windows RuntimePlatform into UWP and WinRT (#748)
* Split RuntimePlatform Windows into UWP and WinRT

* Update docs

* Backward compatible targetPlatform=Windows for native XAML views on WinRT/UWP
2017-02-17 10:43:26 +00:00