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

408 Коммитов

Автор SHA1 Сообщение Дата
E.Z. Hart 974705b9a9 Fix memory leak caused by BaseCellView and RendererHolder (#311) 2016-08-30 10:57:55 -07:00
Kangho a0dae2d111 Update Makefile to support linux env (#309) 2016-08-30 10:55:00 -07:00
Samantha Houts 5e553f6195 Platform Specifics (#301)
* Playing around with how the platform specifics interfaces etc. might work

* Sample implementation of iOS navigation translucency

* Very slightly reduced code

* Better vendor stuff

* Drop single-implemenation interfaces

* Generics on NavigationPage

* On-demand vendor stuff

* Remove functionally duplicate classes and make ControlGallery work again

* Namespace all the things. XAML test.

* Can use Effect to attach platform specific

* Attach Effect on PropertyChanging for XAML support!

* Rename IConfigPlatform interfaces for readability

* Some renaming to match the documents

* Split class files

* Clear out test-only code

* Re-namespace

* Added On method to rendered Elements

* Allow for removal of platform suffix, convenience methods on specific platforms

* Creating a gallery page for specifics

* Add rudimentary Platform Specifics gallery; make CollapseStyle work on UWP;
Add CollapsedPaneWidth specific property

* Toolbar now working with both collapse styles

* MDP now displaying Content title; toolbar routing around title

* Add a gallery for the iOS NavigationPage stuff

* Add Navigation Page as detail page to verify it works with new Toolbar options

* Make titlebar/toolbar background colors consistent

* ToolbarPlacement now working on NavigationPage

* Toolbar Placement working for tabbed and nav pages

* Fix bug where phone doesn't get default toolbar placement on start

* [Core] Add PS WindowSoftInputModeAdjust

[Core] Make Application extendable

* Toolbar placement now working on Nav, Tabbed, and Master pages on desktop/phone

Remove unnecessary style indirection

Fix build errors

* [A] Add PlatformConfigurationExtensions

* SetSoftInputMode test page

* [A] SetSoftInputMode

Known issue: Status bar color does not work in AdjustResize mode

* [Core] Add PS Blur

* [iOS] Configure renderer for blur

* Add test page

* Move to blur VisualElement for broader support

* Move test pages to gallery

* Update docs

* Use lazy initializer for PlatformConfigurationRegistry
2016-08-30 10:46:14 -07:00
Jimmy Garrido f551654b1c Throw InvalidOperationException if AppLinkEntry.Thumbnail source is invalid (#299) 2016-08-30 10:45:05 -07:00
Marcus Lum 61f34d113c Allow Custom Android MapRenderers to override the default MapView options (#285)
* Allow Custom Android MapRenderers to override the default MapView options

* Larger effort to use CreateNativeControl () everywhere instead of just in the Android AppCompat renderers.
2016-08-30 10:37:07 -07:00
Jimmy Garrido 5b85aafcd6 Fix crash when ItemsSource is set to null (#320) 2016-08-25 11:05:18 -07:00
Mike Norman 417f7493d2 Fixed SinInOut description. (#319) 2016-08-25 11:11:01 -05:00
Paul DiPietro 96c194cb12 Fix regression by adding null check in Windows ListView selection (#314) 2016-08-25 01:55:15 +01:00
Oddbjørn Bakke cb2bcdb84c [Android] Fix for NullReferenceException when using the wrong activit… (#286)
* [Android] Fix for NullReferenceException when using the wrong activity type.

On using FormsApplicationActivity or FormsAppCompatActivity as base Activity in a SplashScreen.
A NullReferenceException will be thrown in the KeyboardManager.
Added InvalidOperationException with "Forms.Init()" message instead, if the Forms.Context is null.

* Fixed indentation
2016-08-17 10:26:27 +01:00
Paul DiPietro e488f7f318 [WinRT] Remove preemptive setting of null upon action sheet closure (#305) 2016-08-16 12:13:12 -07:00
Stephane Delcroix 4226f5b386 [Xaml] Clone node tree on DT, allow markup to be evaluated multiple times (#295) 2016-08-16 11:33:44 -07:00
Paul DiPietro 3ca06ea146 [Windows] Correct enter/esc keypress behaviors for MessageDialog (#292) 2016-08-16 11:33:11 -07:00
Rui Marinho 52dc625bce [iOS] Change when we updated the XF INavigationPageController after popping a page natively, Cleanup UITest references (#291) 2016-08-16 11:31:53 -07:00
Jonathan Peppers f6febd4c81 Fix for BindingExpression memory leak (#279)
* Unit test proving a memory leak with Binding

What we were seeing in our app was that Binding objects stay around when
bound to long-lived ViewModels, even when the View is long gone

* BindingExpression - INotifyPropertyChanged should use WeakReference

I had to make a WeakPropertyChangedProxy class for this, I could not
think of a way to get around creating a new object for this
2016-08-16 11:19:21 -07:00
E.Z. Hart 30c0dcb949 Fix Entry/SearchBar color issues (#306)
* Fix disappearing Entry text on UWP Anniversary Edition
Fix background color reversion bug in UWP Phone
Move SearchBar styling on UWP to its own file
Make foreground/background color changes on UWP SearchBar/Entry consistent
Fix SearchBar color toggle bug on WP8

* Temporarily moving SDK target to previous version

* Fix build error on OSX
2016-08-16 11:10:32 -07:00
Akihiko Odaki 966683a807 Invalidate measure of Label when FormattedText changes (#303) 2016-08-16 11:05:42 -07:00
Samantha Houts 414e5d1ec3 [A] Pre-AppCompat ListView Indicator ... (#281)
...will keep spinning on tab change.
2016-08-16 10:59:36 -07:00
Samantha Houts 33303a09df [iOS] Fixed bug that made pull-to-refresh indicator always visible after 2+ pulls (#307)
* Add repro for Bugzilla 43214

* [iOS] Undo change to ListViewRenderer

was attempting to prevent multiple unnecessary calls to SendRefreshing,
but this caused unintended problems.
2016-08-16 10:56:37 -07:00
Stephane Delcroix a1126ab66b [Xaml] Simplify listnodes with single elements (#304) 2016-08-15 13:18:26 -07:00
Stephane Delcroix 90396b0ffd Refix mc ignorable (#302)
* Revert "Fix mc ignorable (#298)"

This reverts commit 31c2be29d5.

* [Xaml] fix mc:Ignorable
2016-08-15 13:07:35 -07:00
Stephane Delcroix 775df09a3e [Xaml] x:Static in x:Arguments (#288)
* [Xaml] Support x:Static as x:Arguments

* [XamlC] allow x:Static in x:Arguments

* fix typo, remove commented code
2016-08-15 13:06:11 -07:00
Mike Norman 0390ea0346 Added note about line endings to Page.xml. (#300) 2016-08-12 14:39:02 -05:00
Stephane Delcroix 31c2be29d5 Fix mc ignorable (#298)
* [Xaml] when ignoring nodes, ignore children as well

* [XamlC] ignore on xamlc too
2016-08-11 20:33:22 -07:00
Kangho ba29e59d20 Add Orange color to Color (#290)
* Add Orange color to Color
2016-08-11 11:39:32 +02:00
Samantha Houts 69e9152f34 [Win] Set BindingContext for default cell (#289)
* Revise 41205 test case to use binding

* [Win] Set BindingContext for default cell

* [Win] SetInheritedBindingContext for Cell
2016-08-11 10:31:45 +01:00
E.Z. Hart 1823c1ad14 Unit tests for the PCL WeakEventManager (#280) 2016-08-10 13:51:33 +02:00
Rogier van der Hee 43e90a3884 Add the key in the message on throwing a KeyNotFoundException (#282)
* Add the key in the message on throwing a KeyNotFoundException for trying to access an invalid key in the ResourceDictionary. This helps a lot in tracking down what resource is actually missing.

* Fix test build, use C# 6 string interpolation
2016-08-09 11:37:35 +01:00
Rui Marinho 0a73c0f4bb [Android] Close the correct mode if it wasn't disposed (#283) 2016-08-09 12:16:51 +02:00
E.Z. Hart b186254d1f Enable WebView to render local HTML files on WinRT platforms (#277)
* Enable WebView to render local HTML files on WinRT platforms

* Add test to demonstrate that the solution works even if
<head> isn't in the HTML string
2016-08-03 14:22:14 -07:00
Mike Norman b60fa6acf8 identifer => identifier in ExportEffectAttribute.xml (#276) 2016-08-03 12:33:44 -05:00
Mike Norman 2d0add9c49 Fixed https://github.com/xamarin/documentation/issues/1508 (#275) 2016-08-03 12:14:59 -05:00
Rui Marinho 671d946640 Fix bugzilla41209 (#216)
* [Android] Add custom FormsSeekbar to handle invalid pressed states send by other views

* [Controls] Fix sample , error only occurs with transparent background
2016-08-03 02:07:50 -07:00
Paul DiPietro 23614ca8c6 [Android] Fix ListView contextual actions not closing in AppCompat's NavigationPage/TabbedPage (#272)
* [Android] Fix ListView contextual actions not closing upon navigation in AppCompat

The Platform type in the ListViewAdapter was being treated as the
non-AppCompat type, and the NavAnimationInProgress value was not
being set as necessary in the NavigationPageRenderer.

* [Android] Add fix for TabbedPage swipes not closing contextual actions

Similar fix where swiping to another tab with the context menu open would
not close it. Relies on the prior commit.
2016-08-03 09:50:31 +01:00
Paul DiPietro a0611515e4 [UWP/8.1] ListView respects keyboard selection (#182)
The ListViewRenderer's OnControlSelectionChanged would fire when using
the keyboard to change the selection of a ListView, but the Element's
SelectedItem value was not being set due to it normally being tracked
via tap/click.
2016-08-02 17:28:36 -07:00
Samantha Houts d5ad18b3e9 [A, iOS] ListView Pull-To-Refresh indicator animates when navigating back to it (#274)
* Add repro for 33561

* [A] ListView refreshing on created shows indicator

* [iOS] Refresh indicator restarts when appeared

* Remove superfluous get
2016-08-02 22:48:25 +01:00
E.Z. Hart fd838d3d80
Add missing compiler directives to fix build error 2016-08-02 15:39:31 -06:00
Depechie bfeffa7115 [Android] By using the SetSingleLine(true), the developers are no (#234)
longer able to use the SetMaxLines() in their own Custom Renderers
later on. So we force a single line by using the SetMaxLines(1) in the
base LabelRenderer and SetSingleLine(false)
2016-08-02 13:59:56 -07:00
E.Z. Hart 3f88aebe22 Dispose of child renderers in FrameRenderer (#265)
* Dispose of child renderers in FrameRenderer

* Add missing null check
2016-08-02 13:57:08 -07:00
E.Z. Hart 34048b7bb4 Change SourceChanged event on ImageSource to weak event to allow Images (#268)
referencing application-wide StaticResource ImageSources to be GCed
2016-08-02 13:54:57 -07:00
Michael Rumpler 08e282350c [Android] Color.Accent is hardcoded (#270) 2016-08-02 13:54:40 -07:00
Stephane Delcroix 89199205e4 Xaml convert on add (#273)
* [Xaml] add test for conversion on Set and Add

* [Xaml] Fix conversion on Add()

* [XamlC] use op_implicit before Add()
2016-08-02 13:24:50 -07:00
Paul DiPietro ac44cf9dec [Android] Add null check to prevent crashes when long clicking a text entry in ListView header/footer (#271)
When a text entry control (Entry, Editor, SearchBar, etc.) was being used in the header or
footer of a ListView on Android, a long click/press would cause a crash. This was occurring
in the HandleContextMode method because it expected to be a cell. Adding a null check and
breaking out of the method if the value from GetCellForPosition is null prevents this crash
from occurring.
2016-08-02 09:15:35 -07:00
Paul DiPietro ea01c07aa3 [Android] Fix focus/unfocus behavior on both Picker renderers (#264)
On AppCompat, focus and unfocus would not trigger when using the
Picker. On pre-Lollipop, unfocus would not trigger, but only when
tapping outside of the dialog.
2016-07-26 10:01:01 -07:00
Stephane Delcroix d04a4a3cf2 [XamlC] fix a bug in the debugging code introduced last week (#267) 2016-07-25 12:40:34 -07:00
Stephane Delcroix 2590d913f7 [XamlC] Fix the getter of getters (#263) 2016-07-21 11:59:40 -07:00
Paul DiPietro a80d5c0de7 [8.1/UWP] ListView allows selection with enter key (#241) 2016-07-18 20:05:08 -07:00
Vincent Costel 28d9e8aabc Add workaround for bugzilla 37792 (#181) 2016-07-18 17:09:20 -07:00
Roy 378ecc2a1a Android Custom Font support (#236)
* Implemented basic Support for Android Custom fonts

* Fixed Tabs

* Removed Private

* Changed behaviour to use UWP FontFamily style names

* Fixed Bug
2016-07-18 16:38:05 -07:00
Samantha Houts a490740a2e [Win] Setting TabbedPage.BarTextColor works (#244)
[Win] TabbedPage BarBG takes precedence
2016-07-18 16:33:41 -07:00
E.Z. Hart be9f626c37 Prevent FormsAppCompatActivity from loading fragments we don't use on restart (#246)
* Prevent FormsAppCompatActivity from loading fragments we don't use on restart

* Adding issues lost in merge
2016-07-18 16:30:41 -07:00