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

64 Коммитов

Автор SHA1 Сообщение Дата
Rui Marinho e3b6e4755e Merge branch '3.2.0' 2018-08-10 12:09:55 +01:00
Rui Marinho be2681b4aa
[MacOS] Fix NRE whrn checking for existing MainMenu, fixes #3353 (#3511) 2018-08-09 10:54:14 +01:00
Sławomir Kulików 24c6e3bb75 [macOS] Navigating back from a complex page is highly inefficient (#3406) fixes #3001
* fixes #3001 [macOS] Navigating back from a complex page is highly inefficient

* fixes UITEST compilation
2018-08-07 13:11:17 +01:00
John VanSickle a447b5b1af Fix Entry Completed invocation logic for macOS (#3201) fixes #1650
The Completed event should be invoked when the user presses the return key only. Using NSTextField DidEndEditing is not favorable because pressing the Tab key will cause this method as well
2018-08-06 17:54:54 +01:00
John VanSickle c9ef84345d Fix mac os Editor transparent color handling (#3218) 2018-08-01 18:43:21 +01:00
John VanSickle 0250ce7e88 [macOS] Fix standard button events (#3203) fixes #1776
* Fix mac os standard button events

Pressed, Released, Clicked, and Command all fire appropriately

* Rename / improve mac os button event pressed / released actions
2018-07-23 16:19:14 +01:00
Stephane Delcroix c79c77dbdf [build] Version and strongname the Build.Tasks (#3118) 2018-06-28 12:04:16 +01:00
John VanSickle 02050d7b6e [macOS] Entry focus unfocus events (#3011) fixes #3012
* Improve FormsNSTextField.FocusChanged behavior

Unfocused no longer fires immediately after first focus. Unfocused will fire with Return key or Tab key press. Unfocused will fire when window loses key while the Entry is was focused. Focused will fire when window becomes key and the Entry was previously first responder.

* Add UI test for macOS Entry focused/unfocused test

* Update test class to reflect github issue

* Unsubscribe from window events in FormsNSTextField

* Remove single line conditional braces

* Remove single line conditional braces
2018-06-25 12:44:01 +01:00
Rui Marinho 0ec51a727f Merge branch '3.1.0' 2018-05-24 18:28:15 +01:00
Rui Marinho 9e4401039d
[MacOS] Fix issue setting no pages to ArrangedObjects on CarouselPage 2018-05-24 15:58:21 +01:00
Pavel Yakovlev b901924d64 [Mac] Fixed for deleting main menu items (#2720) 2018-05-15 18:42:59 +01: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
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
Pavel Yakovlev 4c92ed338b [macOS] Fixes issue with hiding master page of `MasterDetailPage` (fixes #2507) (#2538) 2018-04-24 15:37:39 +01:00
Rui Marinho 6d090d100f Merge branch '3.0.0' 2018-03-24 14:13:28 +00: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
Rui Marinho eda1edef61
Update WebViewRenderer.cs 2018-03-21 17:40:29 +00:00
Rui Marinho 7e79b2baad
[MacOS] Implement the navigation events on MacOS fixes #1630 2018-03-21 16:03:43 +00:00
Rui Marinho 6abf096922 [MacOS] Workaround for 15.6 mac targets issue 2018-03-19 15:22:02 +00:00
BradChase2011 e1a7bed338 [macOS] Alternate picker. Changed native control to NSPopupButton. (#1831)
* [macOS] Alternate picker.  Changed native control to NSPopupButton.

* *Fixed potential memory leak.
2018-03-13 20:03:04 +00: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
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
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
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
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
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 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
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
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 f0022e1361
[macOS] Handle case where no storyboard is provided for menus (#1246) 2017-11-01 19:21:04 +00:00
Rui Marinho 21f565c3ca [MacOS] Fix Menus (#1225)
* [MacOS] Fix MainMenu update

* [MacOS] Make sure to clear main menu if set to null

* [MacOS] Fix shortcut parse
2017-10-25 12:17:42 -07:00
Rui Marinho 981d83f12a [MacOS] Fix Menus (#1225)
* [MacOS] Fix MainMenu update

* [MacOS] Make sure to clear main menu if set to null

* [MacOS] Fix shortcut parse
2017-10-24 16:33:28 +01:00
Michael Rumpler 347c340694 [MacOS] make OnElementChanged and OnElementPropertyChanged protected virtual (#1187)
* make OnElementChanged and OnElementPropertyChanged protected virtual like all other renderers

* raise ElementChanged outside virtual OnElementChanged method
2017-10-17 09:47:42 +02:00
Marko B. Ludolph 0abfd7e504 [MacOS] Navigation Transition Style (#1168) 2017-10-03 14:46:41 +01:00
Marko B. Ludolph 6877d6301f [macOS] ScrollView Resize Fix (#1170) 2017-10-02 18:28:37 +01:00
Rui Marinho 9f24a41c2d [Core,MacOS]Desktop support (#1126)
* [Controls] Improve sample for MacOS control gallery, add a storyboard for the menu

* [Core] Add QuitApp to platform services

* [Core] Add ClickedGestureREcognizer

* [MacOS] Implement ClickGestureRecognizer

* [Core] Add MainMenu

* [MacOS] Implement Main top menu

* [Controls] Add desktop support test page

* [MacOS] Update menu items if they change

* [MacOS] Refactor to make it build for iOS

* [Core] Add Menu attached property to Element

* [MacOS] Implement MacOS context menu

* [Core] Fix type of ADP

* [Core] Add Accelerators to MenuItem

* [ControlGallery] Add example for Accelerator MenuItems

* [Core,iOS] Update ClickedEventArgs to ButtonMask enum  

* [Docs] Update docs

* [Core]Fix build error

* [WP8] Implement QuitApp

* [WP8] Log warning instead of throw

* [Tests]  Add unit tests for menu and menuitem

* [Docs]Update docs

* Update build submodule

* [Core,MacOS,Docs] Use Attached Property for MainMenu

* [Core] Update ButtonsMask, reduce calls to GetValue getting parameter

* [All] Use Accelerator class

* [Core] Add tests for accelerator

* [All] Move QuitApp to QuitApplication

* [Core, Tests] Add more tests for Accelerator

* [Core]Parse win modifier also

* [UnitTests] Fix TestCaseSource

* [MacOS,Core] Fix typo on Modifiers

* [MacOS] Fix typo

* [WinRT] Fix build

* [Docs] Update docs
2017-10-02 18:19:26 +01:00
Frank A. Krueger e8660383b0 [All] Use IReflectableType when accessing the Registrar (#1006)
* [Core] Add GetHandlerForObject and GetHandlerTypeForObject to Registrar

These new methods first try to use IReflectableType in order to support
dynamic objects. If that fails, GetType is used.

* [Platforms] Switch to query the Registrar using GetHandlerForObject

This enables dynamic objects to be used as renderers and other
points of extensibility.

* Take into account dynamic type info when comparing cell renderers

* Fix null renderer object type

* Update Registrar`1.xml

* Update Registrar`1.xml
2017-09-28 16:35:28 +02:00
kingces95 d4480b2e48 Add iOS prototypical cell cache for LV RowHeight calcs (#1143) 2017-09-16 15:10:04 +01:00
Roger Hardiman 791b84f2f1 [MacOS] Fix bugzilla58779 (#1109)
* Add test for B58779 - DisplayActionSheet bug on MacOS

When there are a large number of items in the list (eg 15) the list goes off the bottom of the Mac desktop

* Add test for B58799 to project

* Fix for B58799

If the list of buttons has a height > 400 then put the list in a NSScrollView

* Fix whitespace for Bugzilla 58779

* Add vertical scrollbar

* Set height of scrollview to 60% of the screen height
2017-09-01 16:27:13 +01:00
Marko B. Ludolph 71f08bf48a [macOS] ModalPage Resize Fix (#1058)
* [macOS] ModalPage Resize Fix

* Added _renderer and _renderer.View null check.
2017-08-15 18:06:07 +01:00
Marko B. Ludolph 8723ed1b52 macOS: Fix for "Cannot register two managed types ('NSToolbarItemGroup')" (#1097) 2017-08-14 20:16:36 +01:00
E.Z. Hart 0ff50e2418 Add support for backcompat hint flags (#1074)
* Add support for backcompat hint flags

* Making fast renderers internal and sealed while experimental
2017-08-10 19:08:18 +01:00
Rui Marinho 6be1e9ab43 [Mac] Fix ProgressBar (#1068) 2017-07-25 12:30:27 -04:00
Marko B. Ludolph 9c82ed129f [MacOS] Image Aspect Fix (#1041)
* MacOS Image Aspect Fix

* FormsNSImageView internal

* Fixed: Renderers/ImageRenderer.cs(9,15,9,28): error CS0060: Inconsistent accessibility: base class 'ViewRenderer<Image, FormsNSImageView>' is less accessible than class 'ImageRenderer'

* FormsNSImage internal fix
2017-07-25 09:39:44 -04:00
Marko B. Ludolph f3f3424544 [MacOS] Tabbed Page Top Offset Fix (#1042)
* Tabbed Page Top Offset Fix

* Fixed Tabs
2017-07-24 17:17:16 -04:00
Marko B. Ludolph 839cc9f5c5 [macOS] BoxView Color Fix (#1055) 2017-07-24 17:16:10 -04:00
Marko B. Ludolph f0b1efbb91 [macOS] Set tab order (e.g. for entries) on a Page (#1060)
* [macOS] Add tab order (e.g. for entries) on a Page

* Return NativeView if no subviews are available
2017-07-24 17:13:21 -04:00