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

21 Коммитов

Автор SHA1 Сообщение Дата
Matthew Leibowitz a8d0d7a1d4 [WIP] Unify the image handling (#4915)
* Initial code to get unifiied image handling
 - not yet tested
 - still using FileImageSource in some areas

* Updated the button renderers and added tests for Android

* Updated a few more of the Android renderers
 - also added an `IsEmpty` property to the ImageSource to indicate if this source actually contains data that can be used to try and load an image
 - added a few more "tests"
 - includes the changes for #4916

* A few more changes

* Keep the default page for the sample app

* Changing everything to ImageSource and going from there
 - Android, iOS, UWP and WPF are compiling
 - GTK, Mac and Tizen are not yet finished
 - Added a new interface for UWP to return an IconElement in addition to ImageSource (for app bar buttons)
 - not tested yet, nor are there any tests

* Renamed the property to be more useful

* All of Android is now async
 - still only minimal tests
 - also removed the bits that are in https://github.com/xamarin/Xamarin.Forms/pull/4948

* Update Xamarin.Forms.Platform.cs

* A few fixes to whitespace and nameof()

* Updated iOS and UWP wirth async image sources

* A few fixes and WPF support

* A few fixes for Android after the big merge

* Updated a few more loaders:
 - ios
 - macos
 - tizen
 - gtk

* Fix a few things after the merge

* - cast type to FileImageSource

* fix setting of title content if icon doesn't load

* fix IButtonLayoutManager to return correct control

* remove cast and add pack api

* - fix timing issues with layout/invalidation

* - remove aggresive element invalidations for now

* first set of api changes

* obsolete old apis and create new ones for ImageSource

* obsolete messages and static ordering fix

* add tests

* switch default on windows to show images on tabs

* - XStatic obsolete fix

* fix NPC test and bring back alert check on uwp

Fixes #3207
Fixes #4689
2019-04-26 13:46:13 -07:00
Gerald Versluis e60bfde9bf [C, iOS, AND, UWP] TabbedPage SelectedTabColor and UnselectedTabColor (#4899)
* Implemented Core and iOS

* Implemented Android

* Supressed platform specific obsolete warnings for now

* Implemented UWP

* Make selected page on UWP not rely on title

* Review feedback

* Removed references to (now) obsolete members

* Review feedback fixes

* Code review feedback

* Changed obsolete msg to reflect right XF version

* Apply suggestions from code review

Co-Authored-By: jfversluis <github@geraldversluis.nl>
fixes #3478
2019-03-01 15:47:31 -08:00
E.Z. Hart 4bab273f46
Implement Android single selection in CollectionView (#4651)
* Implement Android single selection

* Fix naming conflicts with SelectionChangedEventArgs

* Split files by class; make SelectionChangedEventArgs constructors internal;
Optimizations for SelectionChangedEventArgs;
Fire selection changed event/command from property changed handler;

* Update Xamarin.Forms.Core/Items/SelectableItemsView.cs

Co-Authored-By: StephaneDelcroix <stephane@delcroix.org>

* Set default value for SelectedItemProperty

* Remove unnecessary null check

* Fix order of OnElementChanged and Setup/Teardown Element

* Fix project file weirdness
2018-12-26 19:16:36 -07:00
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
Pavel Yakovlev 57fd1de8ab [UWP] Fix crash app when create navigation/tabbed page without children pages fixes #3188 (#3514) 2018-08-23 14:44:41 +01: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
Henric Müller efbadcf401 [UWP] AccessKey support on VisualElement and TabbedPage (#2061) fixes #1672
* [UWP] Initial support for AccessKey

Fixes #1672 by adding AccessKey, AccessKeyPlacement and horizontal
and vertical offset properties to Windows specific VisualElement class.
Also handles AccessKeys for tabbed pages (ContentPage).

* Fixing support for updating AccessKey on tabs

Refs #1672 and fixes issue with AccessKey not being updated
after tabbed page and its children had been created. The problem
was that the Reset event in OnPagesChange wasn't handled correctly.
We now add listeners to the child pages of the tabbed page which
makes sure AccessKey gets updated if user makes changes to tab object.

* Moved shared code to internal class AccessKeyHelper.

Updated foreach-loop and replaced spaces with tabs.
2018-04-24 13:00:29 +01:00
Johan Lorensson 0209ce77cd [UWP] Icon on TabbedPage (#1952)
* [Enhancement] Icon on TabbedPage UWP.

Fixes issue #1705.

* Update documentation for issue 1705.

* Smaller adjustments to make sure we still have same fixed header size
when icons are collapsed as before.

* Updated with review feedback.

TabbedPageRenderer.cs has also been updated to use tabs instead of spaces.

* Fix problem to restore back previous alignments on tabbed paged header text block.

When showing images in tabbed paged headers we store old alignment of text block
to be able to restore when hiding images (getting back original alignment of text block).
If sizes where changed for images while showed, the old values where lost.

Fix makes sure only the old values are stored, if current alignment is not the
default (center) when displaying images in tabbed paged header.
2018-03-07 10:37:27 -08:00
Paul DiPietro dcb2d2bb2a [UWP] Use transparent as default TabbedPage bar background color (#922 reopen) (#1327)
* [UWP] Use transparent as default TabbedPage bar background color

* Remove a now unnecessary check for 8.1
2018-01-11 12:36:22 +00:00
Samantha Houts 4e83b8ee0f [All] Rename Accessibility -> AutomationProperties (#912)
* [All] Renamed Accessibility -> AutomationProperties

* Update docs

* Restore doc summaries

* Revert unintended csproj changes
2017-05-10 18:20:57 +01:00
kingces95 093a4efa2d Implicit impl of controller ifaces (#807)
* Simplify ICtrl callsites

* Rebase fix
2017-04-11 19:02:06 +01:00
Samantha Houts ae59382c90 [All] Basic Accessibility Support (#713)
* [Core] Add accessibility properties

* [Controls] Add accessibility gallery

* [iOS] Implement accessibility properties

* [Android] Implement accessibilty properties

* [Win] Implement accessibility properties

* [Win] Select ListView item on selected for a11y

* Update docs

* TODO: macOS accessibility

* [iOS] Fix failing UI Tests
2017-01-31 11:49:15 -08:00
E.Z. Hart 8c5fd09694 Make UWP toolbar display rules consistent with other platforms (#638) 2017-01-03 11:25:24 +00:00
Jimmy Garrido 3da9a4cca7 Fix CommandBar overlaying content (#593) 2016-12-03 00:17:38 +00: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
Samantha Houts a490740a2e [Win] Setting TabbedPage.BarTextColor works (#244)
[Win] TabbedPage BarBG takes precedence
2016-07-18 16:33:41 -07:00
Samantha Houts 925fc0aa58 Prep Cell & friends for removal of InternalsVisibleTo (#142)
* 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-17 11:10:18 +01:00
E.Z. Hart d5be2f0144 Prep Page for removal of InternalsVisibleTo (#150) 2016-06-16 16:45:09 +01:00
Samantha Houts 75f1124002 BarBackgroundColor and BarTextColor on TabbedPage (#96)
* [Core] Add properties to TabbedPage

* [Controls] Add properties to test page

* [iOS] Added BarBackgroundColor & BarTextColor to TabbedPage

* [A] Added BarBackgroundColor & BarTextColor to TabbedPage

* [UWP] Added BarBackgroundColor & BarTextColor to TabbedPage

* [WinRT] Format file

* [WinRT] Added BarBackgroundColor & BarTextColor to TabbedPage

* [Docs] Updated docs
2016-04-18 09:46:51 -07:00
Samantha Houts 7dcdfb60a9 [UWP] OnElementChanged is now virtual (#98) 2016-04-18 09:17:27 -07:00
Jason Smith 17fdde66d9 Initial import 2016-03-22 16:13:41 -07:00