* [C] Update Bindings with "BindingContext" in path
If the BindingContext is set using SetInheritedBindingContext, INPC
isn't fired, and bindings containing the "BindingContext" string in
the path ends up not being notified of the Change.
In addition to listening to PropertyChanged, this also hooks into
BindingContextChanged, and update the bindings accordingly.
- fixes#2019
* back to last year
BindableProperties with a defaultValueCreator are never in the default
(as defined by the defaultValue parameter) state. IsSet now reflects
that.
To allow styling properties with defaultVC, this adds a new flag in
BindableContextAttributes.
* Bindable Text Property on Span
* Style applied to Span
* Added style property
* Unit tests added
* Minor fix and cleanup
* Cleanup of code after review
* Updated docs
* Set Parent and reduce calls to Text property
* OneTime Binding
* Allow OneTime Binding as a default
* Updated docs
In scenarios where you want to keep track of pages as they are
appearing on screen, it's useful to be able to subscribe to a
global event from the `Application` to track those pages for
later processing (i.e. showing a timeline for the app, reloading
XAML for some of those pages, maybe replaying the timeline, etc.)
The new events are automatically raised from the Page base class
right after sending the page-level Appearing/Disappearing events.
* Let user set delegate to resolve handlers, effects, and services; closes#1739
* Remove old comments
* Move dependency-resolution-specific code to a separate class;
Remove Reset method; simplify internal API;
* Update docs to reflect new changes
* Add type checks closer to resolution; rename ForceResolve; remove public delegate type;
* Update docs
* Revert "Revert "Fix border on android buttons (#941)""
This reverts commit a4c7f31d1215174aa86d7647bcbce0dd5e719a9a.
* Add repro for 1436
Fix typo
* [Core] Use 2dp for Android default Button BorderRadius
* [Android] Add shadow & padding to ButtonDrawable
* [Android] Set BackgroundDrawable on Button when BorderWidth, BorderRadius, and BorderColor are changed
Also add RippleDrawable when supported for the nice ripple effect on press, and set the PaddingTop for the ButtonDrawable. fixes#1436
* [Android] Default Color for Button is specified for AppCompat and AppAct
* [Android] Check BorderRadius value against proper default
* Fix test case number
* grumble grumble this branch is still vs2015 grumble
* [Android] Get button color from resources
* [Core] Obsolete Button.BorderRadius in favor of CornerRadius
* [Core] Added VisualElement.DefaultBackgroundColor
* Update tests to ignore obsolete prop warning
* [Android] Use Button.CornerRadius instead of BorderRadius
* [iOS] Use Button.CornerRadius instead of BorderRadius
* [macOS] Use Button.CornerRadius instead of BorderRadius
* [UWP] Use Button.CornerRadius instead of BorderRadius
* Update docs
* Fix more cases of BorderRadius obsolete warnings
* [UWP] Use BP.DefaultValue instead of abstracted const
* [Android] Use BP.DefaultValue instead of abstracted const
* [Core] Remove unnecessary abstracted consts from Button
* [Android] Fix default corner radius on ButtonDrawable
* Unit tests for Button.CornerRadius/BorderRadius
* [iOS] Restore default Button.CornerRadius
* [UWP] Add todo
* Removed rounding in AbsoluteLayout to ensure Android devices with certain sizes can still use proportional sizes to fill the device screen.
* doc updates
* [C/XamlC] BindingMode.OneTime
Bindings with mode == OneTime:
- are only applied when the BindingContext changes
- do not subscribe to INPC
if the Binding is compiled and the mode explicitely set in the
`{Binding}` Markup extension, the setters and handlers aren't even
created.
- fixes#1686
* update docs
* [C] FlexLayout, with managed engine
* [C] add type converter and attributes for CSS
* [C] fix flex-order
* [C] fix typo and margin in Flex
* [Flex] relative value for Basis, padding on the layout
* fix docs
* [Flex] fix NRE on empty layout
* [flex] fix layout measuring
* Port from old VSM branch
* Add PS and notes
* Checkpoint: entry text UWP mostly working, need to check on background colors
* Remove irrelevant samples from the EntryDisabledStatesGallery
Make Background color work on UWP Entry with VSM
* Add platform specific for disabling legacy colors on Android
* Add OnPlatform example to visual state manager gallery
* Add example OnIdiom in Visual State Manager
* Add platform specific for disabling legacy color mode on iOS Entry
* Add gallery for Button disabled states
Handling legacy colors for Buttons on Android
* Split out disabled states galleries; disabled legacy handling for Picker
* TimePicker disabled states
* DatePicker color management on Android
* Color management for pre-AppCompat button
* Button legacy color handling on iOS
* Consolidate Platform Specifics;
legacy colors working for iOS Picker and DatePicker
* Fix broken search bar color management
SearchBar color management working with VSM
Add test page for SearchBar disabled color management
Consolidate legacy color management check code into extension method on Android
* Legacy color management for Editor on Android
* Fix legacy color stuff for SearchBar Cancel button on iOS
* C# 7 cleanup
* Add colors for Cancel Button
* Make sure VisualStateGroup collections set by styles are distinct objects
* Validation example
* Make common state names consts
* Make the Windows VSM and Forms VSM work together
* Update galleries for Windows
* Make new methods internal
* Split gallery classes and add more explanation to validation example
* Remove debugging statements
* Add a quick code-only example
* Make legacy color management work for fast button renderer
* Remove old TODO
* Update docs
* Move RunTimeNamePropertyAttribute to Xamarin.Forms.Xaml namespace
* Verify XF namespace when looking for VisualState
* Use nameof
* Make common states constants public
* Cast VisualElement directly so it crashes if the property is set on the wrong type
* Collection -> IList for VisualStateManager
* Setting fromStyle to true
* Remove extraneous `private set`
* Seal VSM classes
* Use constraints instead of ==
* Add teardown method; use constraints rather than ==
* Remove null checking with GetVisualStateGroups
* Don't explicitly initialize collections on elements
* Actually, turns out that fromStyle:false *was* correct
* Direct casts
* Use GetIsDefault check in GoToState
* Validate parents in FindTypeForVisualState
* Validate group and state names on Add
* Fixed check for setter collection
* Fix issues with "duplicate" names when VisualStateGroups declared directly on VisualElements
* Add gallery example for VSGs directly on VisualElements
* Update docs
* Fix bug where initial TextColor isn't set for FastRenderer Button
* Move to explicit VisualStateGroupList in Setter
* Fix return types for unit tests
* Using string.CompareOrdinal in GetState
* Update docs
* Add check for null/empty VisualState Name properties
* Add implicit color conversion to .NET Standard's System.Drawing.Color
This change simplifies working with colors in a .NET Standard way by adding implicit conversion between the two color types:
```
Xamarin.Forms.Color c1 = Xamarin.Forms.Color.FromRgba(1, 1, 1, 1);
System.Drawing.Color c2 = c1;
Xamarin.Forms.Color c3 = c2;
if (c2 == c1)
{
// Colors are equal
}
```
* Fixed order of color components
* Added Implicit Color conversion unit tests (this includes referencing System.Drawing to access the System.Drawing.Color type)
* Added conversion between Xamarin.Forms.Color.Default System.Drawing.Color.Empty
* [C] do not reapply a Binding with a Source when the Context changes
* apply the same to typedBindings
* [C] Use a flag to Apply()
* [C] Remove 2 other unnecessary Binding refreshs
* [Controls] Improve sample for MacOS control gallery, add a storyboard for the menu
* [Core] Add QuitApp to platform services
* [Core] Add ClickedGestureREcognizer
* [MacOS] Implement ClickGestureRecognizer
* [Core] Add MainMenu
* [MacOS] Implement Main top menu
* [Controls] Add desktop support test page
* [MacOS] Update menu items if they change
* [MacOS] Refactor to make it build for iOS
* [Core] Add Menu attached property to Element
* [MacOS] Implement MacOS context menu
* [Core] Fix type of ADP
* [Core] Add Accelerators to MenuItem
* [ControlGallery] Add example for Accelerator MenuItems
* [Core,iOS] Update ClickedEventArgs to ButtonMask enum
* [Docs] Update docs
* [Core]Fix build error
* [WP8] Implement QuitApp
* [WP8] Log warning instead of throw
* [Tests] Add unit tests for menu and menuitem
* [Docs]Update docs
* Update build submodule
* [Core,MacOS,Docs] Use Attached Property for MainMenu
* [Core] Update ButtonsMask, reduce calls to GetValue getting parameter
* [All] Use Accelerator class
* [Core] Add tests for accelerator
* [All] Move QuitApp to QuitApplication
* [Core, Tests] Add more tests for Accelerator
* [Core]Parse win modifier also
* [UnitTests] Fix TestCaseSource
* [MacOS,Core] Fix typo on Modifiers
* [MacOS] Fix typo
* [WinRT] Fix build
* [Docs] Update docs
* [Core] Add GetHandlerForObject and GetHandlerTypeForObject to Registrar
These new methods first try to use IReflectableType in order to support
dynamic objects. If that fails, GetType is used.
* [Platforms] Switch to query the Registrar using GetHandlerForObject
This enables dynamic objects to be used as renderers and other
points of extensibility.
* Take into account dynamic type info when comparing cell renderers
* Fix null renderer object type
* Update Registrar`1.xml
* Update Registrar`1.xml
* [Tests] Add nunit test adapter
* [Tests] Add nunit vs adapter to Xaml and Pages unit tests project
* [Tests] See if this works for TestSource
* [vsts] Add ignore for now on generic tests