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

501 Коммитов

Автор SHA1 Сообщение Дата
Martin Zikmund 6632210d71 UWP Toolbar dynamic overflow (#4022)
* Adding Windows specific ToolbarDynamicOverflowEnabled configuration

* Enabled ToolbarDynamicOverflowEnabled (pun intended) on page controls and renderers

* Issue 3988 sample

* Removed obsolete comment, cleaned up private and whitespace

* Added toolbar dynamic overflow examples for master detail page and tabbed page


- fixes #2057
- fixes #3988
2018-10-23 10:27:28 -06:00
Andrei N afc037ffec Added WebView Reload (#4013) fixes #3776
* Added WebView Reload

* WebView Reload Added Tizen suport
2018-10-13 20:53:46 -04:00
Stephane Delcroix 078945aa99 Merge branch '3.3.0' 2018-10-11 09:22:46 -04:00
Stephane Delcroix 5dc8935e52
[Tasks] multitarget the build tasks (#3895)
- fixes #2690
- closes #2706
2018-10-11 09:00:33 -04:00
Stephane Delcroix 72e0e69f7c Merge branch '3.3.0' 2018-10-08 08:46:26 -04:00
Samantha Houts e1cba2c8f1
[iOS] Add ability to turn off updates to native controls from another thread (#3774)
* [iOS] Add ability to turn off updates to native controls from another thread

* Flip evaluation order

fixes #1755
2018-10-04 14:58:34 -07:00
Stephane Delcroix fa7a5e5fa9
[C] add CSS mapping for max-lines (#3991)
- fixes #3982
2018-10-04 15:42:38 +02:00
Stephane Delcroix e186f2a722 [XamlC] avoid multiple subscription (#3969)
Avoid multiple subscription to PropertyChanged on TypedBindings

- fixes #3613
- fixes #3650
2018-10-02 17:05:09 -07:00
Rui Marinho 89eaf5c90d Merge branch '3.3.0' to master 2018-10-02 23:37:51 +01:00
Rui Marinho 31b8ad198d Merge branch '3.2.0' into 3.3.0 2018-10-02 23:34:32 +01:00
Shane Neuville 4c367911b9 Only set the Page Padding via SafeAreaInset on iOS (#3811)
* only set the Page Padding via SafeAreaInset on iOS
-fixes #3809

* [Controls] add waits for clicks in ui tests

* [Controls] remove wrong category

* [iOS] Move inset logic down into ios renderer
2018-10-02 09:43:53 +02:00
Stephane Delcroix 632ed1139d Merge branch '3.3.0' 2018-10-01 09:00:49 +02:00
Stephane Delcroix f072f0ce47 [C] catch AmbiguousMatchException on GetProps (#3915)
- fixes #3870
2018-09-28 13:25:32 -07:00
Stephane Delcroix d1dfd3c300
[C] fix css mapping (#3919) 2018-09-27 16:50:50 +02:00
Rui Marinho 39b6467b81
Merge branch '3.3.0' 2018-09-26 12:19:50 +01:00
Stephane Delcroix e875e9f302 [CSS] accept 'oblique' for 'font-style' (#3815) fixes #3808
- fixes #3808
2018-09-26 10:22:45 +01:00
Rui Marinho e3e4c7cc4a
[Core] Moving Command's CanExecuteChanged to use the WeakEventManager (#3852) fixes #3656
* [Core]  Use WeakEventManager on CanExecuteChanged

* [Core]Add unit test for remove event handler with WeakEventManager

* [Core] Fix remove the correct handler
2018-09-26 10:21:05 +01:00
adrianknight89 e3145aa0a9 [Enhancement] Create a bindable property for AutomationId (#3879)
* create a bindable property for automationId

* make ClassId and AutomationId properties of Element
2018-09-25 14:36:50 -06:00
Rui Marinho a2ae417c21 Merge branch '3.2.0' into 3.3.0 2018-09-20 16:08:21 +01:00
Shane Neuville fefdb9295c [Core] Propagate BindingContext changes to TitleView (#3823)
* [Core] Propagate BindingContext changes to TitleView

* [Tests] Move UI test to Core Unit Test
2018-09-19 21:07:05 -07:00
Pavel Yakovlev cceee9ded6 Add TabStop/TabIndex (#2795)
* [Core, UWP, Android] support TabStop/TabIndex

* removing linq

* add iOS / MacOS implementation

* add WPF implementation
fixes UWP implementation

* - addressing comments
- improve test
- optimizations
- added previous tab direction in same tab group

* addressing comments

* [Android] support tabstop for pickers

* - moving shared code to a static class
- removed reflection

* ITabStop -> changed to internal, renamed, added in to fastRenderers

* Update ITabStop to be public
2018-09-12 21:20:46 -07:00
Samantha Houts 7422cb8b17 Merge branch '3.2.0' 2018-08-31 14:19:27 -07:00
Stephane Delcroix 912ed626db [CSS] add more properties (#3466)
map new CSS properties:
- `color` on `IColorElement` (`ActivityIndicator`, `BoxView`),
  `ProgressBar` and `Switch`
- `row-gap` and `column-gap` on `Grid`
- `transform` and `transform-origin` on `VisualElement`
- `vertical-align` on `Label`

add new XF-specific CSS properties
- `-xf-placeholder` and `-xf-placeholder-color` on `Editor`, `Entry`,
  `SearchBar`
- `-xf-max-length` on `InputView` (`Editor` and `Entry`)
- `-xf-bar-background-color` and `-xf-bar-text-color` on
  `NavigationPage` and `TabbedPage`
- `-xf-orientation` on `ScrollView` and `StackLayout`
- `-xf-horizontal-scroll-bar-visibility` and
  `-xf-vertical-scroll-bar-visibility` on `ScrollView`
- `-xf-min-track-color`, `-xf-max-track-color` and `("-xf-thumb-color`
  on `Slider`
- `-xf-spacing` on `StackLayout`

This PR replaces and closes #3276

- fixes #2891
2018-08-31 11:35:56 -07:00
Samantha Houts a8260b0075 [Android,iOS,UWP] Allow Entry CursorPosition/SelectionLength to be set in ctor (#3402) fixes #3343 fixes #3633
* Add repro for #3343 + unit tests

* [Core] Disallow negative values for CursorPosition/SelectionLength

* [All] CursorPosition/SelectionLength can bindin ctor & clear value

fixes #3343

* typo

* cleanup

* [iOS] Cursor snaps to end

* try/catch
2018-08-31 18:20:30 +01:00
Shane Neuville 8f03f5ec5c [iOS, UWP] fixes #2894 - Gestures collection changes weren't correctly propagating (#3643)
* [iOS, UWP] fixes #2894 - Gestures weren't wiring up to spans in all cases

* [Core] remove ChildGestureRecognizers when spans get removed

* [iOS] removed incorrect return from null
2018-08-31 12:32:37 +01:00
Rui Marinho 4301017bf6
Merge branch '3.2.0' 2018-08-29 10:28:29 +01:00
Shane Neuville 0a34ef1b4d
[iOS] fixes #3525 - add epsilon for float compare (#3654)
* [iOS] fixes #3525 - add epsilon for float compare and make region immutable

* [ControlGallery] spread out spans to account for click slop

* [ControlGallery] - adjust span slightly for android test

* [Core] remove private
2018-08-28 22:21:22 -06:00
Rui Marinho a94074463e
Merge branch '3.2.0' 2018-08-28 13:08:55 +01:00
Shane Neuville 4222ad2542 [C] Set binding context on Span Gestures (#3639)
* [Core] Set binding context on Span Gestures
* [Core] Simplify loop setting child binding context

- fixes #3524
2018-08-24 09:50:47 +02:00
Shane Neuville 865b069a94
[Core] Ignore Shamehat target when running DesignTimeBuild (#3605) 2018-08-21 12:22:06 -06:00
Stephane Delcroix 7fd1bd6d50 Merge branch '3.2.0' 2018-08-20 10:32:28 +02:00
Stephane Delcroix 4facc9b193 Revert "For consistency with ResourceDictionary, expose the Source for a StyleSheet (#2589)"
This reverts commit f66a72de5b.
2018-08-17 20:53:59 +02:00
Daniel Cazzulino f66a72de5b For consistency with ResourceDictionary, expose the Source for a StyleSheet (#2589)
This would allow previewer/designer/reloader to determine the source of a
stylesheet and refresh its content when appropriate.
2018-08-17 15:43:04 +01:00
Stephane Delcroix 5e02ea603d Merge branch '3.1.0' into 3.2.0 2018-08-16 12:28:50 +02:00
Stephane Delcroix 03e14d344a
[C] VisibilityConverter Trims input (#3581)
For CSS purposes, the VisibilityConverter was added, and actually
replaced the `Boolean.Parse(str)` call for parsing Visibility.
`Boolean.Parse()` trims input, and the converter was not, so this was a
regression.
This changes Trim() the input, to be fully backward compatible.

- fixes #3554
2018-08-16 10:27:46 +00:00
Gerald Versluis 203d4ffcf0 MaxLines property on Label (#3318)
* Implemented MaxLines on iOS, Mac OS, Android, UWP and WPF

Introduced new MaxLines property on Label

* Set default value to -1

* Implemented reverting to default value

* More improvements

Update measurement when MaxLines property value changes and updates to default values.

fixes #2060
fixes #1706
2018-08-16 07:25:47 +00:00
Rui Marinho fa1df7bdcd Merge branch '3.2.0' 2018-08-06 17:05:11 +01:00
Samantha Houts a7b4a47396 [iOS] Implement `ForceUpdateSize` for `TableView` (#3300) fixes #2842
* Add repro for #2842

* [iOS] Implement ForceUpdateSize for TableView

fixes #2842

* Revert changes to TableViewModelRenderer
2018-08-06 15:23:22 +01:00
Samantha Houts 21b26ac860 [Android] Prevent duplicate events from SwipeGestureRecognizer (#3443) fixes #3415
* Add repro for #3415

* [Core] Remove HasFlags from SwipeGestureRecognizer

* [Android] Prevent duplicate swipe events

fixes #3415

* Clean up test
2018-08-03 15:40:47 +01:00
Stephane Delcroix a9a68c6e60 [C] fix TargetNullValue Bindings (#3468)
Due to a flux in the matrix, Bindings with a TargetNullValue assigned
were always returning that value. It had the advantage of being right
sometimes, but the inconvenient for being wrong, most of the times.

By properly aligning the bits of the register with the sun at beer time,
we can avoid that side effect, and actually returns a value when the
binding is succesful, and the TargetNullValue whem the Binding returns
null.

- fixes #3467
2018-08-02 16:56:19 -07:00
adrianknight89 5a6f34970a [Android] Add IsSmoothScrollEnabled platform specific to control tab change animation (#2965)
* add ability to control smooth scrolling

* added test case

* removed test case

* add test button

* EnableGesture should be controlled by another platform specific
2018-08-02 16:51:36 -07:00
ShaneN 1049a65056 Merge branch '3.2.0' 2018-08-02 15:55:15 -06:00
Samantha Houts 7045d80843 Add assembly version to XF.Core (#3460)
* Add assembly version to XF.Core

fixes #3354

* you know what helps? using statements.
2018-08-02 08:11:35 +02:00
Pavel Yakovlev 15fe14d88f [Core] Fixed setting CornerRadius of button to 5 (#3441)
* [Core] Fixed setting CornerRadius of button to 5

* correction of typos

- fixes #3390
2018-08-01 09:08:07 +02:00
Stephane Delcroix 6246b9020e
[C] abstract the Style property in an interface (#3438)
so it's ahsred between VisualElement and span, and retrieving the
property is easier.

- fixes #3314
2018-07-31 11:53:25 +02:00
Stephane Delcroix 2c65c03e99
[C, Xaml] add SizeTypeConverter (#3381)
Add a missing TypeConverter attribute to Size struct.

- fixes #3280
2018-07-31 10:26:34 +02:00
Stephane Delcroix a2b836110b
[CSS] allow mapping css prop to multiple BPs (#3437)
To allow mapping a single CSS property to multiple controls, we so far
relied on extracting the BindableProperties to static helper classes,
and implementing an interface for accessors, and eventually change
handlers.

That extraction works well, and is actually a good pattern, as long as:
 - the extracted BPs share the same PropertyName,
 - default value, and
 - return type, obiously

As the CSS `color` property has to map to both `TextColor` and `Color`
BPs, the property extraction wasn't possible.

This change adds the capability to map a single CSS property to
multiples BPS, when extraction isn't possible. Whenever the extraction
to an interface is possible, that behavior is strongly encouraged.
2018-07-31 09:18:54 +02:00
Neil McAlister 1a71035f51 [Core] Report binding failures (#2911) fixes #2639
* Implemented debug LogListener according to feedback

* Added check to see if log listener is already contained before adding/removing
2018-07-30 16:55:49 +01:00
Stephane Delcroix 2535c2098c Merge branch '3.2.0' 2018-07-30 10:39:42 +02:00
Stephane Delcroix 2b74434ba0 Merge branch '3.1.0' into 3.2.0 2018-07-30 10:39:09 +02:00