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

2298 Коммитов

Автор SHA1 Сообщение Дата
Martin Zikmund 6031bbfb69 [UWP] Fix CornerRadius rendering on Frame (#3239) fixes #2838
* Updated Frame renderer on UWP to handle CornerRadius properly

* Test page for issue 2838

* Fixed typo and removed UITEST directive

* Label was cut off, fixed
2018-07-30 17:54:24 +01:00
Jay Cho d710f4b80d [Tizen] Fix Page.IsBusy Appearance (#3416) 2018-07-30 17:11:56 +01:00
Javier Suárez Ruiz 8732962333 [GTK] Fixed wrong CurrentPage index in TabbedPage (#3115)
* Fixed wrong CurrentPage index in GTK TabbedPage

* Improved GTK TabbedPage CurrentPage logic

* Fixed strange text format

* Removed unnecesary "private" keywords
2018-07-30 16:56:38 +01: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
E.Z. Hart 11a1e70f72 Simplify subscription to context action closure messages (#3365) 2018-07-30 16:54:12 +01:00
Shane Neuville b3f7c152d1 [UWP] #fixes #3333 (#3347)
-add null check to Listview layout update in case it's already been disposed
2018-07-30 16:52:20 +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
Shane Neuville 63ab975771 BackButtonTitleProperty isn't used by android (#3345) 2018-07-26 15:01:17 -06:00
E.Z. Hart dfd7251101
[UWP] Add missing IToolBarForegroundBinder interface on TabbedPageRenderer (#3363)
* Implement missing IToolBarForegroundBinder interface on TabbedPageRenderer

* Make the tool bar foreground/background colors apply to new tabs
2018-07-26 13:51:40 -06:00
E.Z. Hart 457f4c0156
[iOS] Remove iOS Platform Casts (#3361)
* [iOS] Move dispose helpers to their own static class (and off Platform)

* Add null checks on Elements
2018-07-26 10:40:09 -06:00
E.Z. Hart 3a067272a9 Rejoin Platform and NavigationPageRenderer partial classes (#3362) 2018-07-26 11:27:57 +02:00
Stephane Delcroix d675b3e47a
[Xaml] avoid GC'ing handlers in TypedBindings (#3387)
Keep a ref to OnPropertyChanged handlers to avoid garbage collection.

- fixes #1949
2018-07-26 11:27:04 +02:00
Stephane Delcroix 3878335d60
[XamlC] Resolve generic base type on GetProperty (#3394)
GetMethod, GetField, ... were already correctly resolving generic base
types. GetProperty or GetEvent were not, causing NRE later on.

- fixes #3260
2018-07-26 11:22:51 +02:00
Stephane Delcroix 7cf3725e9d
[XamlG] allow x:Name on types in using: xmlns (#3395)
- fixes #3393
2018-07-26 11:22:39 +02:00
Pavel Yakovlev 24be4ea745 [UWP] Fixes password Entry Copy/Paste/Insert/Remove behavior (#3166) 2018-07-25 18:06:32 -07:00
Francesco Bonacci c5dd9f80d1 Add check for null _root flex item (#3235) 2018-07-25 14:34:22 +02:00
E.Z. Hart 4edb715f6d
Alternate version of ToolbarButtons_1_Exist to avoid possible race condition 2018-07-23 15:36:26 -06:00
Shane Neuville 72ad5cac3d Remove math on scroll view container for RTL (#3299)
* fixes #3000 remove math on scroll view container for RTL
- setup RTL scrollviews to all start scrolled all the way to the right

* * formatting and renaming fixes

* - don't move scroll if not set to RTL
2018-07-23 11:11:01 -07:00
Samantha Houts ab677420e3 Merge branch '3.2.0' 2018-07-23 10:34:19 -07:00
Samantha Houts e365181f5c Merge branch '3.1.0' into 3.2.0 2018-07-23 10:33:44 -07: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
BinaryCraX b2a5d24456 [WPF] #fixes #3355 add Default-FontSize (#3356) 2018-07-23 16:33:33 +02:00
Alexander Houben 36a33676ef *.swp: remove temporary vim file(s) (#3377)
* Remove temporary vim file, add *.swp to .gitignore

* Remove all *.swp instances found
2018-07-23 16:31:16 +02:00
Alan Grgic 97d2f30f6b [Enhancement] Allow underline and strikethrough text decorations on labels and spans (#2221)
* Fixes #1632

* Allow underline and strikethrought text decorations on labels and spans

* revert some files

* pr feedback adjustments

* remove docs

* rename interface

* reorder enum

* clean up whitespace

* adjust tizen renderer

* add gallery demo for setting both underline and strike

* allow multiple values of enum to be set in xaml/css

* use normal null check

* use nameof

* include paragraph style

* tab alignment

* rebase from upstream

* pass control to update method on UWP

* correct text decorations type converter

* reset run text instead of label text on UWP when spans are used

* add tests for text decoration converter
2018-07-20 17:57:11 -06:00
E.Z. Hart 9ee71c610f Fix weird PageControl style problem in UWP (#3298)
-fixes #3297
2018-07-20 11:08:49 -06:00
E.Z. Hart 52514e4bb2 Add missing API check when checking IsInLayout in ScrollContainer; fixes #3186 (#3253) 2018-07-18 15:15:08 -07:00
Jonathan Peppers fd733037a4 [android] new IImageViewHandler API (#3045)
* [android] new IImageViewHandler API

Context:
https://github.com/bumptech/glide
https://github.com/jonathanpeppers/glidex

Currently the way my "proof-of-concept" GlideX library works by
completely bypassing `IImageSourceHandler`. GlideX provides its own
custom `ImageRenderer` and `ImageCellRenderer`. This was required due
to how *opinionated* the Glide library is. Glide's approach is to
never allow a developer access to a `Android.Graphics.Bitmap` or
`Android.Graphics.Drawable` because we would likely do it wrong... and
developers do all the time!

To evolve Xamarin.Forms to where images could be better handled down
the road, I've introduced a new interface:

    public interface IImageViewHandler : IRegisterable
    {
        Task LoadImageAsync(ImageSource imageSource, ImageView imageView, CancellationToken cancellationToken = default(CancellationToken));
    }

The idea is that we can query for `IImageViewHandler` and fall back to
`IImageSourceHandler`. This would allow GlideX to just be an
`IImageViewHandler` and not mess with creating custom renderers.

We can also implement `IImageViewHandler` for `FileImageSource`, to
get some general performance improvements around loading files from
disk:

    string file = ((FileImageSource)imagesource).File;
    if (File.Exists(file))
    {
        //Load with imageView.SetImageURI(Android.Net.Uri)
    }
    else
    {
        //Load with imageView.SetImageResource(int)
    }

I tested this change with new performance tests in `ImageScenarios`:
- Load 100 images using `AndroidResource`
- Load 100 images from disk
- I conveniently prefixed these with `.`, so they appeared first in
  the scenario list

Here are the results from three runs, using `IImageSourceHandler`
versus `IImageViewHandler`, in a HAXM emulator:

`IImageSourceHandler` - 100x `AndroidResource`
- 6059.899
- 3297.885
- 3015.179

`IImageSourceHandler` - 100x from disk
- 12398.71
- 14146.41
- 16060.88

`IImageViewHandler` - 100x `AndroidResource`
- 6748.766
- 2817.975
- 2456.197

`IImageViewHandler` - 100x from disk
- 7326.745
- 4799.001
- 5411.515

There is not going to be as much as an improvement for
`AndroidResource` (maybe not any), since Xamarin.Forms looks for
`Drawable` since: https://github.com/xamarin/Xamarin.Forms/pull/1973

NOTE: that these scenarios are probably too slow to keep, as it seems
these performance tests are geared to fail if they take longer than
250ms. I can remove these before we merge this PR.

Other changes to make this happen:
- `Registrar` was failing with `InvalidCastException` instead of
  returning `null` when querying for `IImageViewHandler`. I switched
  to using `as` instead of a hard cast. I am not sure why it was not
  already setup this way, since
  `Registrar.Registered.GetHandlerForObject<T>` appears to be called
  and checked for `null` everywhere.

* Changes to get this puppy "mergeable"

- Removed code from #1973 that is obsolete, we should not be able to hit that codepath anymore
- Restored: e8660383b0/Xamarin.Forms.Platform.Android/Extensions/ImageViewExtensions.cs (L55)
- Used `SetImageDrawable` and `Drawable` so that `Bugzilla51173_InvalidImage` should pass now
- Made adjustments to the perf scenarios
2018-07-15 15:00:15 -06:00
Samantha Houts 0c1127aba0 Update issue template
Our most common target is Github again. Also added back the UITestCategories to make it easier to remember to add them.
2018-07-13 16:02:11 -07:00
Samantha Houts f390b64630 Merge branch '3.2.0' 2018-07-13 10:07:33 -07:00
Samantha Houts 5577429836 Merge branch '3.1.0' into 3.2.0 2018-07-13 10:06:31 -07:00
Shane Neuville 60c74c9ebe
[Android] Let inflight life cycle events finish up before tearing them down (#3187)
* fixes #2338 Queue swaps involving fragments and ignore swaps when parent is going away
* change life cycle namesapce, add reference to issue, change extension name
2018-07-13 00:00:25 -06:00
Shane Neuville 67ad122811
[UWP] store alert to local variable for thread safety (#3268)
- fixes #3250
2018-07-11 12:48:19 -06:00
Gerald Versluis 271cb309a6 [Enhancement][iOS] Support UIModalPresentationStyle.FormSheet (#3119)
* First attempt at #1726

Implemented enum and hooked into modal presentation to set the right flag whenever a screen is presented modally on the iPad

* Added back to gallery button on sample app

* Moved setting UIModalPresentationStyle to ModalWrapper ctor

* Removed unused usings
2018-07-10 16:43:41 -06:00
kingces95 b2cb5cfecf
remove xamlc xamlg from dot slns (#3274) 2018-07-10 10:51:32 -10:00
Rui Marinho 840fa496a0 Merge branch '3.1.0' into 3.2.0 2018-07-05 17:12:55 +01:00
Rui Marinho 740468eedb
[Build]Add option to ignore framework version validation (#3223) 2018-07-05 15:21:57 +01:00
Mohamed CHOUCHANE 42c07d1ae5 WPF - Fix default background color for content page (#3219) 2018-07-04 23:39:38 +01:00
Mohamed CHOUCHANE 413e1dac5f [WPF] Fix lang version to default (#3199) 2018-07-04 00:28:46 +01:00
Chris King 75c85d3bfc remove xaml c/g from dot solution files 2018-07-02 11:13:05 -10:00
Mohamed CHOUCHANE e352abe1dc [WPF] Add WpfLightToolkit in the Xamarin Forms WPF Backend (#3104)
* [WPF] Add WpfLightToolkit in the Xamarin Forms Wpf projet

* Delete WpfLightToolkit dependency

* [WPF] Add WpfLightToolkit in the Xamarin Forms Wpf projet

* Delete WpfLightToolkit dependency
2018-07-02 11:11:23 +01:00
kingces95 76ebd7a1b0 Dot solution files (#3190) 2018-07-02 11:08:53 +01:00
Chris King c25a711860 Dot solution files 2018-06-29 14:03:12 -10:00
Rui Marinho ffa53d3113 Merge branch '3.2.0' 2018-06-29 02:56:02 +01:00
Samantha Houts 3090843ce8 [Android] Don't mess with the `Button.Padding` if the `Padding` property isn't set (#3174)
* [Android] Don't mess with the Button.Padding if the Padding property isn't set

* Update 1720 test case to clear padding value

* [Android] Can clear Padding value on Button
2018-06-28 19:46:14 +01:00
Rui Marinho 317f1533e9 [Build]Fix merge, remove category Aniamtion 2018-06-28 18:30:19 +01:00
Rui Marinho 57994e7d8d Merge branch '3.1.0' 2018-06-28 17:07:59 +01:00
E.Z. Hart 9072a3f332 Clear all previous animations with the same key when starting a new animation (#3101) fixes #2482
* Fix conflict between animations with the same AnimatableKey; fixes #2482

* Fix ambiguous reference

* nameof() all the things
2018-06-28 16:57:07 +01:00
Andres G. Aragoneses 955a4aa3df README.md: clarify NuGet.config info (#3130) 2018-06-28 12:37:31 +01:00
E.Z. Hart 794ae16ccb Clean up "backButton" stuff in PageControl (#3076) 2018-06-28 12:37:10 +01:00