summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Core.UnitTests
AgeCommit message (Collapse)AuthorFilesLines
2016-12-07remove the noise while running nunit from consoleStephane Delcroix1-2/+0
2016-12-06[C] detach Behaviors and Triggers on VE finalization (#555)Stephane Delcroix1-1/+41
* [C] detach Behaviors and Triggers on VE finalization * update docs
2016-12-06[Android] ScrollView should send correct ScrollX and ScrollY (#394)adrianknight891-0/+31
* Android should show correct ScrollX and ScrollY when scrolling in both directions * Adding sample code to demonstrate scrolling * Orientation fix * ScrollTo should work for horizontal + vertical scrolling * Get correct scroll x and y values for ScrollOrientation.Both * Convert positions to pixels * Adding unit test to watch out for incorrect animation positioning * automated test * improvements * fixed texts
2016-12-06ResourceDictionary fixes (#536)Stephane Delcroix1-9/+40
* [C] avoid leaking RDs, remove reflection call, validate arguments * [C,Xaml] The only way to get merged values are internal
2016-12-01Don't run Command CanExecute on incorrect inherited binding context type (#572)E.Z. Hart1-1/+99
* Allow Command CanExecute to recover when run on inherited bindingcontext * Make exception handler more generic * Checking types in Command delegates to avoid exception in the first place * Adding type chekc to other Command constructor * Use nameof for ArgumentNullExceptions * Add unit tests for null parameters, handle value types and Nullable<T>
2016-11-16[W] Support 0 as valid BorderWidth (#537)Stephane Delcroix1-1/+1
2016-11-16[C] Use a Binding for ItemsSource object selectionStephane Delcroix1-96/+68
2016-11-16Squashed commit of the following:Joakim Carselind1-20/+468
commit 8d784ec7459335ca33003844a793c3dd266c5861 Author: Joakim Carselind <joakim.carselind@cub.se> Date: Tue Aug 23 00:30:25 2016 +0200 Added DisplayConverter property of type IValueConverter to perform conversion from object to string commit afb606f05c16b14e24785fad017540dd83dbf373 Author: Joakim Carselind <joakim.carselind@cub.se> Date: Tue Aug 23 00:07:55 2016 +0200 Use IsValueType commit 4742c22ed33309f40a55c536b161292eb5db40f8 Author: Joakim Carselind <joakim.carselind@cub.se> Date: Fri Aug 19 18:58:40 2016 +0200 Fixed bug with nested property expression commit 70a121e6172a61dbcf8835137bf58bd972cf2065 Author: Joakim Carselind <joakim.carselind@cub.se> Date: Fri Aug 19 18:43:14 2016 +0200 Added more tests commit 49c7876bda4185c699f5fd9b3a66763efca9623c Author: Joakim Carselind <joakim.carselind@cub.se> Date: Thu Aug 18 13:28:36 2016 +0200 Siimplified setting SelectedItem. Added property to provide full control over how to display the objects by DisplayFunc. Added tests commit 5c1d5e149dc21c58cebf7cdbc6677d1ccec04ed4 Author: Joakim Carselind <joakim.carselind@cub.se> Date: Thu Aug 11 17:15:36 2016 +0200 Trying to fix formatting with tabs instead of spaces commit d64663ce3ef6b223a04d477274e93ec87bd38ff4 Author: Joakim Carselind <joakim.carselind@cub.se> Date: Thu Aug 11 17:10:39 2016 +0200 Formatting. Handle Reset,Move,Replace collection changed action equal by re binding Items collection commit 8d4641810cb3b11fb6b47f8215bb5950a9641ba2 Author: Joakim Carselind <joakim.carselind@cub.se> Date: Thu Aug 11 16:33:03 2016 +0200 Removed inline documentation. Fixed formatting commit 28010a1b31da02879fd2d549d5b02458766544d5 Author: Joakim Carselind <joakim.carselind@cub.se> Date: Thu Aug 11 16:29:37 2016 +0200 Removed SelectedValue since SelectedIndex and SelectedItem make it redundant commit ac9d65816fe6db7b467c304e6dc3168a84d3166b Author: Joakim Carselind <joakim.carselind@cub.se> Date: Thu Aug 11 14:51:20 2016 +0200 Initial attempt on bindable picker
2016-11-16BindingContext changes are called multiple times on app start (#470)adrianknight891-0/+84
* inherited binding context fix * add check for child binding context * Revert "add check for child binding context" This reverts commit 71952f39129cfedc2358a32100deb07bd32a3080. * unit tests
2016-11-15[XamlC] TypedBindings, some tests, a compiler, ... (#489)Stephane Delcroix5-651/+2145
2016-10-25ScrollView should account for Content margin (#392)adrianknight891-0/+54
* ScrollView should account for Content margin * Unit tests for content margin
2016-09-26[C] specify type and default value for native bindings (#376)Stephane Delcroix1-11/+21
2016-09-26[XamlC] Compiled converters (#358)Stephane Delcroix1-1/+1
2016-09-18[Controls] Update Insights and UITest packages and fix warnings (#361)Rui Marinho3-9/+8
* [Controls] Update Insights and UITest packages * Update Xamarin.Forms.Platform.Android (Forwarders).csproj
2016-09-08[Xaml] support native views and native bindings (#266)Stephane Delcroix1-1/+0
Allows including Native views directly in xaml. Support for ios, android, UWP
2016-09-08Native Bindings (#278)Stephane Delcroix2-0/+488
* [C, I, A, W] Support Native Bindings * fix tabs
2016-08-30Fix for ListView BindingContext for Header/Footer (#312)Jonathan Peppers1-0/+37
* ListView - unit test showing BindingContext issue Apparently the BC doesn't pass to Header and Footer * ListView - support for passing BC to header and footer * ListView - test checking BindingContext is set Checking that it works to set the BindingContext first and the Header/Footer after
2016-08-30Platform Specifics (#301)Samantha Houts2-0/+228
* 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-16Fix for BindingExpression memory leak (#279)Jonathan Peppers1-0/+27
* 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-16Invalidate measure of Label when FormattedText changes (#303)Akihiko Odaki1-0/+26
2016-08-10Unit tests for the PCL WeakEventManager (#280)E.Z. Hart2-0/+190
2016-08-09Add the key in the message on throwing a KeyNotFoundException (#282)Rogier van der Hee1-1/+10
* 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-07-11Added PoppedToRootEventArgs to track popped pages when calling PopToRoot (#229)Johan Karlsson1-0/+25
2016-06-17Prep Cell & friends for removal of InternalsVisibleTo (#142)Samantha Houts4-7/+9
* Prep Cell & friends for removal of InternalsVisibleTo Includes: - Cell - EntryCell - ListView - MenuItem - TableView - ViewCell - Toolbar Moved extensions to Internal & removed TPH * Update docs * [Controls] Ignore Issue2411 on iOS <9 * [Controls] Formatting for Issue2411
2016-06-16Prep Page for removal of InternalsVisibleTo (#150)E.Z. Hart9-45/+58
2016-05-25[Android] Implement the AppIndexProvider on non-AppCompact, fix KeyValues ↵Rui Marinho2-0/+43
on AppLinkEntry (#166) * [Android] Set AppIndexingProvider on non AppCompact activity * [Core] Fix AppLinkEntry KeyValues
2016-05-04Add IMasterDetailPageController and update renderers (#146)E.Z. Hart1-10/+10
2016-05-04Add INavigationPageController (#149)E.Z. Hart1-2/+2
2016-05-02Prep VisualElement (and descendants) for removal of InternalsVisibleTo (#141)E.Z. Hart1-1/+2
2016-05-02Prep Image for removal of InternalsVisibleTo (#140)E.Z. Hart1-2/+2
2016-05-02Prep SearchBar for removal of InternalsVisibleTo (#137)E.Z. Hart1-2/+2
2016-04-25Multi style classes (#134)Stephane Delcroix1-9/+46
* [C] StyleClass is IList<string> * fix docs * this might be required
2016-04-25Make core Ticker abstract and public (#116)E.Z. Hart4-4/+34
* Make core Ticker abstract and public Make the core Ticker abstract and public so it can be inherited by platform implementations; remove now-unused parts of original Ticker; add CreateTicker to IPlatformServices; remove unused CreateTimer methods from IPlatformServices * Add docs for Ticker * Remove unnecessary Ticker.Default set * Move Ticker into Internals * Update Ticker docs * Remove old Ticker docs * Remove commented code
2016-04-25Remove ToolBar from Core; Remove ToolBar renderers and unit tests (#124)E.Z. Hart2-145/+0
2016-04-24Enable Warnings as Errors on all plat|cfg of XF.Core.UnitTests (#95)kingces953-5/+13
* Enable Warnings as Errors on all plat|cfg of XF.Core.UnitTests * Fix build errors
2016-04-06[C] Cast to ICommand instead of Command inside SearchBarJason Smith1-1/+22
2016-03-30Add options for specifying layout of button text/image contentE.Z. Hart1-0/+24
Also make the layout and layout defaults consistent across platforms
2016-03-27[C]Remove view from previous parent when added to new parent layoutJason Smith1-0/+13
Technically this could be considered a breaking change if someone was depending on the old behavior, however the old behavior resulted in layouts that were not predictable to the user. So while yes someone could have built something that works, it would have been via trial and error and generally breaking the rule of one parent to each view. Fixes https://bugzilla.xamarin.com/show_bug.cgi?id=39509
2016-03-22Initial importJason Smith117-0/+26408