maui-linux/Xamarin.Forms.Platform.UAP/FormsTextBox.cs

407 строки
13 KiB
C#
Исходник Обычный вид История

2016-03-22 23:02:25 +03:00
using System;
[UWP] Changing IsPassword property changed InputScope (#4181) * Update from origin (#8) * [C] VisibilityConverter Trims input (#3581) For CSS purposes, the VisibilityConverter was added, and actually replaced the `Boolean.Parse(str)` call for parsing Visibility. `Boolean.Parse()` trims input, and the converter was not, so this was a regression. This changes Trim() the input, to be fully backward compatible. - fixes #3554 * Ensure ConstructorCountId and TimeId elements are available before querying them (#3588) * For consistency with ResourceDictionary, expose the Source for a StyleSheet (#2589) This would allow previewer/designer/reloader to determine the source of a stylesheet and refresh its content when appropriate. * Revert "For consistency with ResourceDictionary, expose the Source for a StyleSheet (#2589)" This reverts commit f66a72de5b475a6a8387a80e418997b38dc40d4c. * Fix NRE; Ret 0 if Text null (#3594) fixes #3579 * [UWP, WPF] Fixes rendering of the main page (#2896) fixes #2704 * [Core] Ignore Shamehat target when running DesignTimeBuild (#3605) * [XamlC] Fix binding compilation fo value types (#3551) properly load valuetype arguments of generated setters, using ldarg, instead of ldarga. - fixes #3539 * Update PULL_REQUEST_TEMPLATE.md * Update PULL_REQUEST_TEMPLATE.md * [Android] Fix Label LineHeight (#3452) * fix line height android * Make UAP respect initial LineHeight * update .create-nuget.bat (#3638) * Add Null Check to GetRenderer (#3575) - fix #3563 * Fix 3562 Null Reference Exception (#3576) - fixes #3562 * Fix 3564 Null Reference Exception (#3578) - fixes #3564 * [iOS] AutomationProperty support for cells (#3313) fixes #3296 * [iOS] AutomationProperty support for cells * Add test case to AutomationProperties gallery * [UWP] Fix crash app when create navigation/tabbed page without children pages fixes #3188 (#3514) * [Android] Use height when determining ScaledScreenSize; fixes #3609 (#3641) * [C] Set binding context on Span Gestures (#3639) * [Core] Set binding context on Span Gestures * [Core] Simplify loop setting child binding context - fixes #3524 * Update PULL_REQUEST_TEMPLATE.md * [Android] remove deprecated AndroidUseLatestPlatformSdk (#3672) * [iOS] iPad ActionSheet should always have a Cancel method (#3636) * Add repro for #3049 * [iOS] iPad ActionSheet should always have a Cancel method fixes #3049 * [Android] fixes #3675 - set initial ScrollView Scroll values when RTL (#3676) * [Android] API check for Shadow properties on Button (#3617) fixes #2702 * [Android] API check for Shadow properties on Button * Fix swapped shadow values * [iOS] fixes #3525 - add epsilon for float compare (#3654) * [iOS] fixes #3525 - add epsilon for float compare and make region immutable * [ControlGallery] spread out spans to account for click slop * [ControlGallery] - adjust span slightly for android test * [Core] remove private * Fix text wrapping (#3671) fixes #3634 * [GTK] Fix navigation bar visibility updates (#3651) * Fix partially #3585 (#3592) * Make webkit-sharp.dll.config cross-platform * Update webkit-sharp.dll with missing signals bindings see: https://github.com/ylatuya/webkit-sharp/tree/fluendo * [iOS, UWP] fixes #2894 - Gestures collection changes weren't correctly propagating (#3643) * [iOS, UWP] fixes #2894 - Gestures weren't wiring up to spans in all cases * [Core] remove ChildGestureRecognizers when spans get removed * [iOS] removed incorrect return from null * Fixes #3663 (#3684) * Fix ScrollView Padding issue (#3685) * [WPF] Memory leak when you pop a TabbedPage (#3372) fixes #3267 * Fix [WPF] Memory leak when you pop a TabbedPage * Update ViewRenderer.cs * Update ViewRenderer.cs * [Android,iOS,UWP] Allow Entry CursorPosition/SelectionLength to be set in ctor (#3402) fixes #3343 fixes #3633 * Add repro for #3343 + unit tests * [Core] Disallow negative values for CursorPosition/SelectionLength * [All] CursorPosition/SelectionLength can bindin ctor & clear value fixes #3343 * typo * cleanup * [iOS] Cursor snaps to end * try/catch * [CSS] add more properties (#3466) map new CSS properties: - `color` on `IColorElement` (`ActivityIndicator`, `BoxView`), `ProgressBar` and `Switch` - `row-gap` and `column-gap` on `Grid` - `transform` and `transform-origin` on `VisualElement` - `vertical-align` on `Label` add new XF-specific CSS properties - `-xf-placeholder` and `-xf-placeholder-color` on `Editor`, `Entry`, `SearchBar` - `-xf-max-length` on `InputView` (`Editor` and `Entry`) - `-xf-bar-background-color` and `-xf-bar-text-color` on `NavigationPage` and `TabbedPage` - `-xf-orientation` on `ScrollView` and `StackLayout` - `-xf-horizontal-scroll-bar-visibility` and `-xf-vertical-scroll-bar-visibility` on `ScrollView` - `-xf-min-track-color`, `-xf-max-track-color` and `("-xf-thumb-color` on `Slider` - `-xf-spacing` on `StackLayout` This PR replaces and closes #3276 - fixes #2891 * [iOS] Specify a default size for UISearchBar width if needed (#3635) fixes #3413 fixes #2139 * [Controls] Add reproduction and test case for issue #3413 * [iOS] Don't use max value for iOS UISearchbar breaks on iOS 11.3 * [iOS] Force width value so we can renderer UISearchBar on iOS10 with infinite width * [Controls] Fix spelling and add Manual Review to the test of #3413 * [iOS] Simplify code for UISearchBar width * [iOS] Return always some width from measure the UISearchBar on IOS * [Controls] Add reproduction case for issue #2139 * [UWP] Fixed double set margins in Layouts (#3570) fixes #3398 fixes #3616 * [Android] Support multiple clipping settings in single layout (#3559) * Repro * Fix for API 18+ * [iOS] Unsubscribe CellPropertyChanged when SwitchCellRenderer is disposed (#3518) * [Controls] Add repo of issue #3408 * [iOS] Unsubscribe CellPropertyChanged when cell is disposed * [Controls] Add issue to project * [iOS] Introduce CellPropertyChange to CellTableViewCell to used by all other cell renderers * [Controls] Simplify Issue * [iOS] Remove PropertyChanged that was not used * [Controls] add check for null binding on template, add notes about issues * [Controls] added reference to Android crash * [iOS]Use existing PropertyChanged on ViewCelRenderer * [iOS] Keep the existing override so we don't break users * Update TextCellRenderer.cs * update submodule * 24H Mode (#3701) The 24h mode for the pickerdialog was not working. Version 3.1 was working fine. Here is an updated file. * [UWP] uncomment tests that are now passing for 3188 (#3723) * [UITest] Update Xamarin.UITest nuget package (#3632) * [UITests] Update Xamarin.UITest 2.2.5 * [UITests] Try fix Toolbaritems * [UITest] Update to 2.2.5-1606 * [UITests] Small Fixes and workarounds to make uitest happy * [UITests ] Add delay to 1733 for API28 * [Android] Revert bad merge (#3746) fixes #3705 * [Android, iOS] Fixes layout compression causes (#3698) fixes #3624 * [Android, iOS] Fixes layout compression causes * [iOS] improve UpdateNewElement method * Fix build error hopefully * [UWP] Fixes CollectionChanged events in ListView (#3323) * fixes #3273 * [UWP] Fixes CollectionChanged events in ListView * a wrapped collection is used only if the SourceItem is not ObservableCollection * improve uitest * fixed NRE in empty ListView * added a sortable custom renderer for UItest * minor refactoring * fixed reset of not wrapped collections * addressing comments * [UWP] remove WinRT hack * [UWP] add missing using and cleanup additional resources * [Android] Update Forms to remove API28 deprecated API (#3653) fixes #2128 fixes #3629 * [Build] Update provisioning * [Controls] Ignore deprecated Android API usage * [Android] Remove use of obsolete color usage * [Android] Remove app fragment usage * [android] Rollback changes to EntryCellRenderer * [Android] Better way to get the default color for the label text * [Android] Obsolete message for ContentPage.CreateFragment() * [ControlGallery] - create bitmap from Drawable to use for pixel location * [Android] Use textcolor resource * Update submodule * Fix tests (#3771) * [ControlGallery] Wait for element and add timing to tests * [iOS] Fix NRE on RenderPool * Add TabStop/TabIndex (#2795) * [Core, UWP, Android] support TabStop/TabIndex * removing linq * add iOS / MacOS implementation * add WPF implementation fixes UWP implementation * - addressing comments - improve test - optimizations - added previous tab direction in same tab group * addressing comments * [Android] support tabstop for pickers * - moving shared code to a static class - removed reflection * ITabStop -> changed to internal, renamed, added in to fastRenderers * Update ITabStop to be public * Fix : Binding Icon in ToolbarItem in TabbedPage doesn't refresh (#3761) fixes #3756 * [iOS] Fix NRE on ContextCell (#3714) fixes #3275 * [Controls] Add repo for issue #3275 * [iOS] Fix NRE when no gestures exist on table * [iOS] Null check outside loop * [iOS]Make sure to dispose/unhook when we are removed from UITableView. * Update submodule * [iOS] Don't double dispose ContextActionCell * WPF - Fix Width and Height measurement when GetDesiredSize (#3750) * WPF - Reset Width and Height when GetDesiredSize * Some formatting changes * Add APP directive * [WPF]Fix build * [Android Maps] Make markers available to subclasses (#3751) * Make markers available to subclasses * Fix build * Use Find instead of FirstOrDefault * [UITests] wait for element before querying for it (#3791) * [UITests] wait for element before querying for it * [Controls] generalize and better represent intended behavior * WPF - Fix Local store not persistant when restarting App (#3752) -fixes #3541 * WPF - Fix Local store not persistant when restarting App * Add UITest * [Controls] Add automated UI Test * [UITests] Isolate test 3408 * [UITest] Update Xamarin UITest packages * [UWP] implement Replace without reloading ListView (#3792) -fixes #3788 * [UWP] implement Replace without reloading ListView * [UWP] extract bindingcontext of new item for replace * [iOS] Use UIApperance default color for UISwitch (#3819) * [Controls] Set default color of UISwitch to Red * [iOS] Use default color from Apperance API * [UITests] replace awaits with more reliable WaitForElement (#3835) * [Core] Propagate BindingContext changes to TitleView (#3823) * [Core] Propagate BindingContext changes to TitleView * [Tests] Move UI test to Core Unit Test * [A] do not draw gradient for empty CornerRadius (#3786) Drawing CornerRadius (introduce by #1998) when the CornerRadii are actually 0 causes scaling artifacts on API < 25. This fixes the regression when no CornerRadius is set. Expect blurry border scaling with CornerRadius not empty and API < 25 - fixes #3781 * [Android] Fix WebView.Navigating event, make WebViewClient inheritable (#3780) * Extracted WebViewRenderer.WebClient to FormsWebViewClient, moved SendNavigating call from ShouldOverrideUrlLoading to OnPageStarted * Changed _webViewClient and GetWebViewClient() method to return base class * Changed public things to protected internal * Fix spaces to tabs indentation to match the coding style (#3745) * [Build] Fix merge * Fix #3097 swipe gesture not being handled in VisualElementTracker. (#3098) Fixes #3097 * Update from origin (#9) * [C] VisibilityConverter Trims input (#3581) For CSS purposes, the VisibilityConverter was added, and actually replaced the `Boolean.Parse(str)` call for parsing Visibility. `Boolean.Parse()` trims input, and the converter was not, so this was a regression. This changes Trim() the input, to be fully backward compatible. - fixes #3554 * Ensure ConstructorCountId and TimeId elements are available before querying them (#3588) * For consistency with ResourceDictionary, expose the Source for a StyleSheet (#2589) This would allow previewer/designer/reloader to determine the source of a stylesheet and refresh its content when appropriate. * Revert "For consistency with ResourceDictionary, expose the Source for a StyleSheet (#2589)" This reverts commit f66a72de5b475a6a8387a80e418997b38dc40d4c. * Fix NRE; Ret 0 if Text null (#3594) fixes #3579 * [UWP, WPF] Fixes rendering of the main page (#2896) fixes #2704 * [Core] Ignore Shamehat target when running DesignTimeBuild (#3605) * [XamlC] Fix binding compilation fo value types (#3551) properly load valuetype arguments of generated setters, using ldarg, instead of ldarga. - fixes #3539 * Update PULL_REQUEST_TEMPLATE.md * Update PULL_REQUEST_TEMPLATE.md * [Android] Fix Label LineHeight (#3452) * fix line height android * Make UAP respect initial LineHeight * update .create-nuget.bat (#3638) * Add Null Check to GetRenderer (#3575) - fix #3563 * Fix 3562 Null Reference Exception (#3576) - fixes #3562 * Fix 3564 Null Reference Exception (#3578) - fixes #3564 * [iOS] AutomationProperty support for cells (#3313) fixes #3296 * [iOS] AutomationProperty support for cells * Add test case to AutomationProperties gallery * [UWP] Fix crash app when create navigation/tabbed page without children pages fixes #3188 (#3514) * [Android] Use height when determining ScaledScreenSize; fixes #3609 (#3641) * [C] Set binding context on Span Gestures (#3639) * [Core] Set binding context on Span Gestures * [Core] Simplify loop setting child binding context - fixes #3524 * Update PULL_REQUEST_TEMPLATE.md * [Android] remove deprecated AndroidUseLatestPlatformSdk (#3672) * [iOS] iPad ActionSheet should always have a Cancel method (#3636) * Add repro for #3049 * [iOS] iPad ActionSheet should always have a Cancel method fixes #3049 * [Android] fixes #3675 - set initial ScrollView Scroll values when RTL (#3676) * [Android] API check for Shadow properties on Button (#3617) fixes #2702 * [Android] API check for Shadow properties on Button * Fix swapped shadow values * [iOS] fixes #3525 - add epsilon for float compare (#3654) * [iOS] fixes #3525 - add epsilon for float compare and make region immutable * [ControlGallery] spread out spans to account for click slop * [ControlGallery] - adjust span slightly for android test * [Core] remove private * Fix text wrapping (#3671) fixes #3634 * [GTK] Fix navigation bar visibility updates (#3651) * Fix partially #3585 (#3592) * Make webkit-sharp.dll.config cross-platform * Update webkit-sharp.dll with missing signals bindings see: https://github.com/ylatuya/webkit-sharp/tree/fluendo * [iOS, UWP] fixes #2894 - Gestures collection changes weren't correctly propagating (#3643) * [iOS, UWP] fixes #2894 - Gestures weren't wiring up to spans in all cases * [Core] remove ChildGestureRecognizers when spans get removed * [iOS] removed incorrect return from null * Fixes #3663 (#3684) * Fix ScrollView Padding issue (#3685) * [WPF] Memory leak when you pop a TabbedPage (#3372) fixes #3267 * Fix [WPF] Memory leak when you pop a TabbedPage * Update ViewRenderer.cs * Update ViewRenderer.cs * [Android,iOS,UWP] Allow Entry CursorPosition/SelectionLength to be set in ctor (#3402) fixes #3343 fixes #3633 * Add repro for #3343 + unit tests * [Core] Disallow negative values for CursorPosition/SelectionLength * [All] CursorPosition/SelectionLength can bindin ctor & clear value fixes #3343 * typo * cleanup * [iOS] Cursor snaps to end * try/catch * [CSS] add more properties (#3466) map new CSS properties: - `color` on `IColorElement` (`ActivityIndicator`, `BoxView`), `ProgressBar` and `Switch` - `row-gap` and `column-gap` on `Grid` - `transform` and `transform-origin` on `VisualElement` - `vertical-align` on `Label` add new XF-specific CSS properties - `-xf-placeholder` and `-xf-placeholder-color` on `Editor`, `Entry`, `SearchBar` - `-xf-max-length` on `InputView` (`Editor` and `Entry`) - `-xf-bar-background-color` and `-xf-bar-text-color` on `NavigationPage` and `TabbedPage` - `-xf-orientation` on `ScrollView` and `StackLayout` - `-xf-horizontal-scroll-bar-visibility` and `-xf-vertical-scroll-bar-visibility` on `ScrollView` - `-xf-min-track-color`, `-xf-max-track-color` and `("-xf-thumb-color` on `Slider` - `-xf-spacing` on `StackLayout` This PR replaces and closes #3276 - fixes #2891 * [iOS] Specify a default size for UISearchBar width if needed (#3635) fixes #3413 fixes #2139 * [Controls] Add reproduction and test case for issue #3413 * [iOS] Don't use max value for iOS UISearchbar breaks on iOS 11.3 * [iOS] Force width value so we can renderer UISearchBar on iOS10 with infinite width * [Controls] Fix spelling and add Manual Review to the test of #3413 * [iOS] Simplify code for UISearchBar width * [iOS] Return always some width from measure the UISearchBar on IOS * [Controls] Add reproduction case for issue #2139 * [UWP] Fixed double set margins in Layouts (#3570) fixes #3398 fixes #3616 * [Android] Support multiple clipping settings in single layout (#3559) * Repro * Fix for API 18+ * [iOS] Unsubscribe CellPropertyChanged when SwitchCellRenderer is disposed (#3518) * [Controls] Add repo of issue #3408 * [iOS] Unsubscribe CellPropertyChanged when cell is disposed * [Controls] Add issue to project * [iOS] Introduce CellPropertyChange to CellTableViewCell to used by all other cell renderers * [Controls] Simplify Issue * [iOS] Remove PropertyChanged that was not used * [Controls] add check for null binding on template, add notes about issues * [Controls] added reference to Android crash * [iOS]Use existing PropertyChanged on ViewCelRenderer * [iOS] Keep the existing override so we don't break users * Update TextCellRenderer.cs * update submodule * 24H Mode (#3701) The 24h mode for the pickerdialog was not working. Version 3.1 was working fine. Here is an updated file. * [UWP] uncomment tests that are now passing for 3188 (#3723) * [UITest] Update Xamarin.UITest nuget package (#3632) * [UITests] Update Xamarin.UITest 2.2.5 * [UITests] Try fix Toolbaritems * [UITest] Update to 2.2.5-1606 * [UITests] Small Fixes and workarounds to make uitest happy * [UITests ] Add delay to 1733 for API28 * [Android] Revert bad merge (#3746) fixes #3705 * [Android, iOS] Fixes layout compression causes (#3698) fixes #3624 * [Android, iOS] Fixes layout compression causes * [iOS] improve UpdateNewElement method * Fix build error hopefully * [UWP] Fixes CollectionChanged events in ListView (#3323) * fixes #3273 * [UWP] Fixes CollectionChanged events in ListView * a wrapped collection is used only if the SourceItem is not ObservableCollection * improve uitest * fixed NRE in empty ListView * added a sortable custom renderer for UItest * minor refactoring * fixed reset of not wrapped collections * addressing comments * [UWP] remove WinRT hack * [UWP] add missing using and cleanup additional resources * [Android] Update Forms to remove API28 deprecated API (#3653) fixes #2128 fixes #3629 * [Build] Update provisioning * [Controls] Ignore deprecated Android API usage * [Android] Remove use of obsolete color usage * [Android] Remove app fragment usage * [android] Rollback changes to EntryCellRenderer * [Android] Better way to get the default color for the label text * [Android] Obsolete message for ContentPage.CreateFragment() * [ControlGallery] - create bitmap from Drawable to use for pixel location * [Android] Use textcolor resource * Update submodule * Fix tests (#3771) * [ControlGallery] Wait for element and add timing to tests * [iOS] Fix NRE on RenderPool * Add TabStop/TabIndex (#2795) * [Core, UWP, Android] support TabStop/TabIndex * removing linq * add iOS / MacOS implementation * add WPF implementation fixes UWP implementation * - addressing comments - improve test - optimizations - added previous tab direction in same tab group * addressing comments * [Android] support tabstop for pickers * - moving shared code to a static class - removed reflection * ITabStop -> changed to internal, renamed, added in to fastRenderers * Update ITabStop to be public * Fix : Binding Icon in ToolbarItem in TabbedPage doesn't refresh (#3761) fixes #3756 * [iOS] Fix NRE on ContextCell (#3714) fixes #3275 * [Controls] Add repo for issue #3275 * [iOS] Fix NRE when no gestures exist on table * [iOS] Null check outside loop * [iOS]Make sure to dispose/unhook when we are removed from UITableView. * Update submodule * [iOS] Don't double dispose ContextActionCell * WPF - Fix Width and Height measurement when GetDesiredSize (#3750) * WPF - Reset Width and Height when GetDesiredSize * Some formatting changes * Add APP directive * [WPF]Fix build * [Android Maps] Make markers available to subclasses (#3751) * Make markers available to subclasses * Fix build * Use Find instead of FirstOrDefault * [UITests] wait for element before querying for it (#3791) * [UITests] wait for element before querying for it * [Controls] generalize and better represent intended behavior * WPF - Fix Local store not persistant when restarting App (#3752) -fixes #3541 * WPF - Fix Local store not persistant when restarting App * Add UITest * [Controls] Add automated UI Test * [UITests] Isolate test 3408 * [UITest] Update Xamarin UITest packages * [UWP] implement Replace without reloading ListView (#3792) -fixes #3788 * [UWP] implement Replace without reloading ListView * [UWP] extract bindingcontext of new item for replace * [iOS] Use UIApperance default color for UISwitch (#3819) * [Controls] Set default color of UISwitch to Red * [iOS] Use default color from Apperance API * [UITests] replace awaits with more reliable WaitForElement (#3835) * [Core] Propagate BindingContext changes to TitleView (#3823) * [Core] Propagate BindingContext changes to TitleView * [Tests] Move UI test to Core Unit Test * [A] do not draw gradient for empty CornerRadius (#3786) Drawing CornerRadius (introduce by #1998) when the CornerRadii are actually 0 causes scaling artifacts on API < 25. This fixes the regression when no CornerRadius is set. Expect blurry border scaling with CornerRadius not empty and API < 25 - fixes #3781 * [Android] Fix WebView.Navigating event, make WebViewClient inheritable (#3780) * Extracted WebViewRenderer.WebClient to FormsWebViewClient, moved SendNavigating call from ShouldOverrideUrlLoading to OnPageStarted * Changed _webViewClient and GetWebViewClient() method to return base class * Changed public things to protected internal * Fix spaces to tabs indentation to match the coding style (#3745) * [Build] Fix merge * Fix #3097 swipe gesture not being handled in VisualElementTracker. (#3098) Fixes #3097 * Ensure that the ListViewAdapter is no longer being used by the ListVi… (#3848) fixes #3603 * Ensure that the ListViewAdapter is no longer being used by the ListView before disposing it * Remove `RemoveAllViews` from `Dispose` * Removed touching the InputScope for the IsPassword property * Put back prediction settings * When InputScope was originally numeric, switch to numeric password scope, else we leave the previous logic in place * Fixed small error and added reproduction to gallery app * Fixed issues
2018-11-27 04:10:04 +03:00
using System.Linq;
2016-03-22 23:02:25 +03:00
using System.Threading;
using System.Threading.Tasks;
using Windows.System;
2016-03-22 23:02:25 +03:00
using Windows.UI.Core;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
using Windows.UI.Xaml.Input;
using Windows.UI.Xaml.Media;
VisualStateManager phase 1 (#1405) * 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
2018-01-05 12:11:51 +03:00
using WVisualStateManager = Windows.UI.Xaml.VisualStateManager;
2016-03-22 23:02:25 +03:00
namespace Xamarin.Forms.Platform.UWP
{
/// <summary>
/// An intermediate class for injecting bindings for things the default
/// textbox doesn't allow us to bind/modify
/// </summary>
public class FormsTextBox : TextBox
{
const char ObfuscationCharacter = '●';
[UWP] Changing IsPassword property changed InputScope (#4181) * Update from origin (#8) * [C] VisibilityConverter Trims input (#3581) For CSS purposes, the VisibilityConverter was added, and actually replaced the `Boolean.Parse(str)` call for parsing Visibility. `Boolean.Parse()` trims input, and the converter was not, so this was a regression. This changes Trim() the input, to be fully backward compatible. - fixes #3554 * Ensure ConstructorCountId and TimeId elements are available before querying them (#3588) * For consistency with ResourceDictionary, expose the Source for a StyleSheet (#2589) This would allow previewer/designer/reloader to determine the source of a stylesheet and refresh its content when appropriate. * Revert "For consistency with ResourceDictionary, expose the Source for a StyleSheet (#2589)" This reverts commit f66a72de5b475a6a8387a80e418997b38dc40d4c. * Fix NRE; Ret 0 if Text null (#3594) fixes #3579 * [UWP, WPF] Fixes rendering of the main page (#2896) fixes #2704 * [Core] Ignore Shamehat target when running DesignTimeBuild (#3605) * [XamlC] Fix binding compilation fo value types (#3551) properly load valuetype arguments of generated setters, using ldarg, instead of ldarga. - fixes #3539 * Update PULL_REQUEST_TEMPLATE.md * Update PULL_REQUEST_TEMPLATE.md * [Android] Fix Label LineHeight (#3452) * fix line height android * Make UAP respect initial LineHeight * update .create-nuget.bat (#3638) * Add Null Check to GetRenderer (#3575) - fix #3563 * Fix 3562 Null Reference Exception (#3576) - fixes #3562 * Fix 3564 Null Reference Exception (#3578) - fixes #3564 * [iOS] AutomationProperty support for cells (#3313) fixes #3296 * [iOS] AutomationProperty support for cells * Add test case to AutomationProperties gallery * [UWP] Fix crash app when create navigation/tabbed page without children pages fixes #3188 (#3514) * [Android] Use height when determining ScaledScreenSize; fixes #3609 (#3641) * [C] Set binding context on Span Gestures (#3639) * [Core] Set binding context on Span Gestures * [Core] Simplify loop setting child binding context - fixes #3524 * Update PULL_REQUEST_TEMPLATE.md * [Android] remove deprecated AndroidUseLatestPlatformSdk (#3672) * [iOS] iPad ActionSheet should always have a Cancel method (#3636) * Add repro for #3049 * [iOS] iPad ActionSheet should always have a Cancel method fixes #3049 * [Android] fixes #3675 - set initial ScrollView Scroll values when RTL (#3676) * [Android] API check for Shadow properties on Button (#3617) fixes #2702 * [Android] API check for Shadow properties on Button * Fix swapped shadow values * [iOS] fixes #3525 - add epsilon for float compare (#3654) * [iOS] fixes #3525 - add epsilon for float compare and make region immutable * [ControlGallery] spread out spans to account for click slop * [ControlGallery] - adjust span slightly for android test * [Core] remove private * Fix text wrapping (#3671) fixes #3634 * [GTK] Fix navigation bar visibility updates (#3651) * Fix partially #3585 (#3592) * Make webkit-sharp.dll.config cross-platform * Update webkit-sharp.dll with missing signals bindings see: https://github.com/ylatuya/webkit-sharp/tree/fluendo * [iOS, UWP] fixes #2894 - Gestures collection changes weren't correctly propagating (#3643) * [iOS, UWP] fixes #2894 - Gestures weren't wiring up to spans in all cases * [Core] remove ChildGestureRecognizers when spans get removed * [iOS] removed incorrect return from null * Fixes #3663 (#3684) * Fix ScrollView Padding issue (#3685) * [WPF] Memory leak when you pop a TabbedPage (#3372) fixes #3267 * Fix [WPF] Memory leak when you pop a TabbedPage * Update ViewRenderer.cs * Update ViewRenderer.cs * [Android,iOS,UWP] Allow Entry CursorPosition/SelectionLength to be set in ctor (#3402) fixes #3343 fixes #3633 * Add repro for #3343 + unit tests * [Core] Disallow negative values for CursorPosition/SelectionLength * [All] CursorPosition/SelectionLength can bindin ctor & clear value fixes #3343 * typo * cleanup * [iOS] Cursor snaps to end * try/catch * [CSS] add more properties (#3466) map new CSS properties: - `color` on `IColorElement` (`ActivityIndicator`, `BoxView`), `ProgressBar` and `Switch` - `row-gap` and `column-gap` on `Grid` - `transform` and `transform-origin` on `VisualElement` - `vertical-align` on `Label` add new XF-specific CSS properties - `-xf-placeholder` and `-xf-placeholder-color` on `Editor`, `Entry`, `SearchBar` - `-xf-max-length` on `InputView` (`Editor` and `Entry`) - `-xf-bar-background-color` and `-xf-bar-text-color` on `NavigationPage` and `TabbedPage` - `-xf-orientation` on `ScrollView` and `StackLayout` - `-xf-horizontal-scroll-bar-visibility` and `-xf-vertical-scroll-bar-visibility` on `ScrollView` - `-xf-min-track-color`, `-xf-max-track-color` and `("-xf-thumb-color` on `Slider` - `-xf-spacing` on `StackLayout` This PR replaces and closes #3276 - fixes #2891 * [iOS] Specify a default size for UISearchBar width if needed (#3635) fixes #3413 fixes #2139 * [Controls] Add reproduction and test case for issue #3413 * [iOS] Don't use max value for iOS UISearchbar breaks on iOS 11.3 * [iOS] Force width value so we can renderer UISearchBar on iOS10 with infinite width * [Controls] Fix spelling and add Manual Review to the test of #3413 * [iOS] Simplify code for UISearchBar width * [iOS] Return always some width from measure the UISearchBar on IOS * [Controls] Add reproduction case for issue #2139 * [UWP] Fixed double set margins in Layouts (#3570) fixes #3398 fixes #3616 * [Android] Support multiple clipping settings in single layout (#3559) * Repro * Fix for API 18+ * [iOS] Unsubscribe CellPropertyChanged when SwitchCellRenderer is disposed (#3518) * [Controls] Add repo of issue #3408 * [iOS] Unsubscribe CellPropertyChanged when cell is disposed * [Controls] Add issue to project * [iOS] Introduce CellPropertyChange to CellTableViewCell to used by all other cell renderers * [Controls] Simplify Issue * [iOS] Remove PropertyChanged that was not used * [Controls] add check for null binding on template, add notes about issues * [Controls] added reference to Android crash * [iOS]Use existing PropertyChanged on ViewCelRenderer * [iOS] Keep the existing override so we don't break users * Update TextCellRenderer.cs * update submodule * 24H Mode (#3701) The 24h mode for the pickerdialog was not working. Version 3.1 was working fine. Here is an updated file. * [UWP] uncomment tests that are now passing for 3188 (#3723) * [UITest] Update Xamarin.UITest nuget package (#3632) * [UITests] Update Xamarin.UITest 2.2.5 * [UITests] Try fix Toolbaritems * [UITest] Update to 2.2.5-1606 * [UITests] Small Fixes and workarounds to make uitest happy * [UITests ] Add delay to 1733 for API28 * [Android] Revert bad merge (#3746) fixes #3705 * [Android, iOS] Fixes layout compression causes (#3698) fixes #3624 * [Android, iOS] Fixes layout compression causes * [iOS] improve UpdateNewElement method * Fix build error hopefully * [UWP] Fixes CollectionChanged events in ListView (#3323) * fixes #3273 * [UWP] Fixes CollectionChanged events in ListView * a wrapped collection is used only if the SourceItem is not ObservableCollection * improve uitest * fixed NRE in empty ListView * added a sortable custom renderer for UItest * minor refactoring * fixed reset of not wrapped collections * addressing comments * [UWP] remove WinRT hack * [UWP] add missing using and cleanup additional resources * [Android] Update Forms to remove API28 deprecated API (#3653) fixes #2128 fixes #3629 * [Build] Update provisioning * [Controls] Ignore deprecated Android API usage * [Android] Remove use of obsolete color usage * [Android] Remove app fragment usage * [android] Rollback changes to EntryCellRenderer * [Android] Better way to get the default color for the label text * [Android] Obsolete message for ContentPage.CreateFragment() * [ControlGallery] - create bitmap from Drawable to use for pixel location * [Android] Use textcolor resource * Update submodule * Fix tests (#3771) * [ControlGallery] Wait for element and add timing to tests * [iOS] Fix NRE on RenderPool * Add TabStop/TabIndex (#2795) * [Core, UWP, Android] support TabStop/TabIndex * removing linq * add iOS / MacOS implementation * add WPF implementation fixes UWP implementation * - addressing comments - improve test - optimizations - added previous tab direction in same tab group * addressing comments * [Android] support tabstop for pickers * - moving shared code to a static class - removed reflection * ITabStop -> changed to internal, renamed, added in to fastRenderers * Update ITabStop to be public * Fix : Binding Icon in ToolbarItem in TabbedPage doesn't refresh (#3761) fixes #3756 * [iOS] Fix NRE on ContextCell (#3714) fixes #3275 * [Controls] Add repo for issue #3275 * [iOS] Fix NRE when no gestures exist on table * [iOS] Null check outside loop * [iOS]Make sure to dispose/unhook when we are removed from UITableView. * Update submodule * [iOS] Don't double dispose ContextActionCell * WPF - Fix Width and Height measurement when GetDesiredSize (#3750) * WPF - Reset Width and Height when GetDesiredSize * Some formatting changes * Add APP directive * [WPF]Fix build * [Android Maps] Make markers available to subclasses (#3751) * Make markers available to subclasses * Fix build * Use Find instead of FirstOrDefault * [UITests] wait for element before querying for it (#3791) * [UITests] wait for element before querying for it * [Controls] generalize and better represent intended behavior * WPF - Fix Local store not persistant when restarting App (#3752) -fixes #3541 * WPF - Fix Local store not persistant when restarting App * Add UITest * [Controls] Add automated UI Test * [UITests] Isolate test 3408 * [UITest] Update Xamarin UITest packages * [UWP] implement Replace without reloading ListView (#3792) -fixes #3788 * [UWP] implement Replace without reloading ListView * [UWP] extract bindingcontext of new item for replace * [iOS] Use UIApperance default color for UISwitch (#3819) * [Controls] Set default color of UISwitch to Red * [iOS] Use default color from Apperance API * [UITests] replace awaits with more reliable WaitForElement (#3835) * [Core] Propagate BindingContext changes to TitleView (#3823) * [Core] Propagate BindingContext changes to TitleView * [Tests] Move UI test to Core Unit Test * [A] do not draw gradient for empty CornerRadius (#3786) Drawing CornerRadius (introduce by #1998) when the CornerRadii are actually 0 causes scaling artifacts on API < 25. This fixes the regression when no CornerRadius is set. Expect blurry border scaling with CornerRadius not empty and API < 25 - fixes #3781 * [Android] Fix WebView.Navigating event, make WebViewClient inheritable (#3780) * Extracted WebViewRenderer.WebClient to FormsWebViewClient, moved SendNavigating call from ShouldOverrideUrlLoading to OnPageStarted * Changed _webViewClient and GetWebViewClient() method to return base class * Changed public things to protected internal * Fix spaces to tabs indentation to match the coding style (#3745) * [Build] Fix merge * Fix #3097 swipe gesture not being handled in VisualElementTracker. (#3098) Fixes #3097 * Update from origin (#9) * [C] VisibilityConverter Trims input (#3581) For CSS purposes, the VisibilityConverter was added, and actually replaced the `Boolean.Parse(str)` call for parsing Visibility. `Boolean.Parse()` trims input, and the converter was not, so this was a regression. This changes Trim() the input, to be fully backward compatible. - fixes #3554 * Ensure ConstructorCountId and TimeId elements are available before querying them (#3588) * For consistency with ResourceDictionary, expose the Source for a StyleSheet (#2589) This would allow previewer/designer/reloader to determine the source of a stylesheet and refresh its content when appropriate. * Revert "For consistency with ResourceDictionary, expose the Source for a StyleSheet (#2589)" This reverts commit f66a72de5b475a6a8387a80e418997b38dc40d4c. * Fix NRE; Ret 0 if Text null (#3594) fixes #3579 * [UWP, WPF] Fixes rendering of the main page (#2896) fixes #2704 * [Core] Ignore Shamehat target when running DesignTimeBuild (#3605) * [XamlC] Fix binding compilation fo value types (#3551) properly load valuetype arguments of generated setters, using ldarg, instead of ldarga. - fixes #3539 * Update PULL_REQUEST_TEMPLATE.md * Update PULL_REQUEST_TEMPLATE.md * [Android] Fix Label LineHeight (#3452) * fix line height android * Make UAP respect initial LineHeight * update .create-nuget.bat (#3638) * Add Null Check to GetRenderer (#3575) - fix #3563 * Fix 3562 Null Reference Exception (#3576) - fixes #3562 * Fix 3564 Null Reference Exception (#3578) - fixes #3564 * [iOS] AutomationProperty support for cells (#3313) fixes #3296 * [iOS] AutomationProperty support for cells * Add test case to AutomationProperties gallery * [UWP] Fix crash app when create navigation/tabbed page without children pages fixes #3188 (#3514) * [Android] Use height when determining ScaledScreenSize; fixes #3609 (#3641) * [C] Set binding context on Span Gestures (#3639) * [Core] Set binding context on Span Gestures * [Core] Simplify loop setting child binding context - fixes #3524 * Update PULL_REQUEST_TEMPLATE.md * [Android] remove deprecated AndroidUseLatestPlatformSdk (#3672) * [iOS] iPad ActionSheet should always have a Cancel method (#3636) * Add repro for #3049 * [iOS] iPad ActionSheet should always have a Cancel method fixes #3049 * [Android] fixes #3675 - set initial ScrollView Scroll values when RTL (#3676) * [Android] API check for Shadow properties on Button (#3617) fixes #2702 * [Android] API check for Shadow properties on Button * Fix swapped shadow values * [iOS] fixes #3525 - add epsilon for float compare (#3654) * [iOS] fixes #3525 - add epsilon for float compare and make region immutable * [ControlGallery] spread out spans to account for click slop * [ControlGallery] - adjust span slightly for android test * [Core] remove private * Fix text wrapping (#3671) fixes #3634 * [GTK] Fix navigation bar visibility updates (#3651) * Fix partially #3585 (#3592) * Make webkit-sharp.dll.config cross-platform * Update webkit-sharp.dll with missing signals bindings see: https://github.com/ylatuya/webkit-sharp/tree/fluendo * [iOS, UWP] fixes #2894 - Gestures collection changes weren't correctly propagating (#3643) * [iOS, UWP] fixes #2894 - Gestures weren't wiring up to spans in all cases * [Core] remove ChildGestureRecognizers when spans get removed * [iOS] removed incorrect return from null * Fixes #3663 (#3684) * Fix ScrollView Padding issue (#3685) * [WPF] Memory leak when you pop a TabbedPage (#3372) fixes #3267 * Fix [WPF] Memory leak when you pop a TabbedPage * Update ViewRenderer.cs * Update ViewRenderer.cs * [Android,iOS,UWP] Allow Entry CursorPosition/SelectionLength to be set in ctor (#3402) fixes #3343 fixes #3633 * Add repro for #3343 + unit tests * [Core] Disallow negative values for CursorPosition/SelectionLength * [All] CursorPosition/SelectionLength can bindin ctor & clear value fixes #3343 * typo * cleanup * [iOS] Cursor snaps to end * try/catch * [CSS] add more properties (#3466) map new CSS properties: - `color` on `IColorElement` (`ActivityIndicator`, `BoxView`), `ProgressBar` and `Switch` - `row-gap` and `column-gap` on `Grid` - `transform` and `transform-origin` on `VisualElement` - `vertical-align` on `Label` add new XF-specific CSS properties - `-xf-placeholder` and `-xf-placeholder-color` on `Editor`, `Entry`, `SearchBar` - `-xf-max-length` on `InputView` (`Editor` and `Entry`) - `-xf-bar-background-color` and `-xf-bar-text-color` on `NavigationPage` and `TabbedPage` - `-xf-orientation` on `ScrollView` and `StackLayout` - `-xf-horizontal-scroll-bar-visibility` and `-xf-vertical-scroll-bar-visibility` on `ScrollView` - `-xf-min-track-color`, `-xf-max-track-color` and `("-xf-thumb-color` on `Slider` - `-xf-spacing` on `StackLayout` This PR replaces and closes #3276 - fixes #2891 * [iOS] Specify a default size for UISearchBar width if needed (#3635) fixes #3413 fixes #2139 * [Controls] Add reproduction and test case for issue #3413 * [iOS] Don't use max value for iOS UISearchbar breaks on iOS 11.3 * [iOS] Force width value so we can renderer UISearchBar on iOS10 with infinite width * [Controls] Fix spelling and add Manual Review to the test of #3413 * [iOS] Simplify code for UISearchBar width * [iOS] Return always some width from measure the UISearchBar on IOS * [Controls] Add reproduction case for issue #2139 * [UWP] Fixed double set margins in Layouts (#3570) fixes #3398 fixes #3616 * [Android] Support multiple clipping settings in single layout (#3559) * Repro * Fix for API 18+ * [iOS] Unsubscribe CellPropertyChanged when SwitchCellRenderer is disposed (#3518) * [Controls] Add repo of issue #3408 * [iOS] Unsubscribe CellPropertyChanged when cell is disposed * [Controls] Add issue to project * [iOS] Introduce CellPropertyChange to CellTableViewCell to used by all other cell renderers * [Controls] Simplify Issue * [iOS] Remove PropertyChanged that was not used * [Controls] add check for null binding on template, add notes about issues * [Controls] added reference to Android crash * [iOS]Use existing PropertyChanged on ViewCelRenderer * [iOS] Keep the existing override so we don't break users * Update TextCellRenderer.cs * update submodule * 24H Mode (#3701) The 24h mode for the pickerdialog was not working. Version 3.1 was working fine. Here is an updated file. * [UWP] uncomment tests that are now passing for 3188 (#3723) * [UITest] Update Xamarin.UITest nuget package (#3632) * [UITests] Update Xamarin.UITest 2.2.5 * [UITests] Try fix Toolbaritems * [UITest] Update to 2.2.5-1606 * [UITests] Small Fixes and workarounds to make uitest happy * [UITests ] Add delay to 1733 for API28 * [Android] Revert bad merge (#3746) fixes #3705 * [Android, iOS] Fixes layout compression causes (#3698) fixes #3624 * [Android, iOS] Fixes layout compression causes * [iOS] improve UpdateNewElement method * Fix build error hopefully * [UWP] Fixes CollectionChanged events in ListView (#3323) * fixes #3273 * [UWP] Fixes CollectionChanged events in ListView * a wrapped collection is used only if the SourceItem is not ObservableCollection * improve uitest * fixed NRE in empty ListView * added a sortable custom renderer for UItest * minor refactoring * fixed reset of not wrapped collections * addressing comments * [UWP] remove WinRT hack * [UWP] add missing using and cleanup additional resources * [Android] Update Forms to remove API28 deprecated API (#3653) fixes #2128 fixes #3629 * [Build] Update provisioning * [Controls] Ignore deprecated Android API usage * [Android] Remove use of obsolete color usage * [Android] Remove app fragment usage * [android] Rollback changes to EntryCellRenderer * [Android] Better way to get the default color for the label text * [Android] Obsolete message for ContentPage.CreateFragment() * [ControlGallery] - create bitmap from Drawable to use for pixel location * [Android] Use textcolor resource * Update submodule * Fix tests (#3771) * [ControlGallery] Wait for element and add timing to tests * [iOS] Fix NRE on RenderPool * Add TabStop/TabIndex (#2795) * [Core, UWP, Android] support TabStop/TabIndex * removing linq * add iOS / MacOS implementation * add WPF implementation fixes UWP implementation * - addressing comments - improve test - optimizations - added previous tab direction in same tab group * addressing comments * [Android] support tabstop for pickers * - moving shared code to a static class - removed reflection * ITabStop -> changed to internal, renamed, added in to fastRenderers * Update ITabStop to be public * Fix : Binding Icon in ToolbarItem in TabbedPage doesn't refresh (#3761) fixes #3756 * [iOS] Fix NRE on ContextCell (#3714) fixes #3275 * [Controls] Add repo for issue #3275 * [iOS] Fix NRE when no gestures exist on table * [iOS] Null check outside loop * [iOS]Make sure to dispose/unhook when we are removed from UITableView. * Update submodule * [iOS] Don't double dispose ContextActionCell * WPF - Fix Width and Height measurement when GetDesiredSize (#3750) * WPF - Reset Width and Height when GetDesiredSize * Some formatting changes * Add APP directive * [WPF]Fix build * [Android Maps] Make markers available to subclasses (#3751) * Make markers available to subclasses * Fix build * Use Find instead of FirstOrDefault * [UITests] wait for element before querying for it (#3791) * [UITests] wait for element before querying for it * [Controls] generalize and better represent intended behavior * WPF - Fix Local store not persistant when restarting App (#3752) -fixes #3541 * WPF - Fix Local store not persistant when restarting App * Add UITest * [Controls] Add automated UI Test * [UITests] Isolate test 3408 * [UITest] Update Xamarin UITest packages * [UWP] implement Replace without reloading ListView (#3792) -fixes #3788 * [UWP] implement Replace without reloading ListView * [UWP] extract bindingcontext of new item for replace * [iOS] Use UIApperance default color for UISwitch (#3819) * [Controls] Set default color of UISwitch to Red * [iOS] Use default color from Apperance API * [UITests] replace awaits with more reliable WaitForElement (#3835) * [Core] Propagate BindingContext changes to TitleView (#3823) * [Core] Propagate BindingContext changes to TitleView * [Tests] Move UI test to Core Unit Test * [A] do not draw gradient for empty CornerRadius (#3786) Drawing CornerRadius (introduce by #1998) when the CornerRadii are actually 0 causes scaling artifacts on API < 25. This fixes the regression when no CornerRadius is set. Expect blurry border scaling with CornerRadius not empty and API < 25 - fixes #3781 * [Android] Fix WebView.Navigating event, make WebViewClient inheritable (#3780) * Extracted WebViewRenderer.WebClient to FormsWebViewClient, moved SendNavigating call from ShouldOverrideUrlLoading to OnPageStarted * Changed _webViewClient and GetWebViewClient() method to return base class * Changed public things to protected internal * Fix spaces to tabs indentation to match the coding style (#3745) * [Build] Fix merge * Fix #3097 swipe gesture not being handled in VisualElementTracker. (#3098) Fixes #3097 * Ensure that the ListViewAdapter is no longer being used by the ListVi… (#3848) fixes #3603 * Ensure that the ListViewAdapter is no longer being used by the ListView before disposing it * Remove `RemoveAllViews` from `Dispose` * Removed touching the InputScope for the IsPassword property * Put back prediction settings * When InputScope was originally numeric, switch to numeric password scope, else we leave the previous logic in place * Fixed small error and added reproduction to gallery app * Fixed issues
2018-11-27 04:10:04 +03:00
public static readonly DependencyProperty PlaceholderForegroundBrushProperty =
DependencyProperty.Register(nameof(PlaceholderForegroundBrush), typeof(Brush), typeof(FormsTextBox),
new PropertyMetadata(default(Brush), FocusPropertyChanged));
2016-03-22 23:02:25 +03:00
[UWP] Changing IsPassword property changed InputScope (#4181) * Update from origin (#8) * [C] VisibilityConverter Trims input (#3581) For CSS purposes, the VisibilityConverter was added, and actually replaced the `Boolean.Parse(str)` call for parsing Visibility. `Boolean.Parse()` trims input, and the converter was not, so this was a regression. This changes Trim() the input, to be fully backward compatible. - fixes #3554 * Ensure ConstructorCountId and TimeId elements are available before querying them (#3588) * For consistency with ResourceDictionary, expose the Source for a StyleSheet (#2589) This would allow previewer/designer/reloader to determine the source of a stylesheet and refresh its content when appropriate. * Revert "For consistency with ResourceDictionary, expose the Source for a StyleSheet (#2589)" This reverts commit f66a72de5b475a6a8387a80e418997b38dc40d4c. * Fix NRE; Ret 0 if Text null (#3594) fixes #3579 * [UWP, WPF] Fixes rendering of the main page (#2896) fixes #2704 * [Core] Ignore Shamehat target when running DesignTimeBuild (#3605) * [XamlC] Fix binding compilation fo value types (#3551) properly load valuetype arguments of generated setters, using ldarg, instead of ldarga. - fixes #3539 * Update PULL_REQUEST_TEMPLATE.md * Update PULL_REQUEST_TEMPLATE.md * [Android] Fix Label LineHeight (#3452) * fix line height android * Make UAP respect initial LineHeight * update .create-nuget.bat (#3638) * Add Null Check to GetRenderer (#3575) - fix #3563 * Fix 3562 Null Reference Exception (#3576) - fixes #3562 * Fix 3564 Null Reference Exception (#3578) - fixes #3564 * [iOS] AutomationProperty support for cells (#3313) fixes #3296 * [iOS] AutomationProperty support for cells * Add test case to AutomationProperties gallery * [UWP] Fix crash app when create navigation/tabbed page without children pages fixes #3188 (#3514) * [Android] Use height when determining ScaledScreenSize; fixes #3609 (#3641) * [C] Set binding context on Span Gestures (#3639) * [Core] Set binding context on Span Gestures * [Core] Simplify loop setting child binding context - fixes #3524 * Update PULL_REQUEST_TEMPLATE.md * [Android] remove deprecated AndroidUseLatestPlatformSdk (#3672) * [iOS] iPad ActionSheet should always have a Cancel method (#3636) * Add repro for #3049 * [iOS] iPad ActionSheet should always have a Cancel method fixes #3049 * [Android] fixes #3675 - set initial ScrollView Scroll values when RTL (#3676) * [Android] API check for Shadow properties on Button (#3617) fixes #2702 * [Android] API check for Shadow properties on Button * Fix swapped shadow values * [iOS] fixes #3525 - add epsilon for float compare (#3654) * [iOS] fixes #3525 - add epsilon for float compare and make region immutable * [ControlGallery] spread out spans to account for click slop * [ControlGallery] - adjust span slightly for android test * [Core] remove private * Fix text wrapping (#3671) fixes #3634 * [GTK] Fix navigation bar visibility updates (#3651) * Fix partially #3585 (#3592) * Make webkit-sharp.dll.config cross-platform * Update webkit-sharp.dll with missing signals bindings see: https://github.com/ylatuya/webkit-sharp/tree/fluendo * [iOS, UWP] fixes #2894 - Gestures collection changes weren't correctly propagating (#3643) * [iOS, UWP] fixes #2894 - Gestures weren't wiring up to spans in all cases * [Core] remove ChildGestureRecognizers when spans get removed * [iOS] removed incorrect return from null * Fixes #3663 (#3684) * Fix ScrollView Padding issue (#3685) * [WPF] Memory leak when you pop a TabbedPage (#3372) fixes #3267 * Fix [WPF] Memory leak when you pop a TabbedPage * Update ViewRenderer.cs * Update ViewRenderer.cs * [Android,iOS,UWP] Allow Entry CursorPosition/SelectionLength to be set in ctor (#3402) fixes #3343 fixes #3633 * Add repro for #3343 + unit tests * [Core] Disallow negative values for CursorPosition/SelectionLength * [All] CursorPosition/SelectionLength can bindin ctor & clear value fixes #3343 * typo * cleanup * [iOS] Cursor snaps to end * try/catch * [CSS] add more properties (#3466) map new CSS properties: - `color` on `IColorElement` (`ActivityIndicator`, `BoxView`), `ProgressBar` and `Switch` - `row-gap` and `column-gap` on `Grid` - `transform` and `transform-origin` on `VisualElement` - `vertical-align` on `Label` add new XF-specific CSS properties - `-xf-placeholder` and `-xf-placeholder-color` on `Editor`, `Entry`, `SearchBar` - `-xf-max-length` on `InputView` (`Editor` and `Entry`) - `-xf-bar-background-color` and `-xf-bar-text-color` on `NavigationPage` and `TabbedPage` - `-xf-orientation` on `ScrollView` and `StackLayout` - `-xf-horizontal-scroll-bar-visibility` and `-xf-vertical-scroll-bar-visibility` on `ScrollView` - `-xf-min-track-color`, `-xf-max-track-color` and `("-xf-thumb-color` on `Slider` - `-xf-spacing` on `StackLayout` This PR replaces and closes #3276 - fixes #2891 * [iOS] Specify a default size for UISearchBar width if needed (#3635) fixes #3413 fixes #2139 * [Controls] Add reproduction and test case for issue #3413 * [iOS] Don't use max value for iOS UISearchbar breaks on iOS 11.3 * [iOS] Force width value so we can renderer UISearchBar on iOS10 with infinite width * [Controls] Fix spelling and add Manual Review to the test of #3413 * [iOS] Simplify code for UISearchBar width * [iOS] Return always some width from measure the UISearchBar on IOS * [Controls] Add reproduction case for issue #2139 * [UWP] Fixed double set margins in Layouts (#3570) fixes #3398 fixes #3616 * [Android] Support multiple clipping settings in single layout (#3559) * Repro * Fix for API 18+ * [iOS] Unsubscribe CellPropertyChanged when SwitchCellRenderer is disposed (#3518) * [Controls] Add repo of issue #3408 * [iOS] Unsubscribe CellPropertyChanged when cell is disposed * [Controls] Add issue to project * [iOS] Introduce CellPropertyChange to CellTableViewCell to used by all other cell renderers * [Controls] Simplify Issue * [iOS] Remove PropertyChanged that was not used * [Controls] add check for null binding on template, add notes about issues * [Controls] added reference to Android crash * [iOS]Use existing PropertyChanged on ViewCelRenderer * [iOS] Keep the existing override so we don't break users * Update TextCellRenderer.cs * update submodule * 24H Mode (#3701) The 24h mode for the pickerdialog was not working. Version 3.1 was working fine. Here is an updated file. * [UWP] uncomment tests that are now passing for 3188 (#3723) * [UITest] Update Xamarin.UITest nuget package (#3632) * [UITests] Update Xamarin.UITest 2.2.5 * [UITests] Try fix Toolbaritems * [UITest] Update to 2.2.5-1606 * [UITests] Small Fixes and workarounds to make uitest happy * [UITests ] Add delay to 1733 for API28 * [Android] Revert bad merge (#3746) fixes #3705 * [Android, iOS] Fixes layout compression causes (#3698) fixes #3624 * [Android, iOS] Fixes layout compression causes * [iOS] improve UpdateNewElement method * Fix build error hopefully * [UWP] Fixes CollectionChanged events in ListView (#3323) * fixes #3273 * [UWP] Fixes CollectionChanged events in ListView * a wrapped collection is used only if the SourceItem is not ObservableCollection * improve uitest * fixed NRE in empty ListView * added a sortable custom renderer for UItest * minor refactoring * fixed reset of not wrapped collections * addressing comments * [UWP] remove WinRT hack * [UWP] add missing using and cleanup additional resources * [Android] Update Forms to remove API28 deprecated API (#3653) fixes #2128 fixes #3629 * [Build] Update provisioning * [Controls] Ignore deprecated Android API usage * [Android] Remove use of obsolete color usage * [Android] Remove app fragment usage * [android] Rollback changes to EntryCellRenderer * [Android] Better way to get the default color for the label text * [Android] Obsolete message for ContentPage.CreateFragment() * [ControlGallery] - create bitmap from Drawable to use for pixel location * [Android] Use textcolor resource * Update submodule * Fix tests (#3771) * [ControlGallery] Wait for element and add timing to tests * [iOS] Fix NRE on RenderPool * Add TabStop/TabIndex (#2795) * [Core, UWP, Android] support TabStop/TabIndex * removing linq * add iOS / MacOS implementation * add WPF implementation fixes UWP implementation * - addressing comments - improve test - optimizations - added previous tab direction in same tab group * addressing comments * [Android] support tabstop for pickers * - moving shared code to a static class - removed reflection * ITabStop -> changed to internal, renamed, added in to fastRenderers * Update ITabStop to be public * Fix : Binding Icon in ToolbarItem in TabbedPage doesn't refresh (#3761) fixes #3756 * [iOS] Fix NRE on ContextCell (#3714) fixes #3275 * [Controls] Add repo for issue #3275 * [iOS] Fix NRE when no gestures exist on table * [iOS] Null check outside loop * [iOS]Make sure to dispose/unhook when we are removed from UITableView. * Update submodule * [iOS] Don't double dispose ContextActionCell * WPF - Fix Width and Height measurement when GetDesiredSize (#3750) * WPF - Reset Width and Height when GetDesiredSize * Some formatting changes * Add APP directive * [WPF]Fix build * [Android Maps] Make markers available to subclasses (#3751) * Make markers available to subclasses * Fix build * Use Find instead of FirstOrDefault * [UITests] wait for element before querying for it (#3791) * [UITests] wait for element before querying for it * [Controls] generalize and better represent intended behavior * WPF - Fix Local store not persistant when restarting App (#3752) -fixes #3541 * WPF - Fix Local store not persistant when restarting App * Add UITest * [Controls] Add automated UI Test * [UITests] Isolate test 3408 * [UITest] Update Xamarin UITest packages * [UWP] implement Replace without reloading ListView (#3792) -fixes #3788 * [UWP] implement Replace without reloading ListView * [UWP] extract bindingcontext of new item for replace * [iOS] Use UIApperance default color for UISwitch (#3819) * [Controls] Set default color of UISwitch to Red * [iOS] Use default color from Apperance API * [UITests] replace awaits with more reliable WaitForElement (#3835) * [Core] Propagate BindingContext changes to TitleView (#3823) * [Core] Propagate BindingContext changes to TitleView * [Tests] Move UI test to Core Unit Test * [A] do not draw gradient for empty CornerRadius (#3786) Drawing CornerRadius (introduce by #1998) when the CornerRadii are actually 0 causes scaling artifacts on API < 25. This fixes the regression when no CornerRadius is set. Expect blurry border scaling with CornerRadius not empty and API < 25 - fixes #3781 * [Android] Fix WebView.Navigating event, make WebViewClient inheritable (#3780) * Extracted WebViewRenderer.WebClient to FormsWebViewClient, moved SendNavigating call from ShouldOverrideUrlLoading to OnPageStarted * Changed _webViewClient and GetWebViewClient() method to return base class * Changed public things to protected internal * Fix spaces to tabs indentation to match the coding style (#3745) * [Build] Fix merge * Fix #3097 swipe gesture not being handled in VisualElementTracker. (#3098) Fixes #3097 * Update from origin (#9) * [C] VisibilityConverter Trims input (#3581) For CSS purposes, the VisibilityConverter was added, and actually replaced the `Boolean.Parse(str)` call for parsing Visibility. `Boolean.Parse()` trims input, and the converter was not, so this was a regression. This changes Trim() the input, to be fully backward compatible. - fixes #3554 * Ensure ConstructorCountId and TimeId elements are available before querying them (#3588) * For consistency with ResourceDictionary, expose the Source for a StyleSheet (#2589) This would allow previewer/designer/reloader to determine the source of a stylesheet and refresh its content when appropriate. * Revert "For consistency with ResourceDictionary, expose the Source for a StyleSheet (#2589)" This reverts commit f66a72de5b475a6a8387a80e418997b38dc40d4c. * Fix NRE; Ret 0 if Text null (#3594) fixes #3579 * [UWP, WPF] Fixes rendering of the main page (#2896) fixes #2704 * [Core] Ignore Shamehat target when running DesignTimeBuild (#3605) * [XamlC] Fix binding compilation fo value types (#3551) properly load valuetype arguments of generated setters, using ldarg, instead of ldarga. - fixes #3539 * Update PULL_REQUEST_TEMPLATE.md * Update PULL_REQUEST_TEMPLATE.md * [Android] Fix Label LineHeight (#3452) * fix line height android * Make UAP respect initial LineHeight * update .create-nuget.bat (#3638) * Add Null Check to GetRenderer (#3575) - fix #3563 * Fix 3562 Null Reference Exception (#3576) - fixes #3562 * Fix 3564 Null Reference Exception (#3578) - fixes #3564 * [iOS] AutomationProperty support for cells (#3313) fixes #3296 * [iOS] AutomationProperty support for cells * Add test case to AutomationProperties gallery * [UWP] Fix crash app when create navigation/tabbed page without children pages fixes #3188 (#3514) * [Android] Use height when determining ScaledScreenSize; fixes #3609 (#3641) * [C] Set binding context on Span Gestures (#3639) * [Core] Set binding context on Span Gestures * [Core] Simplify loop setting child binding context - fixes #3524 * Update PULL_REQUEST_TEMPLATE.md * [Android] remove deprecated AndroidUseLatestPlatformSdk (#3672) * [iOS] iPad ActionSheet should always have a Cancel method (#3636) * Add repro for #3049 * [iOS] iPad ActionSheet should always have a Cancel method fixes #3049 * [Android] fixes #3675 - set initial ScrollView Scroll values when RTL (#3676) * [Android] API check for Shadow properties on Button (#3617) fixes #2702 * [Android] API check for Shadow properties on Button * Fix swapped shadow values * [iOS] fixes #3525 - add epsilon for float compare (#3654) * [iOS] fixes #3525 - add epsilon for float compare and make region immutable * [ControlGallery] spread out spans to account for click slop * [ControlGallery] - adjust span slightly for android test * [Core] remove private * Fix text wrapping (#3671) fixes #3634 * [GTK] Fix navigation bar visibility updates (#3651) * Fix partially #3585 (#3592) * Make webkit-sharp.dll.config cross-platform * Update webkit-sharp.dll with missing signals bindings see: https://github.com/ylatuya/webkit-sharp/tree/fluendo * [iOS, UWP] fixes #2894 - Gestures collection changes weren't correctly propagating (#3643) * [iOS, UWP] fixes #2894 - Gestures weren't wiring up to spans in all cases * [Core] remove ChildGestureRecognizers when spans get removed * [iOS] removed incorrect return from null * Fixes #3663 (#3684) * Fix ScrollView Padding issue (#3685) * [WPF] Memory leak when you pop a TabbedPage (#3372) fixes #3267 * Fix [WPF] Memory leak when you pop a TabbedPage * Update ViewRenderer.cs * Update ViewRenderer.cs * [Android,iOS,UWP] Allow Entry CursorPosition/SelectionLength to be set in ctor (#3402) fixes #3343 fixes #3633 * Add repro for #3343 + unit tests * [Core] Disallow negative values for CursorPosition/SelectionLength * [All] CursorPosition/SelectionLength can bindin ctor & clear value fixes #3343 * typo * cleanup * [iOS] Cursor snaps to end * try/catch * [CSS] add more properties (#3466) map new CSS properties: - `color` on `IColorElement` (`ActivityIndicator`, `BoxView`), `ProgressBar` and `Switch` - `row-gap` and `column-gap` on `Grid` - `transform` and `transform-origin` on `VisualElement` - `vertical-align` on `Label` add new XF-specific CSS properties - `-xf-placeholder` and `-xf-placeholder-color` on `Editor`, `Entry`, `SearchBar` - `-xf-max-length` on `InputView` (`Editor` and `Entry`) - `-xf-bar-background-color` and `-xf-bar-text-color` on `NavigationPage` and `TabbedPage` - `-xf-orientation` on `ScrollView` and `StackLayout` - `-xf-horizontal-scroll-bar-visibility` and `-xf-vertical-scroll-bar-visibility` on `ScrollView` - `-xf-min-track-color`, `-xf-max-track-color` and `("-xf-thumb-color` on `Slider` - `-xf-spacing` on `StackLayout` This PR replaces and closes #3276 - fixes #2891 * [iOS] Specify a default size for UISearchBar width if needed (#3635) fixes #3413 fixes #2139 * [Controls] Add reproduction and test case for issue #3413 * [iOS] Don't use max value for iOS UISearchbar breaks on iOS 11.3 * [iOS] Force width value so we can renderer UISearchBar on iOS10 with infinite width * [Controls] Fix spelling and add Manual Review to the test of #3413 * [iOS] Simplify code for UISearchBar width * [iOS] Return always some width from measure the UISearchBar on IOS * [Controls] Add reproduction case for issue #2139 * [UWP] Fixed double set margins in Layouts (#3570) fixes #3398 fixes #3616 * [Android] Support multiple clipping settings in single layout (#3559) * Repro * Fix for API 18+ * [iOS] Unsubscribe CellPropertyChanged when SwitchCellRenderer is disposed (#3518) * [Controls] Add repo of issue #3408 * [iOS] Unsubscribe CellPropertyChanged when cell is disposed * [Controls] Add issue to project * [iOS] Introduce CellPropertyChange to CellTableViewCell to used by all other cell renderers * [Controls] Simplify Issue * [iOS] Remove PropertyChanged that was not used * [Controls] add check for null binding on template, add notes about issues * [Controls] added reference to Android crash * [iOS]Use existing PropertyChanged on ViewCelRenderer * [iOS] Keep the existing override so we don't break users * Update TextCellRenderer.cs * update submodule * 24H Mode (#3701) The 24h mode for the pickerdialog was not working. Version 3.1 was working fine. Here is an updated file. * [UWP] uncomment tests that are now passing for 3188 (#3723) * [UITest] Update Xamarin.UITest nuget package (#3632) * [UITests] Update Xamarin.UITest 2.2.5 * [UITests] Try fix Toolbaritems * [UITest] Update to 2.2.5-1606 * [UITests] Small Fixes and workarounds to make uitest happy * [UITests ] Add delay to 1733 for API28 * [Android] Revert bad merge (#3746) fixes #3705 * [Android, iOS] Fixes layout compression causes (#3698) fixes #3624 * [Android, iOS] Fixes layout compression causes * [iOS] improve UpdateNewElement method * Fix build error hopefully * [UWP] Fixes CollectionChanged events in ListView (#3323) * fixes #3273 * [UWP] Fixes CollectionChanged events in ListView * a wrapped collection is used only if the SourceItem is not ObservableCollection * improve uitest * fixed NRE in empty ListView * added a sortable custom renderer for UItest * minor refactoring * fixed reset of not wrapped collections * addressing comments * [UWP] remove WinRT hack * [UWP] add missing using and cleanup additional resources * [Android] Update Forms to remove API28 deprecated API (#3653) fixes #2128 fixes #3629 * [Build] Update provisioning * [Controls] Ignore deprecated Android API usage * [Android] Remove use of obsolete color usage * [Android] Remove app fragment usage * [android] Rollback changes to EntryCellRenderer * [Android] Better way to get the default color for the label text * [Android] Obsolete message for ContentPage.CreateFragment() * [ControlGallery] - create bitmap from Drawable to use for pixel location * [Android] Use textcolor resource * Update submodule * Fix tests (#3771) * [ControlGallery] Wait for element and add timing to tests * [iOS] Fix NRE on RenderPool * Add TabStop/TabIndex (#2795) * [Core, UWP, Android] support TabStop/TabIndex * removing linq * add iOS / MacOS implementation * add WPF implementation fixes UWP implementation * - addressing comments - improve test - optimizations - added previous tab direction in same tab group * addressing comments * [Android] support tabstop for pickers * - moving shared code to a static class - removed reflection * ITabStop -> changed to internal, renamed, added in to fastRenderers * Update ITabStop to be public * Fix : Binding Icon in ToolbarItem in TabbedPage doesn't refresh (#3761) fixes #3756 * [iOS] Fix NRE on ContextCell (#3714) fixes #3275 * [Controls] Add repo for issue #3275 * [iOS] Fix NRE when no gestures exist on table * [iOS] Null check outside loop * [iOS]Make sure to dispose/unhook when we are removed from UITableView. * Update submodule * [iOS] Don't double dispose ContextActionCell * WPF - Fix Width and Height measurement when GetDesiredSize (#3750) * WPF - Reset Width and Height when GetDesiredSize * Some formatting changes * Add APP directive * [WPF]Fix build * [Android Maps] Make markers available to subclasses (#3751) * Make markers available to subclasses * Fix build * Use Find instead of FirstOrDefault * [UITests] wait for element before querying for it (#3791) * [UITests] wait for element before querying for it * [Controls] generalize and better represent intended behavior * WPF - Fix Local store not persistant when restarting App (#3752) -fixes #3541 * WPF - Fix Local store not persistant when restarting App * Add UITest * [Controls] Add automated UI Test * [UITests] Isolate test 3408 * [UITest] Update Xamarin UITest packages * [UWP] implement Replace without reloading ListView (#3792) -fixes #3788 * [UWP] implement Replace without reloading ListView * [UWP] extract bindingcontext of new item for replace * [iOS] Use UIApperance default color for UISwitch (#3819) * [Controls] Set default color of UISwitch to Red * [iOS] Use default color from Apperance API * [UITests] replace awaits with more reliable WaitForElement (#3835) * [Core] Propagate BindingContext changes to TitleView (#3823) * [Core] Propagate BindingContext changes to TitleView * [Tests] Move UI test to Core Unit Test * [A] do not draw gradient for empty CornerRadius (#3786) Drawing CornerRadius (introduce by #1998) when the CornerRadii are actually 0 causes scaling artifacts on API < 25. This fixes the regression when no CornerRadius is set. Expect blurry border scaling with CornerRadius not empty and API < 25 - fixes #3781 * [Android] Fix WebView.Navigating event, make WebViewClient inheritable (#3780) * Extracted WebViewRenderer.WebClient to FormsWebViewClient, moved SendNavigating call from ShouldOverrideUrlLoading to OnPageStarted * Changed _webViewClient and GetWebViewClient() method to return base class * Changed public things to protected internal * Fix spaces to tabs indentation to match the coding style (#3745) * [Build] Fix merge * Fix #3097 swipe gesture not being handled in VisualElementTracker. (#3098) Fixes #3097 * Ensure that the ListViewAdapter is no longer being used by the ListVi… (#3848) fixes #3603 * Ensure that the ListViewAdapter is no longer being used by the ListView before disposing it * Remove `RemoveAllViews` from `Dispose` * Removed touching the InputScope for the IsPassword property * Put back prediction settings * When InputScope was originally numeric, switch to numeric password scope, else we leave the previous logic in place * Fixed small error and added reproduction to gallery app * Fixed issues
2018-11-27 04:10:04 +03:00
public static readonly DependencyProperty PlaceholderForegroundFocusBrushProperty =
DependencyProperty.Register(nameof(PlaceholderForegroundFocusBrush), typeof(Brush), typeof(FormsTextBox),
new PropertyMetadata(default(Brush), FocusPropertyChanged));
2016-03-22 23:02:25 +03:00
[UWP] Changing IsPassword property changed InputScope (#4181) * Update from origin (#8) * [C] VisibilityConverter Trims input (#3581) For CSS purposes, the VisibilityConverter was added, and actually replaced the `Boolean.Parse(str)` call for parsing Visibility. `Boolean.Parse()` trims input, and the converter was not, so this was a regression. This changes Trim() the input, to be fully backward compatible. - fixes #3554 * Ensure ConstructorCountId and TimeId elements are available before querying them (#3588) * For consistency with ResourceDictionary, expose the Source for a StyleSheet (#2589) This would allow previewer/designer/reloader to determine the source of a stylesheet and refresh its content when appropriate. * Revert "For consistency with ResourceDictionary, expose the Source for a StyleSheet (#2589)" This reverts commit f66a72de5b475a6a8387a80e418997b38dc40d4c. * Fix NRE; Ret 0 if Text null (#3594) fixes #3579 * [UWP, WPF] Fixes rendering of the main page (#2896) fixes #2704 * [Core] Ignore Shamehat target when running DesignTimeBuild (#3605) * [XamlC] Fix binding compilation fo value types (#3551) properly load valuetype arguments of generated setters, using ldarg, instead of ldarga. - fixes #3539 * Update PULL_REQUEST_TEMPLATE.md * Update PULL_REQUEST_TEMPLATE.md * [Android] Fix Label LineHeight (#3452) * fix line height android * Make UAP respect initial LineHeight * update .create-nuget.bat (#3638) * Add Null Check to GetRenderer (#3575) - fix #3563 * Fix 3562 Null Reference Exception (#3576) - fixes #3562 * Fix 3564 Null Reference Exception (#3578) - fixes #3564 * [iOS] AutomationProperty support for cells (#3313) fixes #3296 * [iOS] AutomationProperty support for cells * Add test case to AutomationProperties gallery * [UWP] Fix crash app when create navigation/tabbed page without children pages fixes #3188 (#3514) * [Android] Use height when determining ScaledScreenSize; fixes #3609 (#3641) * [C] Set binding context on Span Gestures (#3639) * [Core] Set binding context on Span Gestures * [Core] Simplify loop setting child binding context - fixes #3524 * Update PULL_REQUEST_TEMPLATE.md * [Android] remove deprecated AndroidUseLatestPlatformSdk (#3672) * [iOS] iPad ActionSheet should always have a Cancel method (#3636) * Add repro for #3049 * [iOS] iPad ActionSheet should always have a Cancel method fixes #3049 * [Android] fixes #3675 - set initial ScrollView Scroll values when RTL (#3676) * [Android] API check for Shadow properties on Button (#3617) fixes #2702 * [Android] API check for Shadow properties on Button * Fix swapped shadow values * [iOS] fixes #3525 - add epsilon for float compare (#3654) * [iOS] fixes #3525 - add epsilon for float compare and make region immutable * [ControlGallery] spread out spans to account for click slop * [ControlGallery] - adjust span slightly for android test * [Core] remove private * Fix text wrapping (#3671) fixes #3634 * [GTK] Fix navigation bar visibility updates (#3651) * Fix partially #3585 (#3592) * Make webkit-sharp.dll.config cross-platform * Update webkit-sharp.dll with missing signals bindings see: https://github.com/ylatuya/webkit-sharp/tree/fluendo * [iOS, UWP] fixes #2894 - Gestures collection changes weren't correctly propagating (#3643) * [iOS, UWP] fixes #2894 - Gestures weren't wiring up to spans in all cases * [Core] remove ChildGestureRecognizers when spans get removed * [iOS] removed incorrect return from null * Fixes #3663 (#3684) * Fix ScrollView Padding issue (#3685) * [WPF] Memory leak when you pop a TabbedPage (#3372) fixes #3267 * Fix [WPF] Memory leak when you pop a TabbedPage * Update ViewRenderer.cs * Update ViewRenderer.cs * [Android,iOS,UWP] Allow Entry CursorPosition/SelectionLength to be set in ctor (#3402) fixes #3343 fixes #3633 * Add repro for #3343 + unit tests * [Core] Disallow negative values for CursorPosition/SelectionLength * [All] CursorPosition/SelectionLength can bindin ctor & clear value fixes #3343 * typo * cleanup * [iOS] Cursor snaps to end * try/catch * [CSS] add more properties (#3466) map new CSS properties: - `color` on `IColorElement` (`ActivityIndicator`, `BoxView`), `ProgressBar` and `Switch` - `row-gap` and `column-gap` on `Grid` - `transform` and `transform-origin` on `VisualElement` - `vertical-align` on `Label` add new XF-specific CSS properties - `-xf-placeholder` and `-xf-placeholder-color` on `Editor`, `Entry`, `SearchBar` - `-xf-max-length` on `InputView` (`Editor` and `Entry`) - `-xf-bar-background-color` and `-xf-bar-text-color` on `NavigationPage` and `TabbedPage` - `-xf-orientation` on `ScrollView` and `StackLayout` - `-xf-horizontal-scroll-bar-visibility` and `-xf-vertical-scroll-bar-visibility` on `ScrollView` - `-xf-min-track-color`, `-xf-max-track-color` and `("-xf-thumb-color` on `Slider` - `-xf-spacing` on `StackLayout` This PR replaces and closes #3276 - fixes #2891 * [iOS] Specify a default size for UISearchBar width if needed (#3635) fixes #3413 fixes #2139 * [Controls] Add reproduction and test case for issue #3413 * [iOS] Don't use max value for iOS UISearchbar breaks on iOS 11.3 * [iOS] Force width value so we can renderer UISearchBar on iOS10 with infinite width * [Controls] Fix spelling and add Manual Review to the test of #3413 * [iOS] Simplify code for UISearchBar width * [iOS] Return always some width from measure the UISearchBar on IOS * [Controls] Add reproduction case for issue #2139 * [UWP] Fixed double set margins in Layouts (#3570) fixes #3398 fixes #3616 * [Android] Support multiple clipping settings in single layout (#3559) * Repro * Fix for API 18+ * [iOS] Unsubscribe CellPropertyChanged when SwitchCellRenderer is disposed (#3518) * [Controls] Add repo of issue #3408 * [iOS] Unsubscribe CellPropertyChanged when cell is disposed * [Controls] Add issue to project * [iOS] Introduce CellPropertyChange to CellTableViewCell to used by all other cell renderers * [Controls] Simplify Issue * [iOS] Remove PropertyChanged that was not used * [Controls] add check for null binding on template, add notes about issues * [Controls] added reference to Android crash * [iOS]Use existing PropertyChanged on ViewCelRenderer * [iOS] Keep the existing override so we don't break users * Update TextCellRenderer.cs * update submodule * 24H Mode (#3701) The 24h mode for the pickerdialog was not working. Version 3.1 was working fine. Here is an updated file. * [UWP] uncomment tests that are now passing for 3188 (#3723) * [UITest] Update Xamarin.UITest nuget package (#3632) * [UITests] Update Xamarin.UITest 2.2.5 * [UITests] Try fix Toolbaritems * [UITest] Update to 2.2.5-1606 * [UITests] Small Fixes and workarounds to make uitest happy * [UITests ] Add delay to 1733 for API28 * [Android] Revert bad merge (#3746) fixes #3705 * [Android, iOS] Fixes layout compression causes (#3698) fixes #3624 * [Android, iOS] Fixes layout compression causes * [iOS] improve UpdateNewElement method * Fix build error hopefully * [UWP] Fixes CollectionChanged events in ListView (#3323) * fixes #3273 * [UWP] Fixes CollectionChanged events in ListView * a wrapped collection is used only if the SourceItem is not ObservableCollection * improve uitest * fixed NRE in empty ListView * added a sortable custom renderer for UItest * minor refactoring * fixed reset of not wrapped collections * addressing comments * [UWP] remove WinRT hack * [UWP] add missing using and cleanup additional resources * [Android] Update Forms to remove API28 deprecated API (#3653) fixes #2128 fixes #3629 * [Build] Update provisioning * [Controls] Ignore deprecated Android API usage * [Android] Remove use of obsolete color usage * [Android] Remove app fragment usage * [android] Rollback changes to EntryCellRenderer * [Android] Better way to get the default color for the label text * [Android] Obsolete message for ContentPage.CreateFragment() * [ControlGallery] - create bitmap from Drawable to use for pixel location * [Android] Use textcolor resource * Update submodule * Fix tests (#3771) * [ControlGallery] Wait for element and add timing to tests * [iOS] Fix NRE on RenderPool * Add TabStop/TabIndex (#2795) * [Core, UWP, Android] support TabStop/TabIndex * removing linq * add iOS / MacOS implementation * add WPF implementation fixes UWP implementation * - addressing comments - improve test - optimizations - added previous tab direction in same tab group * addressing comments * [Android] support tabstop for pickers * - moving shared code to a static class - removed reflection * ITabStop -> changed to internal, renamed, added in to fastRenderers * Update ITabStop to be public * Fix : Binding Icon in ToolbarItem in TabbedPage doesn't refresh (#3761) fixes #3756 * [iOS] Fix NRE on ContextCell (#3714) fixes #3275 * [Controls] Add repo for issue #3275 * [iOS] Fix NRE when no gestures exist on table * [iOS] Null check outside loop * [iOS]Make sure to dispose/unhook when we are removed from UITableView. * Update submodule * [iOS] Don't double dispose ContextActionCell * WPF - Fix Width and Height measurement when GetDesiredSize (#3750) * WPF - Reset Width and Height when GetDesiredSize * Some formatting changes * Add APP directive * [WPF]Fix build * [Android Maps] Make markers available to subclasses (#3751) * Make markers available to subclasses * Fix build * Use Find instead of FirstOrDefault * [UITests] wait for element before querying for it (#3791) * [UITests] wait for element before querying for it * [Controls] generalize and better represent intended behavior * WPF - Fix Local store not persistant when restarting App (#3752) -fixes #3541 * WPF - Fix Local store not persistant when restarting App * Add UITest * [Controls] Add automated UI Test * [UITests] Isolate test 3408 * [UITest] Update Xamarin UITest packages * [UWP] implement Replace without reloading ListView (#3792) -fixes #3788 * [UWP] implement Replace without reloading ListView * [UWP] extract bindingcontext of new item for replace * [iOS] Use UIApperance default color for UISwitch (#3819) * [Controls] Set default color of UISwitch to Red * [iOS] Use default color from Apperance API * [UITests] replace awaits with more reliable WaitForElement (#3835) * [Core] Propagate BindingContext changes to TitleView (#3823) * [Core] Propagate BindingContext changes to TitleView * [Tests] Move UI test to Core Unit Test * [A] do not draw gradient for empty CornerRadius (#3786) Drawing CornerRadius (introduce by #1998) when the CornerRadii are actually 0 causes scaling artifacts on API < 25. This fixes the regression when no CornerRadius is set. Expect blurry border scaling with CornerRadius not empty and API < 25 - fixes #3781 * [Android] Fix WebView.Navigating event, make WebViewClient inheritable (#3780) * Extracted WebViewRenderer.WebClient to FormsWebViewClient, moved SendNavigating call from ShouldOverrideUrlLoading to OnPageStarted * Changed _webViewClient and GetWebViewClient() method to return base class * Changed public things to protected internal * Fix spaces to tabs indentation to match the coding style (#3745) * [Build] Fix merge * Fix #3097 swipe gesture not being handled in VisualElementTracker. (#3098) Fixes #3097 * Update from origin (#9) * [C] VisibilityConverter Trims input (#3581) For CSS purposes, the VisibilityConverter was added, and actually replaced the `Boolean.Parse(str)` call for parsing Visibility. `Boolean.Parse()` trims input, and the converter was not, so this was a regression. This changes Trim() the input, to be fully backward compatible. - fixes #3554 * Ensure ConstructorCountId and TimeId elements are available before querying them (#3588) * For consistency with ResourceDictionary, expose the Source for a StyleSheet (#2589) This would allow previewer/designer/reloader to determine the source of a stylesheet and refresh its content when appropriate. * Revert "For consistency with ResourceDictionary, expose the Source for a StyleSheet (#2589)" This reverts commit f66a72de5b475a6a8387a80e418997b38dc40d4c. * Fix NRE; Ret 0 if Text null (#3594) fixes #3579 * [UWP, WPF] Fixes rendering of the main page (#2896) fixes #2704 * [Core] Ignore Shamehat target when running DesignTimeBuild (#3605) * [XamlC] Fix binding compilation fo value types (#3551) properly load valuetype arguments of generated setters, using ldarg, instead of ldarga. - fixes #3539 * Update PULL_REQUEST_TEMPLATE.md * Update PULL_REQUEST_TEMPLATE.md * [Android] Fix Label LineHeight (#3452) * fix line height android * Make UAP respect initial LineHeight * update .create-nuget.bat (#3638) * Add Null Check to GetRenderer (#3575) - fix #3563 * Fix 3562 Null Reference Exception (#3576) - fixes #3562 * Fix 3564 Null Reference Exception (#3578) - fixes #3564 * [iOS] AutomationProperty support for cells (#3313) fixes #3296 * [iOS] AutomationProperty support for cells * Add test case to AutomationProperties gallery * [UWP] Fix crash app when create navigation/tabbed page without children pages fixes #3188 (#3514) * [Android] Use height when determining ScaledScreenSize; fixes #3609 (#3641) * [C] Set binding context on Span Gestures (#3639) * [Core] Set binding context on Span Gestures * [Core] Simplify loop setting child binding context - fixes #3524 * Update PULL_REQUEST_TEMPLATE.md * [Android] remove deprecated AndroidUseLatestPlatformSdk (#3672) * [iOS] iPad ActionSheet should always have a Cancel method (#3636) * Add repro for #3049 * [iOS] iPad ActionSheet should always have a Cancel method fixes #3049 * [Android] fixes #3675 - set initial ScrollView Scroll values when RTL (#3676) * [Android] API check for Shadow properties on Button (#3617) fixes #2702 * [Android] API check for Shadow properties on Button * Fix swapped shadow values * [iOS] fixes #3525 - add epsilon for float compare (#3654) * [iOS] fixes #3525 - add epsilon for float compare and make region immutable * [ControlGallery] spread out spans to account for click slop * [ControlGallery] - adjust span slightly for android test * [Core] remove private * Fix text wrapping (#3671) fixes #3634 * [GTK] Fix navigation bar visibility updates (#3651) * Fix partially #3585 (#3592) * Make webkit-sharp.dll.config cross-platform * Update webkit-sharp.dll with missing signals bindings see: https://github.com/ylatuya/webkit-sharp/tree/fluendo * [iOS, UWP] fixes #2894 - Gestures collection changes weren't correctly propagating (#3643) * [iOS, UWP] fixes #2894 - Gestures weren't wiring up to spans in all cases * [Core] remove ChildGestureRecognizers when spans get removed * [iOS] removed incorrect return from null * Fixes #3663 (#3684) * Fix ScrollView Padding issue (#3685) * [WPF] Memory leak when you pop a TabbedPage (#3372) fixes #3267 * Fix [WPF] Memory leak when you pop a TabbedPage * Update ViewRenderer.cs * Update ViewRenderer.cs * [Android,iOS,UWP] Allow Entry CursorPosition/SelectionLength to be set in ctor (#3402) fixes #3343 fixes #3633 * Add repro for #3343 + unit tests * [Core] Disallow negative values for CursorPosition/SelectionLength * [All] CursorPosition/SelectionLength can bindin ctor & clear value fixes #3343 * typo * cleanup * [iOS] Cursor snaps to end * try/catch * [CSS] add more properties (#3466) map new CSS properties: - `color` on `IColorElement` (`ActivityIndicator`, `BoxView`), `ProgressBar` and `Switch` - `row-gap` and `column-gap` on `Grid` - `transform` and `transform-origin` on `VisualElement` - `vertical-align` on `Label` add new XF-specific CSS properties - `-xf-placeholder` and `-xf-placeholder-color` on `Editor`, `Entry`, `SearchBar` - `-xf-max-length` on `InputView` (`Editor` and `Entry`) - `-xf-bar-background-color` and `-xf-bar-text-color` on `NavigationPage` and `TabbedPage` - `-xf-orientation` on `ScrollView` and `StackLayout` - `-xf-horizontal-scroll-bar-visibility` and `-xf-vertical-scroll-bar-visibility` on `ScrollView` - `-xf-min-track-color`, `-xf-max-track-color` and `("-xf-thumb-color` on `Slider` - `-xf-spacing` on `StackLayout` This PR replaces and closes #3276 - fixes #2891 * [iOS] Specify a default size for UISearchBar width if needed (#3635) fixes #3413 fixes #2139 * [Controls] Add reproduction and test case for issue #3413 * [iOS] Don't use max value for iOS UISearchbar breaks on iOS 11.3 * [iOS] Force width value so we can renderer UISearchBar on iOS10 with infinite width * [Controls] Fix spelling and add Manual Review to the test of #3413 * [iOS] Simplify code for UISearchBar width * [iOS] Return always some width from measure the UISearchBar on IOS * [Controls] Add reproduction case for issue #2139 * [UWP] Fixed double set margins in Layouts (#3570) fixes #3398 fixes #3616 * [Android] Support multiple clipping settings in single layout (#3559) * Repro * Fix for API 18+ * [iOS] Unsubscribe CellPropertyChanged when SwitchCellRenderer is disposed (#3518) * [Controls] Add repo of issue #3408 * [iOS] Unsubscribe CellPropertyChanged when cell is disposed * [Controls] Add issue to project * [iOS] Introduce CellPropertyChange to CellTableViewCell to used by all other cell renderers * [Controls] Simplify Issue * [iOS] Remove PropertyChanged that was not used * [Controls] add check for null binding on template, add notes about issues * [Controls] added reference to Android crash * [iOS]Use existing PropertyChanged on ViewCelRenderer * [iOS] Keep the existing override so we don't break users * Update TextCellRenderer.cs * update submodule * 24H Mode (#3701) The 24h mode for the pickerdialog was not working. Version 3.1 was working fine. Here is an updated file. * [UWP] uncomment tests that are now passing for 3188 (#3723) * [UITest] Update Xamarin.UITest nuget package (#3632) * [UITests] Update Xamarin.UITest 2.2.5 * [UITests] Try fix Toolbaritems * [UITest] Update to 2.2.5-1606 * [UITests] Small Fixes and workarounds to make uitest happy * [UITests ] Add delay to 1733 for API28 * [Android] Revert bad merge (#3746) fixes #3705 * [Android, iOS] Fixes layout compression causes (#3698) fixes #3624 * [Android, iOS] Fixes layout compression causes * [iOS] improve UpdateNewElement method * Fix build error hopefully * [UWP] Fixes CollectionChanged events in ListView (#3323) * fixes #3273 * [UWP] Fixes CollectionChanged events in ListView * a wrapped collection is used only if the SourceItem is not ObservableCollection * improve uitest * fixed NRE in empty ListView * added a sortable custom renderer for UItest * minor refactoring * fixed reset of not wrapped collections * addressing comments * [UWP] remove WinRT hack * [UWP] add missing using and cleanup additional resources * [Android] Update Forms to remove API28 deprecated API (#3653) fixes #2128 fixes #3629 * [Build] Update provisioning * [Controls] Ignore deprecated Android API usage * [Android] Remove use of obsolete color usage * [Android] Remove app fragment usage * [android] Rollback changes to EntryCellRenderer * [Android] Better way to get the default color for the label text * [Android] Obsolete message for ContentPage.CreateFragment() * [ControlGallery] - create bitmap from Drawable to use for pixel location * [Android] Use textcolor resource * Update submodule * Fix tests (#3771) * [ControlGallery] Wait for element and add timing to tests * [iOS] Fix NRE on RenderPool * Add TabStop/TabIndex (#2795) * [Core, UWP, Android] support TabStop/TabIndex * removing linq * add iOS / MacOS implementation * add WPF implementation fixes UWP implementation * - addressing comments - improve test - optimizations - added previous tab direction in same tab group * addressing comments * [Android] support tabstop for pickers * - moving shared code to a static class - removed reflection * ITabStop -> changed to internal, renamed, added in to fastRenderers * Update ITabStop to be public * Fix : Binding Icon in ToolbarItem in TabbedPage doesn't refresh (#3761) fixes #3756 * [iOS] Fix NRE on ContextCell (#3714) fixes #3275 * [Controls] Add repo for issue #3275 * [iOS] Fix NRE when no gestures exist on table * [iOS] Null check outside loop * [iOS]Make sure to dispose/unhook when we are removed from UITableView. * Update submodule * [iOS] Don't double dispose ContextActionCell * WPF - Fix Width and Height measurement when GetDesiredSize (#3750) * WPF - Reset Width and Height when GetDesiredSize * Some formatting changes * Add APP directive * [WPF]Fix build * [Android Maps] Make markers available to subclasses (#3751) * Make markers available to subclasses * Fix build * Use Find instead of FirstOrDefault * [UITests] wait for element before querying for it (#3791) * [UITests] wait for element before querying for it * [Controls] generalize and better represent intended behavior * WPF - Fix Local store not persistant when restarting App (#3752) -fixes #3541 * WPF - Fix Local store not persistant when restarting App * Add UITest * [Controls] Add automated UI Test * [UITests] Isolate test 3408 * [UITest] Update Xamarin UITest packages * [UWP] implement Replace without reloading ListView (#3792) -fixes #3788 * [UWP] implement Replace without reloading ListView * [UWP] extract bindingcontext of new item for replace * [iOS] Use UIApperance default color for UISwitch (#3819) * [Controls] Set default color of UISwitch to Red * [iOS] Use default color from Apperance API * [UITests] replace awaits with more reliable WaitForElement (#3835) * [Core] Propagate BindingContext changes to TitleView (#3823) * [Core] Propagate BindingContext changes to TitleView * [Tests] Move UI test to Core Unit Test * [A] do not draw gradient for empty CornerRadius (#3786) Drawing CornerRadius (introduce by #1998) when the CornerRadii are actually 0 causes scaling artifacts on API < 25. This fixes the regression when no CornerRadius is set. Expect blurry border scaling with CornerRadius not empty and API < 25 - fixes #3781 * [Android] Fix WebView.Navigating event, make WebViewClient inheritable (#3780) * Extracted WebViewRenderer.WebClient to FormsWebViewClient, moved SendNavigating call from ShouldOverrideUrlLoading to OnPageStarted * Changed _webViewClient and GetWebViewClient() method to return base class * Changed public things to protected internal * Fix spaces to tabs indentation to match the coding style (#3745) * [Build] Fix merge * Fix #3097 swipe gesture not being handled in VisualElementTracker. (#3098) Fixes #3097 * Ensure that the ListViewAdapter is no longer being used by the ListVi… (#3848) fixes #3603 * Ensure that the ListViewAdapter is no longer being used by the ListView before disposing it * Remove `RemoveAllViews` from `Dispose` * Removed touching the InputScope for the IsPassword property * Put back prediction settings * When InputScope was originally numeric, switch to numeric password scope, else we leave the previous logic in place * Fixed small error and added reproduction to gallery app * Fixed issues
2018-11-27 04:10:04 +03:00
public static readonly DependencyProperty ForegroundFocusBrushProperty =
DependencyProperty.Register(nameof(ForegroundFocusBrush), typeof(Brush), typeof(FormsTextBox),
new PropertyMetadata(default(Brush), FocusPropertyChanged));
2016-03-22 23:02:25 +03:00
[UWP] Changing IsPassword property changed InputScope (#4181) * Update from origin (#8) * [C] VisibilityConverter Trims input (#3581) For CSS purposes, the VisibilityConverter was added, and actually replaced the `Boolean.Parse(str)` call for parsing Visibility. `Boolean.Parse()` trims input, and the converter was not, so this was a regression. This changes Trim() the input, to be fully backward compatible. - fixes #3554 * Ensure ConstructorCountId and TimeId elements are available before querying them (#3588) * For consistency with ResourceDictionary, expose the Source for a StyleSheet (#2589) This would allow previewer/designer/reloader to determine the source of a stylesheet and refresh its content when appropriate. * Revert "For consistency with ResourceDictionary, expose the Source for a StyleSheet (#2589)" This reverts commit f66a72de5b475a6a8387a80e418997b38dc40d4c. * Fix NRE; Ret 0 if Text null (#3594) fixes #3579 * [UWP, WPF] Fixes rendering of the main page (#2896) fixes #2704 * [Core] Ignore Shamehat target when running DesignTimeBuild (#3605) * [XamlC] Fix binding compilation fo value types (#3551) properly load valuetype arguments of generated setters, using ldarg, instead of ldarga. - fixes #3539 * Update PULL_REQUEST_TEMPLATE.md * Update PULL_REQUEST_TEMPLATE.md * [Android] Fix Label LineHeight (#3452) * fix line height android * Make UAP respect initial LineHeight * update .create-nuget.bat (#3638) * Add Null Check to GetRenderer (#3575) - fix #3563 * Fix 3562 Null Reference Exception (#3576) - fixes #3562 * Fix 3564 Null Reference Exception (#3578) - fixes #3564 * [iOS] AutomationProperty support for cells (#3313) fixes #3296 * [iOS] AutomationProperty support for cells * Add test case to AutomationProperties gallery * [UWP] Fix crash app when create navigation/tabbed page without children pages fixes #3188 (#3514) * [Android] Use height when determining ScaledScreenSize; fixes #3609 (#3641) * [C] Set binding context on Span Gestures (#3639) * [Core] Set binding context on Span Gestures * [Core] Simplify loop setting child binding context - fixes #3524 * Update PULL_REQUEST_TEMPLATE.md * [Android] remove deprecated AndroidUseLatestPlatformSdk (#3672) * [iOS] iPad ActionSheet should always have a Cancel method (#3636) * Add repro for #3049 * [iOS] iPad ActionSheet should always have a Cancel method fixes #3049 * [Android] fixes #3675 - set initial ScrollView Scroll values when RTL (#3676) * [Android] API check for Shadow properties on Button (#3617) fixes #2702 * [Android] API check for Shadow properties on Button * Fix swapped shadow values * [iOS] fixes #3525 - add epsilon for float compare (#3654) * [iOS] fixes #3525 - add epsilon for float compare and make region immutable * [ControlGallery] spread out spans to account for click slop * [ControlGallery] - adjust span slightly for android test * [Core] remove private * Fix text wrapping (#3671) fixes #3634 * [GTK] Fix navigation bar visibility updates (#3651) * Fix partially #3585 (#3592) * Make webkit-sharp.dll.config cross-platform * Update webkit-sharp.dll with missing signals bindings see: https://github.com/ylatuya/webkit-sharp/tree/fluendo * [iOS, UWP] fixes #2894 - Gestures collection changes weren't correctly propagating (#3643) * [iOS, UWP] fixes #2894 - Gestures weren't wiring up to spans in all cases * [Core] remove ChildGestureRecognizers when spans get removed * [iOS] removed incorrect return from null * Fixes #3663 (#3684) * Fix ScrollView Padding issue (#3685) * [WPF] Memory leak when you pop a TabbedPage (#3372) fixes #3267 * Fix [WPF] Memory leak when you pop a TabbedPage * Update ViewRenderer.cs * Update ViewRenderer.cs * [Android,iOS,UWP] Allow Entry CursorPosition/SelectionLength to be set in ctor (#3402) fixes #3343 fixes #3633 * Add repro for #3343 + unit tests * [Core] Disallow negative values for CursorPosition/SelectionLength * [All] CursorPosition/SelectionLength can bindin ctor & clear value fixes #3343 * typo * cleanup * [iOS] Cursor snaps to end * try/catch * [CSS] add more properties (#3466) map new CSS properties: - `color` on `IColorElement` (`ActivityIndicator`, `BoxView`), `ProgressBar` and `Switch` - `row-gap` and `column-gap` on `Grid` - `transform` and `transform-origin` on `VisualElement` - `vertical-align` on `Label` add new XF-specific CSS properties - `-xf-placeholder` and `-xf-placeholder-color` on `Editor`, `Entry`, `SearchBar` - `-xf-max-length` on `InputView` (`Editor` and `Entry`) - `-xf-bar-background-color` and `-xf-bar-text-color` on `NavigationPage` and `TabbedPage` - `-xf-orientation` on `ScrollView` and `StackLayout` - `-xf-horizontal-scroll-bar-visibility` and `-xf-vertical-scroll-bar-visibility` on `ScrollView` - `-xf-min-track-color`, `-xf-max-track-color` and `("-xf-thumb-color` on `Slider` - `-xf-spacing` on `StackLayout` This PR replaces and closes #3276 - fixes #2891 * [iOS] Specify a default size for UISearchBar width if needed (#3635) fixes #3413 fixes #2139 * [Controls] Add reproduction and test case for issue #3413 * [iOS] Don't use max value for iOS UISearchbar breaks on iOS 11.3 * [iOS] Force width value so we can renderer UISearchBar on iOS10 with infinite width * [Controls] Fix spelling and add Manual Review to the test of #3413 * [iOS] Simplify code for UISearchBar width * [iOS] Return always some width from measure the UISearchBar on IOS * [Controls] Add reproduction case for issue #2139 * [UWP] Fixed double set margins in Layouts (#3570) fixes #3398 fixes #3616 * [Android] Support multiple clipping settings in single layout (#3559) * Repro * Fix for API 18+ * [iOS] Unsubscribe CellPropertyChanged when SwitchCellRenderer is disposed (#3518) * [Controls] Add repo of issue #3408 * [iOS] Unsubscribe CellPropertyChanged when cell is disposed * [Controls] Add issue to project * [iOS] Introduce CellPropertyChange to CellTableViewCell to used by all other cell renderers * [Controls] Simplify Issue * [iOS] Remove PropertyChanged that was not used * [Controls] add check for null binding on template, add notes about issues * [Controls] added reference to Android crash * [iOS]Use existing PropertyChanged on ViewCelRenderer * [iOS] Keep the existing override so we don't break users * Update TextCellRenderer.cs * update submodule * 24H Mode (#3701) The 24h mode for the pickerdialog was not working. Version 3.1 was working fine. Here is an updated file. * [UWP] uncomment tests that are now passing for 3188 (#3723) * [UITest] Update Xamarin.UITest nuget package (#3632) * [UITests] Update Xamarin.UITest 2.2.5 * [UITests] Try fix Toolbaritems * [UITest] Update to 2.2.5-1606 * [UITests] Small Fixes and workarounds to make uitest happy * [UITests ] Add delay to 1733 for API28 * [Android] Revert bad merge (#3746) fixes #3705 * [Android, iOS] Fixes layout compression causes (#3698) fixes #3624 * [Android, iOS] Fixes layout compression causes * [iOS] improve UpdateNewElement method * Fix build error hopefully * [UWP] Fixes CollectionChanged events in ListView (#3323) * fixes #3273 * [UWP] Fixes CollectionChanged events in ListView * a wrapped collection is used only if the SourceItem is not ObservableCollection * improve uitest * fixed NRE in empty ListView * added a sortable custom renderer for UItest * minor refactoring * fixed reset of not wrapped collections * addressing comments * [UWP] remove WinRT hack * [UWP] add missing using and cleanup additional resources * [Android] Update Forms to remove API28 deprecated API (#3653) fixes #2128 fixes #3629 * [Build] Update provisioning * [Controls] Ignore deprecated Android API usage * [Android] Remove use of obsolete color usage * [Android] Remove app fragment usage * [android] Rollback changes to EntryCellRenderer * [Android] Better way to get the default color for the label text * [Android] Obsolete message for ContentPage.CreateFragment() * [ControlGallery] - create bitmap from Drawable to use for pixel location * [Android] Use textcolor resource * Update submodule * Fix tests (#3771) * [ControlGallery] Wait for element and add timing to tests * [iOS] Fix NRE on RenderPool * Add TabStop/TabIndex (#2795) * [Core, UWP, Android] support TabStop/TabIndex * removing linq * add iOS / MacOS implementation * add WPF implementation fixes UWP implementation * - addressing comments - improve test - optimizations - added previous tab direction in same tab group * addressing comments * [Android] support tabstop for pickers * - moving shared code to a static class - removed reflection * ITabStop -> changed to internal, renamed, added in to fastRenderers * Update ITabStop to be public * Fix : Binding Icon in ToolbarItem in TabbedPage doesn't refresh (#3761) fixes #3756 * [iOS] Fix NRE on ContextCell (#3714) fixes #3275 * [Controls] Add repo for issue #3275 * [iOS] Fix NRE when no gestures exist on table * [iOS] Null check outside loop * [iOS]Make sure to dispose/unhook when we are removed from UITableView. * Update submodule * [iOS] Don't double dispose ContextActionCell * WPF - Fix Width and Height measurement when GetDesiredSize (#3750) * WPF - Reset Width and Height when GetDesiredSize * Some formatting changes * Add APP directive * [WPF]Fix build * [Android Maps] Make markers available to subclasses (#3751) * Make markers available to subclasses * Fix build * Use Find instead of FirstOrDefault * [UITests] wait for element before querying for it (#3791) * [UITests] wait for element before querying for it * [Controls] generalize and better represent intended behavior * WPF - Fix Local store not persistant when restarting App (#3752) -fixes #3541 * WPF - Fix Local store not persistant when restarting App * Add UITest * [Controls] Add automated UI Test * [UITests] Isolate test 3408 * [UITest] Update Xamarin UITest packages * [UWP] implement Replace without reloading ListView (#3792) -fixes #3788 * [UWP] implement Replace without reloading ListView * [UWP] extract bindingcontext of new item for replace * [iOS] Use UIApperance default color for UISwitch (#3819) * [Controls] Set default color of UISwitch to Red * [iOS] Use default color from Apperance API * [UITests] replace awaits with more reliable WaitForElement (#3835) * [Core] Propagate BindingContext changes to TitleView (#3823) * [Core] Propagate BindingContext changes to TitleView * [Tests] Move UI test to Core Unit Test * [A] do not draw gradient for empty CornerRadius (#3786) Drawing CornerRadius (introduce by #1998) when the CornerRadii are actually 0 causes scaling artifacts on API < 25. This fixes the regression when no CornerRadius is set. Expect blurry border scaling with CornerRadius not empty and API < 25 - fixes #3781 * [Android] Fix WebView.Navigating event, make WebViewClient inheritable (#3780) * Extracted WebViewRenderer.WebClient to FormsWebViewClient, moved SendNavigating call from ShouldOverrideUrlLoading to OnPageStarted * Changed _webViewClient and GetWebViewClient() method to return base class * Changed public things to protected internal * Fix spaces to tabs indentation to match the coding style (#3745) * [Build] Fix merge * Fix #3097 swipe gesture not being handled in VisualElementTracker. (#3098) Fixes #3097 * Update from origin (#9) * [C] VisibilityConverter Trims input (#3581) For CSS purposes, the VisibilityConverter was added, and actually replaced the `Boolean.Parse(str)` call for parsing Visibility. `Boolean.Parse()` trims input, and the converter was not, so this was a regression. This changes Trim() the input, to be fully backward compatible. - fixes #3554 * Ensure ConstructorCountId and TimeId elements are available before querying them (#3588) * For consistency with ResourceDictionary, expose the Source for a StyleSheet (#2589) This would allow previewer/designer/reloader to determine the source of a stylesheet and refresh its content when appropriate. * Revert "For consistency with ResourceDictionary, expose the Source for a StyleSheet (#2589)" This reverts commit f66a72de5b475a6a8387a80e418997b38dc40d4c. * Fix NRE; Ret 0 if Text null (#3594) fixes #3579 * [UWP, WPF] Fixes rendering of the main page (#2896) fixes #2704 * [Core] Ignore Shamehat target when running DesignTimeBuild (#3605) * [XamlC] Fix binding compilation fo value types (#3551) properly load valuetype arguments of generated setters, using ldarg, instead of ldarga. - fixes #3539 * Update PULL_REQUEST_TEMPLATE.md * Update PULL_REQUEST_TEMPLATE.md * [Android] Fix Label LineHeight (#3452) * fix line height android * Make UAP respect initial LineHeight * update .create-nuget.bat (#3638) * Add Null Check to GetRenderer (#3575) - fix #3563 * Fix 3562 Null Reference Exception (#3576) - fixes #3562 * Fix 3564 Null Reference Exception (#3578) - fixes #3564 * [iOS] AutomationProperty support for cells (#3313) fixes #3296 * [iOS] AutomationProperty support for cells * Add test case to AutomationProperties gallery * [UWP] Fix crash app when create navigation/tabbed page without children pages fixes #3188 (#3514) * [Android] Use height when determining ScaledScreenSize; fixes #3609 (#3641) * [C] Set binding context on Span Gestures (#3639) * [Core] Set binding context on Span Gestures * [Core] Simplify loop setting child binding context - fixes #3524 * Update PULL_REQUEST_TEMPLATE.md * [Android] remove deprecated AndroidUseLatestPlatformSdk (#3672) * [iOS] iPad ActionSheet should always have a Cancel method (#3636) * Add repro for #3049 * [iOS] iPad ActionSheet should always have a Cancel method fixes #3049 * [Android] fixes #3675 - set initial ScrollView Scroll values when RTL (#3676) * [Android] API check for Shadow properties on Button (#3617) fixes #2702 * [Android] API check for Shadow properties on Button * Fix swapped shadow values * [iOS] fixes #3525 - add epsilon for float compare (#3654) * [iOS] fixes #3525 - add epsilon for float compare and make region immutable * [ControlGallery] spread out spans to account for click slop * [ControlGallery] - adjust span slightly for android test * [Core] remove private * Fix text wrapping (#3671) fixes #3634 * [GTK] Fix navigation bar visibility updates (#3651) * Fix partially #3585 (#3592) * Make webkit-sharp.dll.config cross-platform * Update webkit-sharp.dll with missing signals bindings see: https://github.com/ylatuya/webkit-sharp/tree/fluendo * [iOS, UWP] fixes #2894 - Gestures collection changes weren't correctly propagating (#3643) * [iOS, UWP] fixes #2894 - Gestures weren't wiring up to spans in all cases * [Core] remove ChildGestureRecognizers when spans get removed * [iOS] removed incorrect return from null * Fixes #3663 (#3684) * Fix ScrollView Padding issue (#3685) * [WPF] Memory leak when you pop a TabbedPage (#3372) fixes #3267 * Fix [WPF] Memory leak when you pop a TabbedPage * Update ViewRenderer.cs * Update ViewRenderer.cs * [Android,iOS,UWP] Allow Entry CursorPosition/SelectionLength to be set in ctor (#3402) fixes #3343 fixes #3633 * Add repro for #3343 + unit tests * [Core] Disallow negative values for CursorPosition/SelectionLength * [All] CursorPosition/SelectionLength can bindin ctor & clear value fixes #3343 * typo * cleanup * [iOS] Cursor snaps to end * try/catch * [CSS] add more properties (#3466) map new CSS properties: - `color` on `IColorElement` (`ActivityIndicator`, `BoxView`), `ProgressBar` and `Switch` - `row-gap` and `column-gap` on `Grid` - `transform` and `transform-origin` on `VisualElement` - `vertical-align` on `Label` add new XF-specific CSS properties - `-xf-placeholder` and `-xf-placeholder-color` on `Editor`, `Entry`, `SearchBar` - `-xf-max-length` on `InputView` (`Editor` and `Entry`) - `-xf-bar-background-color` and `-xf-bar-text-color` on `NavigationPage` and `TabbedPage` - `-xf-orientation` on `ScrollView` and `StackLayout` - `-xf-horizontal-scroll-bar-visibility` and `-xf-vertical-scroll-bar-visibility` on `ScrollView` - `-xf-min-track-color`, `-xf-max-track-color` and `("-xf-thumb-color` on `Slider` - `-xf-spacing` on `StackLayout` This PR replaces and closes #3276 - fixes #2891 * [iOS] Specify a default size for UISearchBar width if needed (#3635) fixes #3413 fixes #2139 * [Controls] Add reproduction and test case for issue #3413 * [iOS] Don't use max value for iOS UISearchbar breaks on iOS 11.3 * [iOS] Force width value so we can renderer UISearchBar on iOS10 with infinite width * [Controls] Fix spelling and add Manual Review to the test of #3413 * [iOS] Simplify code for UISearchBar width * [iOS] Return always some width from measure the UISearchBar on IOS * [Controls] Add reproduction case for issue #2139 * [UWP] Fixed double set margins in Layouts (#3570) fixes #3398 fixes #3616 * [Android] Support multiple clipping settings in single layout (#3559) * Repro * Fix for API 18+ * [iOS] Unsubscribe CellPropertyChanged when SwitchCellRenderer is disposed (#3518) * [Controls] Add repo of issue #3408 * [iOS] Unsubscribe CellPropertyChanged when cell is disposed * [Controls] Add issue to project * [iOS] Introduce CellPropertyChange to CellTableViewCell to used by all other cell renderers * [Controls] Simplify Issue * [iOS] Remove PropertyChanged that was not used * [Controls] add check for null binding on template, add notes about issues * [Controls] added reference to Android crash * [iOS]Use existing PropertyChanged on ViewCelRenderer * [iOS] Keep the existing override so we don't break users * Update TextCellRenderer.cs * update submodule * 24H Mode (#3701) The 24h mode for the pickerdialog was not working. Version 3.1 was working fine. Here is an updated file. * [UWP] uncomment tests that are now passing for 3188 (#3723) * [UITest] Update Xamarin.UITest nuget package (#3632) * [UITests] Update Xamarin.UITest 2.2.5 * [UITests] Try fix Toolbaritems * [UITest] Update to 2.2.5-1606 * [UITests] Small Fixes and workarounds to make uitest happy * [UITests ] Add delay to 1733 for API28 * [Android] Revert bad merge (#3746) fixes #3705 * [Android, iOS] Fixes layout compression causes (#3698) fixes #3624 * [Android, iOS] Fixes layout compression causes * [iOS] improve UpdateNewElement method * Fix build error hopefully * [UWP] Fixes CollectionChanged events in ListView (#3323) * fixes #3273 * [UWP] Fixes CollectionChanged events in ListView * a wrapped collection is used only if the SourceItem is not ObservableCollection * improve uitest * fixed NRE in empty ListView * added a sortable custom renderer for UItest * minor refactoring * fixed reset of not wrapped collections * addressing comments * [UWP] remove WinRT hack * [UWP] add missing using and cleanup additional resources * [Android] Update Forms to remove API28 deprecated API (#3653) fixes #2128 fixes #3629 * [Build] Update provisioning * [Controls] Ignore deprecated Android API usage * [Android] Remove use of obsolete color usage * [Android] Remove app fragment usage * [android] Rollback changes to EntryCellRenderer * [Android] Better way to get the default color for the label text * [Android] Obsolete message for ContentPage.CreateFragment() * [ControlGallery] - create bitmap from Drawable to use for pixel location * [Android] Use textcolor resource * Update submodule * Fix tests (#3771) * [ControlGallery] Wait for element and add timing to tests * [iOS] Fix NRE on RenderPool * Add TabStop/TabIndex (#2795) * [Core, UWP, Android] support TabStop/TabIndex * removing linq * add iOS / MacOS implementation * add WPF implementation fixes UWP implementation * - addressing comments - improve test - optimizations - added previous tab direction in same tab group * addressing comments * [Android] support tabstop for pickers * - moving shared code to a static class - removed reflection * ITabStop -> changed to internal, renamed, added in to fastRenderers * Update ITabStop to be public * Fix : Binding Icon in ToolbarItem in TabbedPage doesn't refresh (#3761) fixes #3756 * [iOS] Fix NRE on ContextCell (#3714) fixes #3275 * [Controls] Add repo for issue #3275 * [iOS] Fix NRE when no gestures exist on table * [iOS] Null check outside loop * [iOS]Make sure to dispose/unhook when we are removed from UITableView. * Update submodule * [iOS] Don't double dispose ContextActionCell * WPF - Fix Width and Height measurement when GetDesiredSize (#3750) * WPF - Reset Width and Height when GetDesiredSize * Some formatting changes * Add APP directive * [WPF]Fix build * [Android Maps] Make markers available to subclasses (#3751) * Make markers available to subclasses * Fix build * Use Find instead of FirstOrDefault * [UITests] wait for element before querying for it (#3791) * [UITests] wait for element before querying for it * [Controls] generalize and better represent intended behavior * WPF - Fix Local store not persistant when restarting App (#3752) -fixes #3541 * WPF - Fix Local store not persistant when restarting App * Add UITest * [Controls] Add automated UI Test * [UITests] Isolate test 3408 * [UITest] Update Xamarin UITest packages * [UWP] implement Replace without reloading ListView (#3792) -fixes #3788 * [UWP] implement Replace without reloading ListView * [UWP] extract bindingcontext of new item for replace * [iOS] Use UIApperance default color for UISwitch (#3819) * [Controls] Set default color of UISwitch to Red * [iOS] Use default color from Apperance API * [UITests] replace awaits with more reliable WaitForElement (#3835) * [Core] Propagate BindingContext changes to TitleView (#3823) * [Core] Propagate BindingContext changes to TitleView * [Tests] Move UI test to Core Unit Test * [A] do not draw gradient for empty CornerRadius (#3786) Drawing CornerRadius (introduce by #1998) when the CornerRadii are actually 0 causes scaling artifacts on API < 25. This fixes the regression when no CornerRadius is set. Expect blurry border scaling with CornerRadius not empty and API < 25 - fixes #3781 * [Android] Fix WebView.Navigating event, make WebViewClient inheritable (#3780) * Extracted WebViewRenderer.WebClient to FormsWebViewClient, moved SendNavigating call from ShouldOverrideUrlLoading to OnPageStarted * Changed _webViewClient and GetWebViewClient() method to return base class * Changed public things to protected internal * Fix spaces to tabs indentation to match the coding style (#3745) * [Build] Fix merge * Fix #3097 swipe gesture not being handled in VisualElementTracker. (#3098) Fixes #3097 * Ensure that the ListViewAdapter is no longer being used by the ListVi… (#3848) fixes #3603 * Ensure that the ListViewAdapter is no longer being used by the ListView before disposing it * Remove `RemoveAllViews` from `Dispose` * Removed touching the InputScope for the IsPassword property * Put back prediction settings * When InputScope was originally numeric, switch to numeric password scope, else we leave the previous logic in place * Fixed small error and added reproduction to gallery app * Fixed issues
2018-11-27 04:10:04 +03:00
public static readonly DependencyProperty BackgroundFocusBrushProperty =
DependencyProperty.Register(nameof(BackgroundFocusBrush), typeof(Brush), typeof(FormsTextBox),
new PropertyMetadata(default(Brush), FocusPropertyChanged));
2016-03-22 23:02:25 +03:00
[UWP] Changing IsPassword property changed InputScope (#4181) * Update from origin (#8) * [C] VisibilityConverter Trims input (#3581) For CSS purposes, the VisibilityConverter was added, and actually replaced the `Boolean.Parse(str)` call for parsing Visibility. `Boolean.Parse()` trims input, and the converter was not, so this was a regression. This changes Trim() the input, to be fully backward compatible. - fixes #3554 * Ensure ConstructorCountId and TimeId elements are available before querying them (#3588) * For consistency with ResourceDictionary, expose the Source for a StyleSheet (#2589) This would allow previewer/designer/reloader to determine the source of a stylesheet and refresh its content when appropriate. * Revert "For consistency with ResourceDictionary, expose the Source for a StyleSheet (#2589)" This reverts commit f66a72de5b475a6a8387a80e418997b38dc40d4c. * Fix NRE; Ret 0 if Text null (#3594) fixes #3579 * [UWP, WPF] Fixes rendering of the main page (#2896) fixes #2704 * [Core] Ignore Shamehat target when running DesignTimeBuild (#3605) * [XamlC] Fix binding compilation fo value types (#3551) properly load valuetype arguments of generated setters, using ldarg, instead of ldarga. - fixes #3539 * Update PULL_REQUEST_TEMPLATE.md * Update PULL_REQUEST_TEMPLATE.md * [Android] Fix Label LineHeight (#3452) * fix line height android * Make UAP respect initial LineHeight * update .create-nuget.bat (#3638) * Add Null Check to GetRenderer (#3575) - fix #3563 * Fix 3562 Null Reference Exception (#3576) - fixes #3562 * Fix 3564 Null Reference Exception (#3578) - fixes #3564 * [iOS] AutomationProperty support for cells (#3313) fixes #3296 * [iOS] AutomationProperty support for cells * Add test case to AutomationProperties gallery * [UWP] Fix crash app when create navigation/tabbed page without children pages fixes #3188 (#3514) * [Android] Use height when determining ScaledScreenSize; fixes #3609 (#3641) * [C] Set binding context on Span Gestures (#3639) * [Core] Set binding context on Span Gestures * [Core] Simplify loop setting child binding context - fixes #3524 * Update PULL_REQUEST_TEMPLATE.md * [Android] remove deprecated AndroidUseLatestPlatformSdk (#3672) * [iOS] iPad ActionSheet should always have a Cancel method (#3636) * Add repro for #3049 * [iOS] iPad ActionSheet should always have a Cancel method fixes #3049 * [Android] fixes #3675 - set initial ScrollView Scroll values when RTL (#3676) * [Android] API check for Shadow properties on Button (#3617) fixes #2702 * [Android] API check for Shadow properties on Button * Fix swapped shadow values * [iOS] fixes #3525 - add epsilon for float compare (#3654) * [iOS] fixes #3525 - add epsilon for float compare and make region immutable * [ControlGallery] spread out spans to account for click slop * [ControlGallery] - adjust span slightly for android test * [Core] remove private * Fix text wrapping (#3671) fixes #3634 * [GTK] Fix navigation bar visibility updates (#3651) * Fix partially #3585 (#3592) * Make webkit-sharp.dll.config cross-platform * Update webkit-sharp.dll with missing signals bindings see: https://github.com/ylatuya/webkit-sharp/tree/fluendo * [iOS, UWP] fixes #2894 - Gestures collection changes weren't correctly propagating (#3643) * [iOS, UWP] fixes #2894 - Gestures weren't wiring up to spans in all cases * [Core] remove ChildGestureRecognizers when spans get removed * [iOS] removed incorrect return from null * Fixes #3663 (#3684) * Fix ScrollView Padding issue (#3685) * [WPF] Memory leak when you pop a TabbedPage (#3372) fixes #3267 * Fix [WPF] Memory leak when you pop a TabbedPage * Update ViewRenderer.cs * Update ViewRenderer.cs * [Android,iOS,UWP] Allow Entry CursorPosition/SelectionLength to be set in ctor (#3402) fixes #3343 fixes #3633 * Add repro for #3343 + unit tests * [Core] Disallow negative values for CursorPosition/SelectionLength * [All] CursorPosition/SelectionLength can bindin ctor & clear value fixes #3343 * typo * cleanup * [iOS] Cursor snaps to end * try/catch * [CSS] add more properties (#3466) map new CSS properties: - `color` on `IColorElement` (`ActivityIndicator`, `BoxView`), `ProgressBar` and `Switch` - `row-gap` and `column-gap` on `Grid` - `transform` and `transform-origin` on `VisualElement` - `vertical-align` on `Label` add new XF-specific CSS properties - `-xf-placeholder` and `-xf-placeholder-color` on `Editor`, `Entry`, `SearchBar` - `-xf-max-length` on `InputView` (`Editor` and `Entry`) - `-xf-bar-background-color` and `-xf-bar-text-color` on `NavigationPage` and `TabbedPage` - `-xf-orientation` on `ScrollView` and `StackLayout` - `-xf-horizontal-scroll-bar-visibility` and `-xf-vertical-scroll-bar-visibility` on `ScrollView` - `-xf-min-track-color`, `-xf-max-track-color` and `("-xf-thumb-color` on `Slider` - `-xf-spacing` on `StackLayout` This PR replaces and closes #3276 - fixes #2891 * [iOS] Specify a default size for UISearchBar width if needed (#3635) fixes #3413 fixes #2139 * [Controls] Add reproduction and test case for issue #3413 * [iOS] Don't use max value for iOS UISearchbar breaks on iOS 11.3 * [iOS] Force width value so we can renderer UISearchBar on iOS10 with infinite width * [Controls] Fix spelling and add Manual Review to the test of #3413 * [iOS] Simplify code for UISearchBar width * [iOS] Return always some width from measure the UISearchBar on IOS * [Controls] Add reproduction case for issue #2139 * [UWP] Fixed double set margins in Layouts (#3570) fixes #3398 fixes #3616 * [Android] Support multiple clipping settings in single layout (#3559) * Repro * Fix for API 18+ * [iOS] Unsubscribe CellPropertyChanged when SwitchCellRenderer is disposed (#3518) * [Controls] Add repo of issue #3408 * [iOS] Unsubscribe CellPropertyChanged when cell is disposed * [Controls] Add issue to project * [iOS] Introduce CellPropertyChange to CellTableViewCell to used by all other cell renderers * [Controls] Simplify Issue * [iOS] Remove PropertyChanged that was not used * [Controls] add check for null binding on template, add notes about issues * [Controls] added reference to Android crash * [iOS]Use existing PropertyChanged on ViewCelRenderer * [iOS] Keep the existing override so we don't break users * Update TextCellRenderer.cs * update submodule * 24H Mode (#3701) The 24h mode for the pickerdialog was not working. Version 3.1 was working fine. Here is an updated file. * [UWP] uncomment tests that are now passing for 3188 (#3723) * [UITest] Update Xamarin.UITest nuget package (#3632) * [UITests] Update Xamarin.UITest 2.2.5 * [UITests] Try fix Toolbaritems * [UITest] Update to 2.2.5-1606 * [UITests] Small Fixes and workarounds to make uitest happy * [UITests ] Add delay to 1733 for API28 * [Android] Revert bad merge (#3746) fixes #3705 * [Android, iOS] Fixes layout compression causes (#3698) fixes #3624 * [Android, iOS] Fixes layout compression causes * [iOS] improve UpdateNewElement method * Fix build error hopefully * [UWP] Fixes CollectionChanged events in ListView (#3323) * fixes #3273 * [UWP] Fixes CollectionChanged events in ListView * a wrapped collection is used only if the SourceItem is not ObservableCollection * improve uitest * fixed NRE in empty ListView * added a sortable custom renderer for UItest * minor refactoring * fixed reset of not wrapped collections * addressing comments * [UWP] remove WinRT hack * [UWP] add missing using and cleanup additional resources * [Android] Update Forms to remove API28 deprecated API (#3653) fixes #2128 fixes #3629 * [Build] Update provisioning * [Controls] Ignore deprecated Android API usage * [Android] Remove use of obsolete color usage * [Android] Remove app fragment usage * [android] Rollback changes to EntryCellRenderer * [Android] Better way to get the default color for the label text * [Android] Obsolete message for ContentPage.CreateFragment() * [ControlGallery] - create bitmap from Drawable to use for pixel location * [Android] Use textcolor resource * Update submodule * Fix tests (#3771) * [ControlGallery] Wait for element and add timing to tests * [iOS] Fix NRE on RenderPool * Add TabStop/TabIndex (#2795) * [Core, UWP, Android] support TabStop/TabIndex * removing linq * add iOS / MacOS implementation * add WPF implementation fixes UWP implementation * - addressing comments - improve test - optimizations - added previous tab direction in same tab group * addressing comments * [Android] support tabstop for pickers * - moving shared code to a static class - removed reflection * ITabStop -> changed to internal, renamed, added in to fastRenderers * Update ITabStop to be public * Fix : Binding Icon in ToolbarItem in TabbedPage doesn't refresh (#3761) fixes #3756 * [iOS] Fix NRE on ContextCell (#3714) fixes #3275 * [Controls] Add repo for issue #3275 * [iOS] Fix NRE when no gestures exist on table * [iOS] Null check outside loop * [iOS]Make sure to dispose/unhook when we are removed from UITableView. * Update submodule * [iOS] Don't double dispose ContextActionCell * WPF - Fix Width and Height measurement when GetDesiredSize (#3750) * WPF - Reset Width and Height when GetDesiredSize * Some formatting changes * Add APP directive * [WPF]Fix build * [Android Maps] Make markers available to subclasses (#3751) * Make markers available to subclasses * Fix build * Use Find instead of FirstOrDefault * [UITests] wait for element before querying for it (#3791) * [UITests] wait for element before querying for it * [Controls] generalize and better represent intended behavior * WPF - Fix Local store not persistant when restarting App (#3752) -fixes #3541 * WPF - Fix Local store not persistant when restarting App * Add UITest * [Controls] Add automated UI Test * [UITests] Isolate test 3408 * [UITest] Update Xamarin UITest packages * [UWP] implement Replace without reloading ListView (#3792) -fixes #3788 * [UWP] implement Replace without reloading ListView * [UWP] extract bindingcontext of new item for replace * [iOS] Use UIApperance default color for UISwitch (#3819) * [Controls] Set default color of UISwitch to Red * [iOS] Use default color from Apperance API * [UITests] replace awaits with more reliable WaitForElement (#3835) * [Core] Propagate BindingContext changes to TitleView (#3823) * [Core] Propagate BindingContext changes to TitleView * [Tests] Move UI test to Core Unit Test * [A] do not draw gradient for empty CornerRadius (#3786) Drawing CornerRadius (introduce by #1998) when the CornerRadii are actually 0 causes scaling artifacts on API < 25. This fixes the regression when no CornerRadius is set. Expect blurry border scaling with CornerRadius not empty and API < 25 - fixes #3781 * [Android] Fix WebView.Navigating event, make WebViewClient inheritable (#3780) * Extracted WebViewRenderer.WebClient to FormsWebViewClient, moved SendNavigating call from ShouldOverrideUrlLoading to OnPageStarted * Changed _webViewClient and GetWebViewClient() method to return base class * Changed public things to protected internal * Fix spaces to tabs indentation to match the coding style (#3745) * [Build] Fix merge * Fix #3097 swipe gesture not being handled in VisualElementTracker. (#3098) Fixes #3097 * Update from origin (#9) * [C] VisibilityConverter Trims input (#3581) For CSS purposes, the VisibilityConverter was added, and actually replaced the `Boolean.Parse(str)` call for parsing Visibility. `Boolean.Parse()` trims input, and the converter was not, so this was a regression. This changes Trim() the input, to be fully backward compatible. - fixes #3554 * Ensure ConstructorCountId and TimeId elements are available before querying them (#3588) * For consistency with ResourceDictionary, expose the Source for a StyleSheet (#2589) This would allow previewer/designer/reloader to determine the source of a stylesheet and refresh its content when appropriate. * Revert "For consistency with ResourceDictionary, expose the Source for a StyleSheet (#2589)" This reverts commit f66a72de5b475a6a8387a80e418997b38dc40d4c. * Fix NRE; Ret 0 if Text null (#3594) fixes #3579 * [UWP, WPF] Fixes rendering of the main page (#2896) fixes #2704 * [Core] Ignore Shamehat target when running DesignTimeBuild (#3605) * [XamlC] Fix binding compilation fo value types (#3551) properly load valuetype arguments of generated setters, using ldarg, instead of ldarga. - fixes #3539 * Update PULL_REQUEST_TEMPLATE.md * Update PULL_REQUEST_TEMPLATE.md * [Android] Fix Label LineHeight (#3452) * fix line height android * Make UAP respect initial LineHeight * update .create-nuget.bat (#3638) * Add Null Check to GetRenderer (#3575) - fix #3563 * Fix 3562 Null Reference Exception (#3576) - fixes #3562 * Fix 3564 Null Reference Exception (#3578) - fixes #3564 * [iOS] AutomationProperty support for cells (#3313) fixes #3296 * [iOS] AutomationProperty support for cells * Add test case to AutomationProperties gallery * [UWP] Fix crash app when create navigation/tabbed page without children pages fixes #3188 (#3514) * [Android] Use height when determining ScaledScreenSize; fixes #3609 (#3641) * [C] Set binding context on Span Gestures (#3639) * [Core] Set binding context on Span Gestures * [Core] Simplify loop setting child binding context - fixes #3524 * Update PULL_REQUEST_TEMPLATE.md * [Android] remove deprecated AndroidUseLatestPlatformSdk (#3672) * [iOS] iPad ActionSheet should always have a Cancel method (#3636) * Add repro for #3049 * [iOS] iPad ActionSheet should always have a Cancel method fixes #3049 * [Android] fixes #3675 - set initial ScrollView Scroll values when RTL (#3676) * [Android] API check for Shadow properties on Button (#3617) fixes #2702 * [Android] API check for Shadow properties on Button * Fix swapped shadow values * [iOS] fixes #3525 - add epsilon for float compare (#3654) * [iOS] fixes #3525 - add epsilon for float compare and make region immutable * [ControlGallery] spread out spans to account for click slop * [ControlGallery] - adjust span slightly for android test * [Core] remove private * Fix text wrapping (#3671) fixes #3634 * [GTK] Fix navigation bar visibility updates (#3651) * Fix partially #3585 (#3592) * Make webkit-sharp.dll.config cross-platform * Update webkit-sharp.dll with missing signals bindings see: https://github.com/ylatuya/webkit-sharp/tree/fluendo * [iOS, UWP] fixes #2894 - Gestures collection changes weren't correctly propagating (#3643) * [iOS, UWP] fixes #2894 - Gestures weren't wiring up to spans in all cases * [Core] remove ChildGestureRecognizers when spans get removed * [iOS] removed incorrect return from null * Fixes #3663 (#3684) * Fix ScrollView Padding issue (#3685) * [WPF] Memory leak when you pop a TabbedPage (#3372) fixes #3267 * Fix [WPF] Memory leak when you pop a TabbedPage * Update ViewRenderer.cs * Update ViewRenderer.cs * [Android,iOS,UWP] Allow Entry CursorPosition/SelectionLength to be set in ctor (#3402) fixes #3343 fixes #3633 * Add repro for #3343 + unit tests * [Core] Disallow negative values for CursorPosition/SelectionLength * [All] CursorPosition/SelectionLength can bindin ctor & clear value fixes #3343 * typo * cleanup * [iOS] Cursor snaps to end * try/catch * [CSS] add more properties (#3466) map new CSS properties: - `color` on `IColorElement` (`ActivityIndicator`, `BoxView`), `ProgressBar` and `Switch` - `row-gap` and `column-gap` on `Grid` - `transform` and `transform-origin` on `VisualElement` - `vertical-align` on `Label` add new XF-specific CSS properties - `-xf-placeholder` and `-xf-placeholder-color` on `Editor`, `Entry`, `SearchBar` - `-xf-max-length` on `InputView` (`Editor` and `Entry`) - `-xf-bar-background-color` and `-xf-bar-text-color` on `NavigationPage` and `TabbedPage` - `-xf-orientation` on `ScrollView` and `StackLayout` - `-xf-horizontal-scroll-bar-visibility` and `-xf-vertical-scroll-bar-visibility` on `ScrollView` - `-xf-min-track-color`, `-xf-max-track-color` and `("-xf-thumb-color` on `Slider` - `-xf-spacing` on `StackLayout` This PR replaces and closes #3276 - fixes #2891 * [iOS] Specify a default size for UISearchBar width if needed (#3635) fixes #3413 fixes #2139 * [Controls] Add reproduction and test case for issue #3413 * [iOS] Don't use max value for iOS UISearchbar breaks on iOS 11.3 * [iOS] Force width value so we can renderer UISearchBar on iOS10 with infinite width * [Controls] Fix spelling and add Manual Review to the test of #3413 * [iOS] Simplify code for UISearchBar width * [iOS] Return always some width from measure the UISearchBar on IOS * [Controls] Add reproduction case for issue #2139 * [UWP] Fixed double set margins in Layouts (#3570) fixes #3398 fixes #3616 * [Android] Support multiple clipping settings in single layout (#3559) * Repro * Fix for API 18+ * [iOS] Unsubscribe CellPropertyChanged when SwitchCellRenderer is disposed (#3518) * [Controls] Add repo of issue #3408 * [iOS] Unsubscribe CellPropertyChanged when cell is disposed * [Controls] Add issue to project * [iOS] Introduce CellPropertyChange to CellTableViewCell to used by all other cell renderers * [Controls] Simplify Issue * [iOS] Remove PropertyChanged that was not used * [Controls] add check for null binding on template, add notes about issues * [Controls] added reference to Android crash * [iOS]Use existing PropertyChanged on ViewCelRenderer * [iOS] Keep the existing override so we don't break users * Update TextCellRenderer.cs * update submodule * 24H Mode (#3701) The 24h mode for the pickerdialog was not working. Version 3.1 was working fine. Here is an updated file. * [UWP] uncomment tests that are now passing for 3188 (#3723) * [UITest] Update Xamarin.UITest nuget package (#3632) * [UITests] Update Xamarin.UITest 2.2.5 * [UITests] Try fix Toolbaritems * [UITest] Update to 2.2.5-1606 * [UITests] Small Fixes and workarounds to make uitest happy * [UITests ] Add delay to 1733 for API28 * [Android] Revert bad merge (#3746) fixes #3705 * [Android, iOS] Fixes layout compression causes (#3698) fixes #3624 * [Android, iOS] Fixes layout compression causes * [iOS] improve UpdateNewElement method * Fix build error hopefully * [UWP] Fixes CollectionChanged events in ListView (#3323) * fixes #3273 * [UWP] Fixes CollectionChanged events in ListView * a wrapped collection is used only if the SourceItem is not ObservableCollection * improve uitest * fixed NRE in empty ListView * added a sortable custom renderer for UItest * minor refactoring * fixed reset of not wrapped collections * addressing comments * [UWP] remove WinRT hack * [UWP] add missing using and cleanup additional resources * [Android] Update Forms to remove API28 deprecated API (#3653) fixes #2128 fixes #3629 * [Build] Update provisioning * [Controls] Ignore deprecated Android API usage * [Android] Remove use of obsolete color usage * [Android] Remove app fragment usage * [android] Rollback changes to EntryCellRenderer * [Android] Better way to get the default color for the label text * [Android] Obsolete message for ContentPage.CreateFragment() * [ControlGallery] - create bitmap from Drawable to use for pixel location * [Android] Use textcolor resource * Update submodule * Fix tests (#3771) * [ControlGallery] Wait for element and add timing to tests * [iOS] Fix NRE on RenderPool * Add TabStop/TabIndex (#2795) * [Core, UWP, Android] support TabStop/TabIndex * removing linq * add iOS / MacOS implementation * add WPF implementation fixes UWP implementation * - addressing comments - improve test - optimizations - added previous tab direction in same tab group * addressing comments * [Android] support tabstop for pickers * - moving shared code to a static class - removed reflection * ITabStop -> changed to internal, renamed, added in to fastRenderers * Update ITabStop to be public * Fix : Binding Icon in ToolbarItem in TabbedPage doesn't refresh (#3761) fixes #3756 * [iOS] Fix NRE on ContextCell (#3714) fixes #3275 * [Controls] Add repo for issue #3275 * [iOS] Fix NRE when no gestures exist on table * [iOS] Null check outside loop * [iOS]Make sure to dispose/unhook when we are removed from UITableView. * Update submodule * [iOS] Don't double dispose ContextActionCell * WPF - Fix Width and Height measurement when GetDesiredSize (#3750) * WPF - Reset Width and Height when GetDesiredSize * Some formatting changes * Add APP directive * [WPF]Fix build * [Android Maps] Make markers available to subclasses (#3751) * Make markers available to subclasses * Fix build * Use Find instead of FirstOrDefault * [UITests] wait for element before querying for it (#3791) * [UITests] wait for element before querying for it * [Controls] generalize and better represent intended behavior * WPF - Fix Local store not persistant when restarting App (#3752) -fixes #3541 * WPF - Fix Local store not persistant when restarting App * Add UITest * [Controls] Add automated UI Test * [UITests] Isolate test 3408 * [UITest] Update Xamarin UITest packages * [UWP] implement Replace without reloading ListView (#3792) -fixes #3788 * [UWP] implement Replace without reloading ListView * [UWP] extract bindingcontext of new item for replace * [iOS] Use UIApperance default color for UISwitch (#3819) * [Controls] Set default color of UISwitch to Red * [iOS] Use default color from Apperance API * [UITests] replace awaits with more reliable WaitForElement (#3835) * [Core] Propagate BindingContext changes to TitleView (#3823) * [Core] Propagate BindingContext changes to TitleView * [Tests] Move UI test to Core Unit Test * [A] do not draw gradient for empty CornerRadius (#3786) Drawing CornerRadius (introduce by #1998) when the CornerRadii are actually 0 causes scaling artifacts on API < 25. This fixes the regression when no CornerRadius is set. Expect blurry border scaling with CornerRadius not empty and API < 25 - fixes #3781 * [Android] Fix WebView.Navigating event, make WebViewClient inheritable (#3780) * Extracted WebViewRenderer.WebClient to FormsWebViewClient, moved SendNavigating call from ShouldOverrideUrlLoading to OnPageStarted * Changed _webViewClient and GetWebViewClient() method to return base class * Changed public things to protected internal * Fix spaces to tabs indentation to match the coding style (#3745) * [Build] Fix merge * Fix #3097 swipe gesture not being handled in VisualElementTracker. (#3098) Fixes #3097 * Ensure that the ListViewAdapter is no longer being used by the ListVi… (#3848) fixes #3603 * Ensure that the ListViewAdapter is no longer being used by the ListView before disposing it * Remove `RemoveAllViews` from `Dispose` * Removed touching the InputScope for the IsPassword property * Put back prediction settings * When InputScope was originally numeric, switch to numeric password scope, else we leave the previous logic in place * Fixed small error and added reproduction to gallery app * Fixed issues
2018-11-27 04:10:04 +03:00
public static readonly DependencyProperty IsPasswordProperty = DependencyProperty.Register(nameof(IsPassword),
typeof(bool), typeof(FormsTextBox), new PropertyMetadata(default(bool), OnIsPasswordChanged));
2016-03-22 23:02:25 +03:00
[UWP] Changing IsPassword property changed InputScope (#4181) * Update from origin (#8) * [C] VisibilityConverter Trims input (#3581) For CSS purposes, the VisibilityConverter was added, and actually replaced the `Boolean.Parse(str)` call for parsing Visibility. `Boolean.Parse()` trims input, and the converter was not, so this was a regression. This changes Trim() the input, to be fully backward compatible. - fixes #3554 * Ensure ConstructorCountId and TimeId elements are available before querying them (#3588) * For consistency with ResourceDictionary, expose the Source for a StyleSheet (#2589) This would allow previewer/designer/reloader to determine the source of a stylesheet and refresh its content when appropriate. * Revert "For consistency with ResourceDictionary, expose the Source for a StyleSheet (#2589)" This reverts commit f66a72de5b475a6a8387a80e418997b38dc40d4c. * Fix NRE; Ret 0 if Text null (#3594) fixes #3579 * [UWP, WPF] Fixes rendering of the main page (#2896) fixes #2704 * [Core] Ignore Shamehat target when running DesignTimeBuild (#3605) * [XamlC] Fix binding compilation fo value types (#3551) properly load valuetype arguments of generated setters, using ldarg, instead of ldarga. - fixes #3539 * Update PULL_REQUEST_TEMPLATE.md * Update PULL_REQUEST_TEMPLATE.md * [Android] Fix Label LineHeight (#3452) * fix line height android * Make UAP respect initial LineHeight * update .create-nuget.bat (#3638) * Add Null Check to GetRenderer (#3575) - fix #3563 * Fix 3562 Null Reference Exception (#3576) - fixes #3562 * Fix 3564 Null Reference Exception (#3578) - fixes #3564 * [iOS] AutomationProperty support for cells (#3313) fixes #3296 * [iOS] AutomationProperty support for cells * Add test case to AutomationProperties gallery * [UWP] Fix crash app when create navigation/tabbed page without children pages fixes #3188 (#3514) * [Android] Use height when determining ScaledScreenSize; fixes #3609 (#3641) * [C] Set binding context on Span Gestures (#3639) * [Core] Set binding context on Span Gestures * [Core] Simplify loop setting child binding context - fixes #3524 * Update PULL_REQUEST_TEMPLATE.md * [Android] remove deprecated AndroidUseLatestPlatformSdk (#3672) * [iOS] iPad ActionSheet should always have a Cancel method (#3636) * Add repro for #3049 * [iOS] iPad ActionSheet should always have a Cancel method fixes #3049 * [Android] fixes #3675 - set initial ScrollView Scroll values when RTL (#3676) * [Android] API check for Shadow properties on Button (#3617) fixes #2702 * [Android] API check for Shadow properties on Button * Fix swapped shadow values * [iOS] fixes #3525 - add epsilon for float compare (#3654) * [iOS] fixes #3525 - add epsilon for float compare and make region immutable * [ControlGallery] spread out spans to account for click slop * [ControlGallery] - adjust span slightly for android test * [Core] remove private * Fix text wrapping (#3671) fixes #3634 * [GTK] Fix navigation bar visibility updates (#3651) * Fix partially #3585 (#3592) * Make webkit-sharp.dll.config cross-platform * Update webkit-sharp.dll with missing signals bindings see: https://github.com/ylatuya/webkit-sharp/tree/fluendo * [iOS, UWP] fixes #2894 - Gestures collection changes weren't correctly propagating (#3643) * [iOS, UWP] fixes #2894 - Gestures weren't wiring up to spans in all cases * [Core] remove ChildGestureRecognizers when spans get removed * [iOS] removed incorrect return from null * Fixes #3663 (#3684) * Fix ScrollView Padding issue (#3685) * [WPF] Memory leak when you pop a TabbedPage (#3372) fixes #3267 * Fix [WPF] Memory leak when you pop a TabbedPage * Update ViewRenderer.cs * Update ViewRenderer.cs * [Android,iOS,UWP] Allow Entry CursorPosition/SelectionLength to be set in ctor (#3402) fixes #3343 fixes #3633 * Add repro for #3343 + unit tests * [Core] Disallow negative values for CursorPosition/SelectionLength * [All] CursorPosition/SelectionLength can bindin ctor & clear value fixes #3343 * typo * cleanup * [iOS] Cursor snaps to end * try/catch * [CSS] add more properties (#3466) map new CSS properties: - `color` on `IColorElement` (`ActivityIndicator`, `BoxView`), `ProgressBar` and `Switch` - `row-gap` and `column-gap` on `Grid` - `transform` and `transform-origin` on `VisualElement` - `vertical-align` on `Label` add new XF-specific CSS properties - `-xf-placeholder` and `-xf-placeholder-color` on `Editor`, `Entry`, `SearchBar` - `-xf-max-length` on `InputView` (`Editor` and `Entry`) - `-xf-bar-background-color` and `-xf-bar-text-color` on `NavigationPage` and `TabbedPage` - `-xf-orientation` on `ScrollView` and `StackLayout` - `-xf-horizontal-scroll-bar-visibility` and `-xf-vertical-scroll-bar-visibility` on `ScrollView` - `-xf-min-track-color`, `-xf-max-track-color` and `("-xf-thumb-color` on `Slider` - `-xf-spacing` on `StackLayout` This PR replaces and closes #3276 - fixes #2891 * [iOS] Specify a default size for UISearchBar width if needed (#3635) fixes #3413 fixes #2139 * [Controls] Add reproduction and test case for issue #3413 * [iOS] Don't use max value for iOS UISearchbar breaks on iOS 11.3 * [iOS] Force width value so we can renderer UISearchBar on iOS10 with infinite width * [Controls] Fix spelling and add Manual Review to the test of #3413 * [iOS] Simplify code for UISearchBar width * [iOS] Return always some width from measure the UISearchBar on IOS * [Controls] Add reproduction case for issue #2139 * [UWP] Fixed double set margins in Layouts (#3570) fixes #3398 fixes #3616 * [Android] Support multiple clipping settings in single layout (#3559) * Repro * Fix for API 18+ * [iOS] Unsubscribe CellPropertyChanged when SwitchCellRenderer is disposed (#3518) * [Controls] Add repo of issue #3408 * [iOS] Unsubscribe CellPropertyChanged when cell is disposed * [Controls] Add issue to project * [iOS] Introduce CellPropertyChange to CellTableViewCell to used by all other cell renderers * [Controls] Simplify Issue * [iOS] Remove PropertyChanged that was not used * [Controls] add check for null binding on template, add notes about issues * [Controls] added reference to Android crash * [iOS]Use existing PropertyChanged on ViewCelRenderer * [iOS] Keep the existing override so we don't break users * Update TextCellRenderer.cs * update submodule * 24H Mode (#3701) The 24h mode for the pickerdialog was not working. Version 3.1 was working fine. Here is an updated file. * [UWP] uncomment tests that are now passing for 3188 (#3723) * [UITest] Update Xamarin.UITest nuget package (#3632) * [UITests] Update Xamarin.UITest 2.2.5 * [UITests] Try fix Toolbaritems * [UITest] Update to 2.2.5-1606 * [UITests] Small Fixes and workarounds to make uitest happy * [UITests ] Add delay to 1733 for API28 * [Android] Revert bad merge (#3746) fixes #3705 * [Android, iOS] Fixes layout compression causes (#3698) fixes #3624 * [Android, iOS] Fixes layout compression causes * [iOS] improve UpdateNewElement method * Fix build error hopefully * [UWP] Fixes CollectionChanged events in ListView (#3323) * fixes #3273 * [UWP] Fixes CollectionChanged events in ListView * a wrapped collection is used only if the SourceItem is not ObservableCollection * improve uitest * fixed NRE in empty ListView * added a sortable custom renderer for UItest * minor refactoring * fixed reset of not wrapped collections * addressing comments * [UWP] remove WinRT hack * [UWP] add missing using and cleanup additional resources * [Android] Update Forms to remove API28 deprecated API (#3653) fixes #2128 fixes #3629 * [Build] Update provisioning * [Controls] Ignore deprecated Android API usage * [Android] Remove use of obsolete color usage * [Android] Remove app fragment usage * [android] Rollback changes to EntryCellRenderer * [Android] Better way to get the default color for the label text * [Android] Obsolete message for ContentPage.CreateFragment() * [ControlGallery] - create bitmap from Drawable to use for pixel location * [Android] Use textcolor resource * Update submodule * Fix tests (#3771) * [ControlGallery] Wait for element and add timing to tests * [iOS] Fix NRE on RenderPool * Add TabStop/TabIndex (#2795) * [Core, UWP, Android] support TabStop/TabIndex * removing linq * add iOS / MacOS implementation * add WPF implementation fixes UWP implementation * - addressing comments - improve test - optimizations - added previous tab direction in same tab group * addressing comments * [Android] support tabstop for pickers * - moving shared code to a static class - removed reflection * ITabStop -> changed to internal, renamed, added in to fastRenderers * Update ITabStop to be public * Fix : Binding Icon in ToolbarItem in TabbedPage doesn't refresh (#3761) fixes #3756 * [iOS] Fix NRE on ContextCell (#3714) fixes #3275 * [Controls] Add repo for issue #3275 * [iOS] Fix NRE when no gestures exist on table * [iOS] Null check outside loop * [iOS]Make sure to dispose/unhook when we are removed from UITableView. * Update submodule * [iOS] Don't double dispose ContextActionCell * WPF - Fix Width and Height measurement when GetDesiredSize (#3750) * WPF - Reset Width and Height when GetDesiredSize * Some formatting changes * Add APP directive * [WPF]Fix build * [Android Maps] Make markers available to subclasses (#3751) * Make markers available to subclasses * Fix build * Use Find instead of FirstOrDefault * [UITests] wait for element before querying for it (#3791) * [UITests] wait for element before querying for it * [Controls] generalize and better represent intended behavior * WPF - Fix Local store not persistant when restarting App (#3752) -fixes #3541 * WPF - Fix Local store not persistant when restarting App * Add UITest * [Controls] Add automated UI Test * [UITests] Isolate test 3408 * [UITest] Update Xamarin UITest packages * [UWP] implement Replace without reloading ListView (#3792) -fixes #3788 * [UWP] implement Replace without reloading ListView * [UWP] extract bindingcontext of new item for replace * [iOS] Use UIApperance default color for UISwitch (#3819) * [Controls] Set default color of UISwitch to Red * [iOS] Use default color from Apperance API * [UITests] replace awaits with more reliable WaitForElement (#3835) * [Core] Propagate BindingContext changes to TitleView (#3823) * [Core] Propagate BindingContext changes to TitleView * [Tests] Move UI test to Core Unit Test * [A] do not draw gradient for empty CornerRadius (#3786) Drawing CornerRadius (introduce by #1998) when the CornerRadii are actually 0 causes scaling artifacts on API < 25. This fixes the regression when no CornerRadius is set. Expect blurry border scaling with CornerRadius not empty and API < 25 - fixes #3781 * [Android] Fix WebView.Navigating event, make WebViewClient inheritable (#3780) * Extracted WebViewRenderer.WebClient to FormsWebViewClient, moved SendNavigating call from ShouldOverrideUrlLoading to OnPageStarted * Changed _webViewClient and GetWebViewClient() method to return base class * Changed public things to protected internal * Fix spaces to tabs indentation to match the coding style (#3745) * [Build] Fix merge * Fix #3097 swipe gesture not being handled in VisualElementTracker. (#3098) Fixes #3097 * Update from origin (#9) * [C] VisibilityConverter Trims input (#3581) For CSS purposes, the VisibilityConverter was added, and actually replaced the `Boolean.Parse(str)` call for parsing Visibility. `Boolean.Parse()` trims input, and the converter was not, so this was a regression. This changes Trim() the input, to be fully backward compatible. - fixes #3554 * Ensure ConstructorCountId and TimeId elements are available before querying them (#3588) * For consistency with ResourceDictionary, expose the Source for a StyleSheet (#2589) This would allow previewer/designer/reloader to determine the source of a stylesheet and refresh its content when appropriate. * Revert "For consistency with ResourceDictionary, expose the Source for a StyleSheet (#2589)" This reverts commit f66a72de5b475a6a8387a80e418997b38dc40d4c. * Fix NRE; Ret 0 if Text null (#3594) fixes #3579 * [UWP, WPF] Fixes rendering of the main page (#2896) fixes #2704 * [Core] Ignore Shamehat target when running DesignTimeBuild (#3605) * [XamlC] Fix binding compilation fo value types (#3551) properly load valuetype arguments of generated setters, using ldarg, instead of ldarga. - fixes #3539 * Update PULL_REQUEST_TEMPLATE.md * Update PULL_REQUEST_TEMPLATE.md * [Android] Fix Label LineHeight (#3452) * fix line height android * Make UAP respect initial LineHeight * update .create-nuget.bat (#3638) * Add Null Check to GetRenderer (#3575) - fix #3563 * Fix 3562 Null Reference Exception (#3576) - fixes #3562 * Fix 3564 Null Reference Exception (#3578) - fixes #3564 * [iOS] AutomationProperty support for cells (#3313) fixes #3296 * [iOS] AutomationProperty support for cells * Add test case to AutomationProperties gallery * [UWP] Fix crash app when create navigation/tabbed page without children pages fixes #3188 (#3514) * [Android] Use height when determining ScaledScreenSize; fixes #3609 (#3641) * [C] Set binding context on Span Gestures (#3639) * [Core] Set binding context on Span Gestures * [Core] Simplify loop setting child binding context - fixes #3524 * Update PULL_REQUEST_TEMPLATE.md * [Android] remove deprecated AndroidUseLatestPlatformSdk (#3672) * [iOS] iPad ActionSheet should always have a Cancel method (#3636) * Add repro for #3049 * [iOS] iPad ActionSheet should always have a Cancel method fixes #3049 * [Android] fixes #3675 - set initial ScrollView Scroll values when RTL (#3676) * [Android] API check for Shadow properties on Button (#3617) fixes #2702 * [Android] API check for Shadow properties on Button * Fix swapped shadow values * [iOS] fixes #3525 - add epsilon for float compare (#3654) * [iOS] fixes #3525 - add epsilon for float compare and make region immutable * [ControlGallery] spread out spans to account for click slop * [ControlGallery] - adjust span slightly for android test * [Core] remove private * Fix text wrapping (#3671) fixes #3634 * [GTK] Fix navigation bar visibility updates (#3651) * Fix partially #3585 (#3592) * Make webkit-sharp.dll.config cross-platform * Update webkit-sharp.dll with missing signals bindings see: https://github.com/ylatuya/webkit-sharp/tree/fluendo * [iOS, UWP] fixes #2894 - Gestures collection changes weren't correctly propagating (#3643) * [iOS, UWP] fixes #2894 - Gestures weren't wiring up to spans in all cases * [Core] remove ChildGestureRecognizers when spans get removed * [iOS] removed incorrect return from null * Fixes #3663 (#3684) * Fix ScrollView Padding issue (#3685) * [WPF] Memory leak when you pop a TabbedPage (#3372) fixes #3267 * Fix [WPF] Memory leak when you pop a TabbedPage * Update ViewRenderer.cs * Update ViewRenderer.cs * [Android,iOS,UWP] Allow Entry CursorPosition/SelectionLength to be set in ctor (#3402) fixes #3343 fixes #3633 * Add repro for #3343 + unit tests * [Core] Disallow negative values for CursorPosition/SelectionLength * [All] CursorPosition/SelectionLength can bindin ctor & clear value fixes #3343 * typo * cleanup * [iOS] Cursor snaps to end * try/catch * [CSS] add more properties (#3466) map new CSS properties: - `color` on `IColorElement` (`ActivityIndicator`, `BoxView`), `ProgressBar` and `Switch` - `row-gap` and `column-gap` on `Grid` - `transform` and `transform-origin` on `VisualElement` - `vertical-align` on `Label` add new XF-specific CSS properties - `-xf-placeholder` and `-xf-placeholder-color` on `Editor`, `Entry`, `SearchBar` - `-xf-max-length` on `InputView` (`Editor` and `Entry`) - `-xf-bar-background-color` and `-xf-bar-text-color` on `NavigationPage` and `TabbedPage` - `-xf-orientation` on `ScrollView` and `StackLayout` - `-xf-horizontal-scroll-bar-visibility` and `-xf-vertical-scroll-bar-visibility` on `ScrollView` - `-xf-min-track-color`, `-xf-max-track-color` and `("-xf-thumb-color` on `Slider` - `-xf-spacing` on `StackLayout` This PR replaces and closes #3276 - fixes #2891 * [iOS] Specify a default size for UISearchBar width if needed (#3635) fixes #3413 fixes #2139 * [Controls] Add reproduction and test case for issue #3413 * [iOS] Don't use max value for iOS UISearchbar breaks on iOS 11.3 * [iOS] Force width value so we can renderer UISearchBar on iOS10 with infinite width * [Controls] Fix spelling and add Manual Review to the test of #3413 * [iOS] Simplify code for UISearchBar width * [iOS] Return always some width from measure the UISearchBar on IOS * [Controls] Add reproduction case for issue #2139 * [UWP] Fixed double set margins in Layouts (#3570) fixes #3398 fixes #3616 * [Android] Support multiple clipping settings in single layout (#3559) * Repro * Fix for API 18+ * [iOS] Unsubscribe CellPropertyChanged when SwitchCellRenderer is disposed (#3518) * [Controls] Add repo of issue #3408 * [iOS] Unsubscribe CellPropertyChanged when cell is disposed * [Controls] Add issue to project * [iOS] Introduce CellPropertyChange to CellTableViewCell to used by all other cell renderers * [Controls] Simplify Issue * [iOS] Remove PropertyChanged that was not used * [Controls] add check for null binding on template, add notes about issues * [Controls] added reference to Android crash * [iOS]Use existing PropertyChanged on ViewCelRenderer * [iOS] Keep the existing override so we don't break users * Update TextCellRenderer.cs * update submodule * 24H Mode (#3701) The 24h mode for the pickerdialog was not working. Version 3.1 was working fine. Here is an updated file. * [UWP] uncomment tests that are now passing for 3188 (#3723) * [UITest] Update Xamarin.UITest nuget package (#3632) * [UITests] Update Xamarin.UITest 2.2.5 * [UITests] Try fix Toolbaritems * [UITest] Update to 2.2.5-1606 * [UITests] Small Fixes and workarounds to make uitest happy * [UITests ] Add delay to 1733 for API28 * [Android] Revert bad merge (#3746) fixes #3705 * [Android, iOS] Fixes layout compression causes (#3698) fixes #3624 * [Android, iOS] Fixes layout compression causes * [iOS] improve UpdateNewElement method * Fix build error hopefully * [UWP] Fixes CollectionChanged events in ListView (#3323) * fixes #3273 * [UWP] Fixes CollectionChanged events in ListView * a wrapped collection is used only if the SourceItem is not ObservableCollection * improve uitest * fixed NRE in empty ListView * added a sortable custom renderer for UItest * minor refactoring * fixed reset of not wrapped collections * addressing comments * [UWP] remove WinRT hack * [UWP] add missing using and cleanup additional resources * [Android] Update Forms to remove API28 deprecated API (#3653) fixes #2128 fixes #3629 * [Build] Update provisioning * [Controls] Ignore deprecated Android API usage * [Android] Remove use of obsolete color usage * [Android] Remove app fragment usage * [android] Rollback changes to EntryCellRenderer * [Android] Better way to get the default color for the label text * [Android] Obsolete message for ContentPage.CreateFragment() * [ControlGallery] - create bitmap from Drawable to use for pixel location * [Android] Use textcolor resource * Update submodule * Fix tests (#3771) * [ControlGallery] Wait for element and add timing to tests * [iOS] Fix NRE on RenderPool * Add TabStop/TabIndex (#2795) * [Core, UWP, Android] support TabStop/TabIndex * removing linq * add iOS / MacOS implementation * add WPF implementation fixes UWP implementation * - addressing comments - improve test - optimizations - added previous tab direction in same tab group * addressing comments * [Android] support tabstop for pickers * - moving shared code to a static class - removed reflection * ITabStop -> changed to internal, renamed, added in to fastRenderers * Update ITabStop to be public * Fix : Binding Icon in ToolbarItem in TabbedPage doesn't refresh (#3761) fixes #3756 * [iOS] Fix NRE on ContextCell (#3714) fixes #3275 * [Controls] Add repo for issue #3275 * [iOS] Fix NRE when no gestures exist on table * [iOS] Null check outside loop * [iOS]Make sure to dispose/unhook when we are removed from UITableView. * Update submodule * [iOS] Don't double dispose ContextActionCell * WPF - Fix Width and Height measurement when GetDesiredSize (#3750) * WPF - Reset Width and Height when GetDesiredSize * Some formatting changes * Add APP directive * [WPF]Fix build * [Android Maps] Make markers available to subclasses (#3751) * Make markers available to subclasses * Fix build * Use Find instead of FirstOrDefault * [UITests] wait for element before querying for it (#3791) * [UITests] wait for element before querying for it * [Controls] generalize and better represent intended behavior * WPF - Fix Local store not persistant when restarting App (#3752) -fixes #3541 * WPF - Fix Local store not persistant when restarting App * Add UITest * [Controls] Add automated UI Test * [UITests] Isolate test 3408 * [UITest] Update Xamarin UITest packages * [UWP] implement Replace without reloading ListView (#3792) -fixes #3788 * [UWP] implement Replace without reloading ListView * [UWP] extract bindingcontext of new item for replace * [iOS] Use UIApperance default color for UISwitch (#3819) * [Controls] Set default color of UISwitch to Red * [iOS] Use default color from Apperance API * [UITests] replace awaits with more reliable WaitForElement (#3835) * [Core] Propagate BindingContext changes to TitleView (#3823) * [Core] Propagate BindingContext changes to TitleView * [Tests] Move UI test to Core Unit Test * [A] do not draw gradient for empty CornerRadius (#3786) Drawing CornerRadius (introduce by #1998) when the CornerRadii are actually 0 causes scaling artifacts on API < 25. This fixes the regression when no CornerRadius is set. Expect blurry border scaling with CornerRadius not empty and API < 25 - fixes #3781 * [Android] Fix WebView.Navigating event, make WebViewClient inheritable (#3780) * Extracted WebViewRenderer.WebClient to FormsWebViewClient, moved SendNavigating call from ShouldOverrideUrlLoading to OnPageStarted * Changed _webViewClient and GetWebViewClient() method to return base class * Changed public things to protected internal * Fix spaces to tabs indentation to match the coding style (#3745) * [Build] Fix merge * Fix #3097 swipe gesture not being handled in VisualElementTracker. (#3098) Fixes #3097 * Ensure that the ListViewAdapter is no longer being used by the ListVi… (#3848) fixes #3603 * Ensure that the ListViewAdapter is no longer being used by the ListView before disposing it * Remove `RemoveAllViews` from `Dispose` * Removed touching the InputScope for the IsPassword property * Put back prediction settings * When InputScope was originally numeric, switch to numeric password scope, else we leave the previous logic in place * Fixed small error and added reproduction to gallery app * Fixed issues
2018-11-27 04:10:04 +03:00
public new static readonly DependencyProperty TextProperty = DependencyProperty.Register(nameof(Text),
typeof(string), typeof(FormsTextBox), new PropertyMetadata("", TextPropertyChanged));
2016-03-22 23:02:25 +03:00
VisualStateManager phase 1 (#1405) * 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
2018-01-05 12:11:51 +03:00
InputScope _passwordInputScope;
[UWP] Changing IsPassword property changed InputScope (#4181) * Update from origin (#8) * [C] VisibilityConverter Trims input (#3581) For CSS purposes, the VisibilityConverter was added, and actually replaced the `Boolean.Parse(str)` call for parsing Visibility. `Boolean.Parse()` trims input, and the converter was not, so this was a regression. This changes Trim() the input, to be fully backward compatible. - fixes #3554 * Ensure ConstructorCountId and TimeId elements are available before querying them (#3588) * For consistency with ResourceDictionary, expose the Source for a StyleSheet (#2589) This would allow previewer/designer/reloader to determine the source of a stylesheet and refresh its content when appropriate. * Revert "For consistency with ResourceDictionary, expose the Source for a StyleSheet (#2589)" This reverts commit f66a72de5b475a6a8387a80e418997b38dc40d4c. * Fix NRE; Ret 0 if Text null (#3594) fixes #3579 * [UWP, WPF] Fixes rendering of the main page (#2896) fixes #2704 * [Core] Ignore Shamehat target when running DesignTimeBuild (#3605) * [XamlC] Fix binding compilation fo value types (#3551) properly load valuetype arguments of generated setters, using ldarg, instead of ldarga. - fixes #3539 * Update PULL_REQUEST_TEMPLATE.md * Update PULL_REQUEST_TEMPLATE.md * [Android] Fix Label LineHeight (#3452) * fix line height android * Make UAP respect initial LineHeight * update .create-nuget.bat (#3638) * Add Null Check to GetRenderer (#3575) - fix #3563 * Fix 3562 Null Reference Exception (#3576) - fixes #3562 * Fix 3564 Null Reference Exception (#3578) - fixes #3564 * [iOS] AutomationProperty support for cells (#3313) fixes #3296 * [iOS] AutomationProperty support for cells * Add test case to AutomationProperties gallery * [UWP] Fix crash app when create navigation/tabbed page without children pages fixes #3188 (#3514) * [Android] Use height when determining ScaledScreenSize; fixes #3609 (#3641) * [C] Set binding context on Span Gestures (#3639) * [Core] Set binding context on Span Gestures * [Core] Simplify loop setting child binding context - fixes #3524 * Update PULL_REQUEST_TEMPLATE.md * [Android] remove deprecated AndroidUseLatestPlatformSdk (#3672) * [iOS] iPad ActionSheet should always have a Cancel method (#3636) * Add repro for #3049 * [iOS] iPad ActionSheet should always have a Cancel method fixes #3049 * [Android] fixes #3675 - set initial ScrollView Scroll values when RTL (#3676) * [Android] API check for Shadow properties on Button (#3617) fixes #2702 * [Android] API check for Shadow properties on Button * Fix swapped shadow values * [iOS] fixes #3525 - add epsilon for float compare (#3654) * [iOS] fixes #3525 - add epsilon for float compare and make region immutable * [ControlGallery] spread out spans to account for click slop * [ControlGallery] - adjust span slightly for android test * [Core] remove private * Fix text wrapping (#3671) fixes #3634 * [GTK] Fix navigation bar visibility updates (#3651) * Fix partially #3585 (#3592) * Make webkit-sharp.dll.config cross-platform * Update webkit-sharp.dll with missing signals bindings see: https://github.com/ylatuya/webkit-sharp/tree/fluendo * [iOS, UWP] fixes #2894 - Gestures collection changes weren't correctly propagating (#3643) * [iOS, UWP] fixes #2894 - Gestures weren't wiring up to spans in all cases * [Core] remove ChildGestureRecognizers when spans get removed * [iOS] removed incorrect return from null * Fixes #3663 (#3684) * Fix ScrollView Padding issue (#3685) * [WPF] Memory leak when you pop a TabbedPage (#3372) fixes #3267 * Fix [WPF] Memory leak when you pop a TabbedPage * Update ViewRenderer.cs * Update ViewRenderer.cs * [Android,iOS,UWP] Allow Entry CursorPosition/SelectionLength to be set in ctor (#3402) fixes #3343 fixes #3633 * Add repro for #3343 + unit tests * [Core] Disallow negative values for CursorPosition/SelectionLength * [All] CursorPosition/SelectionLength can bindin ctor & clear value fixes #3343 * typo * cleanup * [iOS] Cursor snaps to end * try/catch * [CSS] add more properties (#3466) map new CSS properties: - `color` on `IColorElement` (`ActivityIndicator`, `BoxView`), `ProgressBar` and `Switch` - `row-gap` and `column-gap` on `Grid` - `transform` and `transform-origin` on `VisualElement` - `vertical-align` on `Label` add new XF-specific CSS properties - `-xf-placeholder` and `-xf-placeholder-color` on `Editor`, `Entry`, `SearchBar` - `-xf-max-length` on `InputView` (`Editor` and `Entry`) - `-xf-bar-background-color` and `-xf-bar-text-color` on `NavigationPage` and `TabbedPage` - `-xf-orientation` on `ScrollView` and `StackLayout` - `-xf-horizontal-scroll-bar-visibility` and `-xf-vertical-scroll-bar-visibility` on `ScrollView` - `-xf-min-track-color`, `-xf-max-track-color` and `("-xf-thumb-color` on `Slider` - `-xf-spacing` on `StackLayout` This PR replaces and closes #3276 - fixes #2891 * [iOS] Specify a default size for UISearchBar width if needed (#3635) fixes #3413 fixes #2139 * [Controls] Add reproduction and test case for issue #3413 * [iOS] Don't use max value for iOS UISearchbar breaks on iOS 11.3 * [iOS] Force width value so we can renderer UISearchBar on iOS10 with infinite width * [Controls] Fix spelling and add Manual Review to the test of #3413 * [iOS] Simplify code for UISearchBar width * [iOS] Return always some width from measure the UISearchBar on IOS * [Controls] Add reproduction case for issue #2139 * [UWP] Fixed double set margins in Layouts (#3570) fixes #3398 fixes #3616 * [Android] Support multiple clipping settings in single layout (#3559) * Repro * Fix for API 18+ * [iOS] Unsubscribe CellPropertyChanged when SwitchCellRenderer is disposed (#3518) * [Controls] Add repo of issue #3408 * [iOS] Unsubscribe CellPropertyChanged when cell is disposed * [Controls] Add issue to project * [iOS] Introduce CellPropertyChange to CellTableViewCell to used by all other cell renderers * [Controls] Simplify Issue * [iOS] Remove PropertyChanged that was not used * [Controls] add check for null binding on template, add notes about issues * [Controls] added reference to Android crash * [iOS]Use existing PropertyChanged on ViewCelRenderer * [iOS] Keep the existing override so we don't break users * Update TextCellRenderer.cs * update submodule * 24H Mode (#3701) The 24h mode for the pickerdialog was not working. Version 3.1 was working fine. Here is an updated file. * [UWP] uncomment tests that are now passing for 3188 (#3723) * [UITest] Update Xamarin.UITest nuget package (#3632) * [UITests] Update Xamarin.UITest 2.2.5 * [UITests] Try fix Toolbaritems * [UITest] Update to 2.2.5-1606 * [UITests] Small Fixes and workarounds to make uitest happy * [UITests ] Add delay to 1733 for API28 * [Android] Revert bad merge (#3746) fixes #3705 * [Android, iOS] Fixes layout compression causes (#3698) fixes #3624 * [Android, iOS] Fixes layout compression causes * [iOS] improve UpdateNewElement method * Fix build error hopefully * [UWP] Fixes CollectionChanged events in ListView (#3323) * fixes #3273 * [UWP] Fixes CollectionChanged events in ListView * a wrapped collection is used only if the SourceItem is not ObservableCollection * improve uitest * fixed NRE in empty ListView * added a sortable custom renderer for UItest * minor refactoring * fixed reset of not wrapped collections * addressing comments * [UWP] remove WinRT hack * [UWP] add missing using and cleanup additional resources * [Android] Update Forms to remove API28 deprecated API (#3653) fixes #2128 fixes #3629 * [Build] Update provisioning * [Controls] Ignore deprecated Android API usage * [Android] Remove use of obsolete color usage * [Android] Remove app fragment usage * [android] Rollback changes to EntryCellRenderer * [Android] Better way to get the default color for the label text * [Android] Obsolete message for ContentPage.CreateFragment() * [ControlGallery] - create bitmap from Drawable to use for pixel location * [Android] Use textcolor resource * Update submodule * Fix tests (#3771) * [ControlGallery] Wait for element and add timing to tests * [iOS] Fix NRE on RenderPool * Add TabStop/TabIndex (#2795) * [Core, UWP, Android] support TabStop/TabIndex * removing linq * add iOS / MacOS implementation * add WPF implementation fixes UWP implementation * - addressing comments - improve test - optimizations - added previous tab direction in same tab group * addressing comments * [Android] support tabstop for pickers * - moving shared code to a static class - removed reflection * ITabStop -> changed to internal, renamed, added in to fastRenderers * Update ITabStop to be public * Fix : Binding Icon in ToolbarItem in TabbedPage doesn't refresh (#3761) fixes #3756 * [iOS] Fix NRE on ContextCell (#3714) fixes #3275 * [Controls] Add repo for issue #3275 * [iOS] Fix NRE when no gestures exist on table * [iOS] Null check outside loop * [iOS]Make sure to dispose/unhook when we are removed from UITableView. * Update submodule * [iOS] Don't double dispose ContextActionCell * WPF - Fix Width and Height measurement when GetDesiredSize (#3750) * WPF - Reset Width and Height when GetDesiredSize * Some formatting changes * Add APP directive * [WPF]Fix build * [Android Maps] Make markers available to subclasses (#3751) * Make markers available to subclasses * Fix build * Use Find instead of FirstOrDefault * [UITests] wait for element before querying for it (#3791) * [UITests] wait for element before querying for it * [Controls] generalize and better represent intended behavior * WPF - Fix Local store not persistant when restarting App (#3752) -fixes #3541 * WPF - Fix Local store not persistant when restarting App * Add UITest * [Controls] Add automated UI Test * [UITests] Isolate test 3408 * [UITest] Update Xamarin UITest packages * [UWP] implement Replace without reloading ListView (#3792) -fixes #3788 * [UWP] implement Replace without reloading ListView * [UWP] extract bindingcontext of new item for replace * [iOS] Use UIApperance default color for UISwitch (#3819) * [Controls] Set default color of UISwitch to Red * [iOS] Use default color from Apperance API * [UITests] replace awaits with more reliable WaitForElement (#3835) * [Core] Propagate BindingContext changes to TitleView (#3823) * [Core] Propagate BindingContext changes to TitleView * [Tests] Move UI test to Core Unit Test * [A] do not draw gradient for empty CornerRadius (#3786) Drawing CornerRadius (introduce by #1998) when the CornerRadii are actually 0 causes scaling artifacts on API < 25. This fixes the regression when no CornerRadius is set. Expect blurry border scaling with CornerRadius not empty and API < 25 - fixes #3781 * [Android] Fix WebView.Navigating event, make WebViewClient inheritable (#3780) * Extracted WebViewRenderer.WebClient to FormsWebViewClient, moved SendNavigating call from ShouldOverrideUrlLoading to OnPageStarted * Changed _webViewClient and GetWebViewClient() method to return base class * Changed public things to protected internal * Fix spaces to tabs indentation to match the coding style (#3745) * [Build] Fix merge * Fix #3097 swipe gesture not being handled in VisualElementTracker. (#3098) Fixes #3097 * Update from origin (#9) * [C] VisibilityConverter Trims input (#3581) For CSS purposes, the VisibilityConverter was added, and actually replaced the `Boolean.Parse(str)` call for parsing Visibility. `Boolean.Parse()` trims input, and the converter was not, so this was a regression. This changes Trim() the input, to be fully backward compatible. - fixes #3554 * Ensure ConstructorCountId and TimeId elements are available before querying them (#3588) * For consistency with ResourceDictionary, expose the Source for a StyleSheet (#2589) This would allow previewer/designer/reloader to determine the source of a stylesheet and refresh its content when appropriate. * Revert "For consistency with ResourceDictionary, expose the Source for a StyleSheet (#2589)" This reverts commit f66a72de5b475a6a8387a80e418997b38dc40d4c. * Fix NRE; Ret 0 if Text null (#3594) fixes #3579 * [UWP, WPF] Fixes rendering of the main page (#2896) fixes #2704 * [Core] Ignore Shamehat target when running DesignTimeBuild (#3605) * [XamlC] Fix binding compilation fo value types (#3551) properly load valuetype arguments of generated setters, using ldarg, instead of ldarga. - fixes #3539 * Update PULL_REQUEST_TEMPLATE.md * Update PULL_REQUEST_TEMPLATE.md * [Android] Fix Label LineHeight (#3452) * fix line height android * Make UAP respect initial LineHeight * update .create-nuget.bat (#3638) * Add Null Check to GetRenderer (#3575) - fix #3563 * Fix 3562 Null Reference Exception (#3576) - fixes #3562 * Fix 3564 Null Reference Exception (#3578) - fixes #3564 * [iOS] AutomationProperty support for cells (#3313) fixes #3296 * [iOS] AutomationProperty support for cells * Add test case to AutomationProperties gallery * [UWP] Fix crash app when create navigation/tabbed page without children pages fixes #3188 (#3514) * [Android] Use height when determining ScaledScreenSize; fixes #3609 (#3641) * [C] Set binding context on Span Gestures (#3639) * [Core] Set binding context on Span Gestures * [Core] Simplify loop setting child binding context - fixes #3524 * Update PULL_REQUEST_TEMPLATE.md * [Android] remove deprecated AndroidUseLatestPlatformSdk (#3672) * [iOS] iPad ActionSheet should always have a Cancel method (#3636) * Add repro for #3049 * [iOS] iPad ActionSheet should always have a Cancel method fixes #3049 * [Android] fixes #3675 - set initial ScrollView Scroll values when RTL (#3676) * [Android] API check for Shadow properties on Button (#3617) fixes #2702 * [Android] API check for Shadow properties on Button * Fix swapped shadow values * [iOS] fixes #3525 - add epsilon for float compare (#3654) * [iOS] fixes #3525 - add epsilon for float compare and make region immutable * [ControlGallery] spread out spans to account for click slop * [ControlGallery] - adjust span slightly for android test * [Core] remove private * Fix text wrapping (#3671) fixes #3634 * [GTK] Fix navigation bar visibility updates (#3651) * Fix partially #3585 (#3592) * Make webkit-sharp.dll.config cross-platform * Update webkit-sharp.dll with missing signals bindings see: https://github.com/ylatuya/webkit-sharp/tree/fluendo * [iOS, UWP] fixes #2894 - Gestures collection changes weren't correctly propagating (#3643) * [iOS, UWP] fixes #2894 - Gestures weren't wiring up to spans in all cases * [Core] remove ChildGestureRecognizers when spans get removed * [iOS] removed incorrect return from null * Fixes #3663 (#3684) * Fix ScrollView Padding issue (#3685) * [WPF] Memory leak when you pop a TabbedPage (#3372) fixes #3267 * Fix [WPF] Memory leak when you pop a TabbedPage * Update ViewRenderer.cs * Update ViewRenderer.cs * [Android,iOS,UWP] Allow Entry CursorPosition/SelectionLength to be set in ctor (#3402) fixes #3343 fixes #3633 * Add repro for #3343 + unit tests * [Core] Disallow negative values for CursorPosition/SelectionLength * [All] CursorPosition/SelectionLength can bindin ctor & clear value fixes #3343 * typo * cleanup * [iOS] Cursor snaps to end * try/catch * [CSS] add more properties (#3466) map new CSS properties: - `color` on `IColorElement` (`ActivityIndicator`, `BoxView`), `ProgressBar` and `Switch` - `row-gap` and `column-gap` on `Grid` - `transform` and `transform-origin` on `VisualElement` - `vertical-align` on `Label` add new XF-specific CSS properties - `-xf-placeholder` and `-xf-placeholder-color` on `Editor`, `Entry`, `SearchBar` - `-xf-max-length` on `InputView` (`Editor` and `Entry`) - `-xf-bar-background-color` and `-xf-bar-text-color` on `NavigationPage` and `TabbedPage` - `-xf-orientation` on `ScrollView` and `StackLayout` - `-xf-horizontal-scroll-bar-visibility` and `-xf-vertical-scroll-bar-visibility` on `ScrollView` - `-xf-min-track-color`, `-xf-max-track-color` and `("-xf-thumb-color` on `Slider` - `-xf-spacing` on `StackLayout` This PR replaces and closes #3276 - fixes #2891 * [iOS] Specify a default size for UISearchBar width if needed (#3635) fixes #3413 fixes #2139 * [Controls] Add reproduction and test case for issue #3413 * [iOS] Don't use max value for iOS UISearchbar breaks on iOS 11.3 * [iOS] Force width value so we can renderer UISearchBar on iOS10 with infinite width * [Controls] Fix spelling and add Manual Review to the test of #3413 * [iOS] Simplify code for UISearchBar width * [iOS] Return always some width from measure the UISearchBar on IOS * [Controls] Add reproduction case for issue #2139 * [UWP] Fixed double set margins in Layouts (#3570) fixes #3398 fixes #3616 * [Android] Support multiple clipping settings in single layout (#3559) * Repro * Fix for API 18+ * [iOS] Unsubscribe CellPropertyChanged when SwitchCellRenderer is disposed (#3518) * [Controls] Add repo of issue #3408 * [iOS] Unsubscribe CellPropertyChanged when cell is disposed * [Controls] Add issue to project * [iOS] Introduce CellPropertyChange to CellTableViewCell to used by all other cell renderers * [Controls] Simplify Issue * [iOS] Remove PropertyChanged that was not used * [Controls] add check for null binding on template, add notes about issues * [Controls] added reference to Android crash * [iOS]Use existing PropertyChanged on ViewCelRenderer * [iOS] Keep the existing override so we don't break users * Update TextCellRenderer.cs * update submodule * 24H Mode (#3701) The 24h mode for the pickerdialog was not working. Version 3.1 was working fine. Here is an updated file. * [UWP] uncomment tests that are now passing for 3188 (#3723) * [UITest] Update Xamarin.UITest nuget package (#3632) * [UITests] Update Xamarin.UITest 2.2.5 * [UITests] Try fix Toolbaritems * [UITest] Update to 2.2.5-1606 * [UITests] Small Fixes and workarounds to make uitest happy * [UITests ] Add delay to 1733 for API28 * [Android] Revert bad merge (#3746) fixes #3705 * [Android, iOS] Fixes layout compression causes (#3698) fixes #3624 * [Android, iOS] Fixes layout compression causes * [iOS] improve UpdateNewElement method * Fix build error hopefully * [UWP] Fixes CollectionChanged events in ListView (#3323) * fixes #3273 * [UWP] Fixes CollectionChanged events in ListView * a wrapped collection is used only if the SourceItem is not ObservableCollection * improve uitest * fixed NRE in empty ListView * added a sortable custom renderer for UItest * minor refactoring * fixed reset of not wrapped collections * addressing comments * [UWP] remove WinRT hack * [UWP] add missing using and cleanup additional resources * [Android] Update Forms to remove API28 deprecated API (#3653) fixes #2128 fixes #3629 * [Build] Update provisioning * [Controls] Ignore deprecated Android API usage * [Android] Remove use of obsolete color usage * [Android] Remove app fragment usage * [android] Rollback changes to EntryCellRenderer * [Android] Better way to get the default color for the label text * [Android] Obsolete message for ContentPage.CreateFragment() * [ControlGallery] - create bitmap from Drawable to use for pixel location * [Android] Use textcolor resource * Update submodule * Fix tests (#3771) * [ControlGallery] Wait for element and add timing to tests * [iOS] Fix NRE on RenderPool * Add TabStop/TabIndex (#2795) * [Core, UWP, Android] support TabStop/TabIndex * removing linq * add iOS / MacOS implementation * add WPF implementation fixes UWP implementation * - addressing comments - improve test - optimizations - added previous tab direction in same tab group * addressing comments * [Android] support tabstop for pickers * - moving shared code to a static class - removed reflection * ITabStop -> changed to internal, renamed, added in to fastRenderers * Update ITabStop to be public * Fix : Binding Icon in ToolbarItem in TabbedPage doesn't refresh (#3761) fixes #3756 * [iOS] Fix NRE on ContextCell (#3714) fixes #3275 * [Controls] Add repo for issue #3275 * [iOS] Fix NRE when no gestures exist on table * [iOS] Null check outside loop * [iOS]Make sure to dispose/unhook when we are removed from UITableView. * Update submodule * [iOS] Don't double dispose ContextActionCell * WPF - Fix Width and Height measurement when GetDesiredSize (#3750) * WPF - Reset Width and Height when GetDesiredSize * Some formatting changes * Add APP directive * [WPF]Fix build * [Android Maps] Make markers available to subclasses (#3751) * Make markers available to subclasses * Fix build * Use Find instead of FirstOrDefault * [UITests] wait for element before querying for it (#3791) * [UITests] wait for element before querying for it * [Controls] generalize and better represent intended behavior * WPF - Fix Local store not persistant when restarting App (#3752) -fixes #3541 * WPF - Fix Local store not persistant when restarting App * Add UITest * [Controls] Add automated UI Test * [UITests] Isolate test 3408 * [UITest] Update Xamarin UITest packages * [UWP] implement Replace without reloading ListView (#3792) -fixes #3788 * [UWP] implement Replace without reloading ListView * [UWP] extract bindingcontext of new item for replace * [iOS] Use UIApperance default color for UISwitch (#3819) * [Controls] Set default color of UISwitch to Red * [iOS] Use default color from Apperance API * [UITests] replace awaits with more reliable WaitForElement (#3835) * [Core] Propagate BindingContext changes to TitleView (#3823) * [Core] Propagate BindingContext changes to TitleView * [Tests] Move UI test to Core Unit Test * [A] do not draw gradient for empty CornerRadius (#3786) Drawing CornerRadius (introduce by #1998) when the CornerRadii are actually 0 causes scaling artifacts on API < 25. This fixes the regression when no CornerRadius is set. Expect blurry border scaling with CornerRadius not empty and API < 25 - fixes #3781 * [Android] Fix WebView.Navigating event, make WebViewClient inheritable (#3780) * Extracted WebViewRenderer.WebClient to FormsWebViewClient, moved SendNavigating call from ShouldOverrideUrlLoading to OnPageStarted * Changed _webViewClient and GetWebViewClient() method to return base class * Changed public things to protected internal * Fix spaces to tabs indentation to match the coding style (#3745) * [Build] Fix merge * Fix #3097 swipe gesture not being handled in VisualElementTracker. (#3098) Fixes #3097 * Ensure that the ListViewAdapter is no longer being used by the ListVi… (#3848) fixes #3603 * Ensure that the ListViewAdapter is no longer being used by the ListView before disposing it * Remove `RemoveAllViews` from `Dispose` * Removed touching the InputScope for the IsPassword property * Put back prediction settings * When InputScope was originally numeric, switch to numeric password scope, else we leave the previous logic in place * Fixed small error and added reproduction to gallery app * Fixed issues
2018-11-27 04:10:04 +03:00
InputScope _numericPasswordInputScope;
2016-03-22 23:02:25 +03:00
Border _borderElement;
InputScope _cachedInputScope;
bool _cachedPredictionsSetting;
bool _cachedSpellCheckSetting;
CancellationTokenSource _cts;
bool _internalChangeFlag;
int _cachedSelectionLength;
2016-03-22 23:02:25 +03:00
public FormsTextBox()
{
TextChanged += OnTextChanged;
SelectionChanged += OnSelectionChanged;
VisualStateManager phase 1 (#1405) * 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
2018-01-05 12:11:51 +03:00
IsEnabledChanged += OnIsEnabledChanged;
}
void OnIsEnabledChanged(object sender, DependencyPropertyChangedEventArgs dependencyPropertyChangedEventArgs)
{
UpdateEnabled();
2016-03-22 23:02:25 +03:00
}
public Brush BackgroundFocusBrush
{
get { return (Brush)GetValue(BackgroundFocusBrushProperty); }
set { SetValue(BackgroundFocusBrushProperty, value); }
}
public Brush ForegroundFocusBrush
{
get { return (Brush)GetValue(ForegroundFocusBrushProperty); }
set { SetValue(ForegroundFocusBrushProperty, value); }
}
public bool IsPassword
{
get { return (bool)GetValue(IsPasswordProperty); }
set { SetValue(IsPasswordProperty, value); }
}
VisualStateManager phase 1 (#1405) * 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
2018-01-05 12:11:51 +03:00
internal bool UseFormsVsm { get; set; }
2016-03-22 23:02:25 +03:00
public Brush PlaceholderForegroundBrush
{
get { return (Brush)GetValue(PlaceholderForegroundBrushProperty); }
set { SetValue(PlaceholderForegroundBrushProperty, value); }
}
public Brush PlaceholderForegroundFocusBrush
{
get { return (Brush)GetValue(PlaceholderForegroundFocusBrushProperty); }
set { SetValue(PlaceholderForegroundFocusBrushProperty, value); }
}
public new string Text
{
get { return (string)GetValue(TextProperty); }
set { SetValue(TextProperty, value); }
}
InputScope PasswordInputScope
2016-03-22 23:02:25 +03:00
{
get
{
VisualStateManager phase 1 (#1405) * 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
2018-01-05 12:11:51 +03:00
if (_passwordInputScope != null)
2016-03-22 23:02:25 +03:00
{
VisualStateManager phase 1 (#1405) * 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
2018-01-05 12:11:51 +03:00
return _passwordInputScope;
2016-03-22 23:02:25 +03:00
}
VisualStateManager phase 1 (#1405) * 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
2018-01-05 12:11:51 +03:00
_passwordInputScope = new InputScope();
2016-03-22 23:02:25 +03:00
var name = new InputScopeName { NameValue = InputScopeNameValue.Default };
VisualStateManager phase 1 (#1405) * 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
2018-01-05 12:11:51 +03:00
_passwordInputScope.Names.Add(name);
2016-03-22 23:02:25 +03:00
VisualStateManager phase 1 (#1405) * 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
2018-01-05 12:11:51 +03:00
return _passwordInputScope;
2016-03-22 23:02:25 +03:00
}
}
[UWP] Changing IsPassword property changed InputScope (#4181) * Update from origin (#8) * [C] VisibilityConverter Trims input (#3581) For CSS purposes, the VisibilityConverter was added, and actually replaced the `Boolean.Parse(str)` call for parsing Visibility. `Boolean.Parse()` trims input, and the converter was not, so this was a regression. This changes Trim() the input, to be fully backward compatible. - fixes #3554 * Ensure ConstructorCountId and TimeId elements are available before querying them (#3588) * For consistency with ResourceDictionary, expose the Source for a StyleSheet (#2589) This would allow previewer/designer/reloader to determine the source of a stylesheet and refresh its content when appropriate. * Revert "For consistency with ResourceDictionary, expose the Source for a StyleSheet (#2589)" This reverts commit f66a72de5b475a6a8387a80e418997b38dc40d4c. * Fix NRE; Ret 0 if Text null (#3594) fixes #3579 * [UWP, WPF] Fixes rendering of the main page (#2896) fixes #2704 * [Core] Ignore Shamehat target when running DesignTimeBuild (#3605) * [XamlC] Fix binding compilation fo value types (#3551) properly load valuetype arguments of generated setters, using ldarg, instead of ldarga. - fixes #3539 * Update PULL_REQUEST_TEMPLATE.md * Update PULL_REQUEST_TEMPLATE.md * [Android] Fix Label LineHeight (#3452) * fix line height android * Make UAP respect initial LineHeight * update .create-nuget.bat (#3638) * Add Null Check to GetRenderer (#3575) - fix #3563 * Fix 3562 Null Reference Exception (#3576) - fixes #3562 * Fix 3564 Null Reference Exception (#3578) - fixes #3564 * [iOS] AutomationProperty support for cells (#3313) fixes #3296 * [iOS] AutomationProperty support for cells * Add test case to AutomationProperties gallery * [UWP] Fix crash app when create navigation/tabbed page without children pages fixes #3188 (#3514) * [Android] Use height when determining ScaledScreenSize; fixes #3609 (#3641) * [C] Set binding context on Span Gestures (#3639) * [Core] Set binding context on Span Gestures * [Core] Simplify loop setting child binding context - fixes #3524 * Update PULL_REQUEST_TEMPLATE.md * [Android] remove deprecated AndroidUseLatestPlatformSdk (#3672) * [iOS] iPad ActionSheet should always have a Cancel method (#3636) * Add repro for #3049 * [iOS] iPad ActionSheet should always have a Cancel method fixes #3049 * [Android] fixes #3675 - set initial ScrollView Scroll values when RTL (#3676) * [Android] API check for Shadow properties on Button (#3617) fixes #2702 * [Android] API check for Shadow properties on Button * Fix swapped shadow values * [iOS] fixes #3525 - add epsilon for float compare (#3654) * [iOS] fixes #3525 - add epsilon for float compare and make region immutable * [ControlGallery] spread out spans to account for click slop * [ControlGallery] - adjust span slightly for android test * [Core] remove private * Fix text wrapping (#3671) fixes #3634 * [GTK] Fix navigation bar visibility updates (#3651) * Fix partially #3585 (#3592) * Make webkit-sharp.dll.config cross-platform * Update webkit-sharp.dll with missing signals bindings see: https://github.com/ylatuya/webkit-sharp/tree/fluendo * [iOS, UWP] fixes #2894 - Gestures collection changes weren't correctly propagating (#3643) * [iOS, UWP] fixes #2894 - Gestures weren't wiring up to spans in all cases * [Core] remove ChildGestureRecognizers when spans get removed * [iOS] removed incorrect return from null * Fixes #3663 (#3684) * Fix ScrollView Padding issue (#3685) * [WPF] Memory leak when you pop a TabbedPage (#3372) fixes #3267 * Fix [WPF] Memory leak when you pop a TabbedPage * Update ViewRenderer.cs * Update ViewRenderer.cs * [Android,iOS,UWP] Allow Entry CursorPosition/SelectionLength to be set in ctor (#3402) fixes #3343 fixes #3633 * Add repro for #3343 + unit tests * [Core] Disallow negative values for CursorPosition/SelectionLength * [All] CursorPosition/SelectionLength can bindin ctor & clear value fixes #3343 * typo * cleanup * [iOS] Cursor snaps to end * try/catch * [CSS] add more properties (#3466) map new CSS properties: - `color` on `IColorElement` (`ActivityIndicator`, `BoxView`), `ProgressBar` and `Switch` - `row-gap` and `column-gap` on `Grid` - `transform` and `transform-origin` on `VisualElement` - `vertical-align` on `Label` add new XF-specific CSS properties - `-xf-placeholder` and `-xf-placeholder-color` on `Editor`, `Entry`, `SearchBar` - `-xf-max-length` on `InputView` (`Editor` and `Entry`) - `-xf-bar-background-color` and `-xf-bar-text-color` on `NavigationPage` and `TabbedPage` - `-xf-orientation` on `ScrollView` and `StackLayout` - `-xf-horizontal-scroll-bar-visibility` and `-xf-vertical-scroll-bar-visibility` on `ScrollView` - `-xf-min-track-color`, `-xf-max-track-color` and `("-xf-thumb-color` on `Slider` - `-xf-spacing` on `StackLayout` This PR replaces and closes #3276 - fixes #2891 * [iOS] Specify a default size for UISearchBar width if needed (#3635) fixes #3413 fixes #2139 * [Controls] Add reproduction and test case for issue #3413 * [iOS] Don't use max value for iOS UISearchbar breaks on iOS 11.3 * [iOS] Force width value so we can renderer UISearchBar on iOS10 with infinite width * [Controls] Fix spelling and add Manual Review to the test of #3413 * [iOS] Simplify code for UISearchBar width * [iOS] Return always some width from measure the UISearchBar on IOS * [Controls] Add reproduction case for issue #2139 * [UWP] Fixed double set margins in Layouts (#3570) fixes #3398 fixes #3616 * [Android] Support multiple clipping settings in single layout (#3559) * Repro * Fix for API 18+ * [iOS] Unsubscribe CellPropertyChanged when SwitchCellRenderer is disposed (#3518) * [Controls] Add repo of issue #3408 * [iOS] Unsubscribe CellPropertyChanged when cell is disposed * [Controls] Add issue to project * [iOS] Introduce CellPropertyChange to CellTableViewCell to used by all other cell renderers * [Controls] Simplify Issue * [iOS] Remove PropertyChanged that was not used * [Controls] add check for null binding on template, add notes about issues * [Controls] added reference to Android crash * [iOS]Use existing PropertyChanged on ViewCelRenderer * [iOS] Keep the existing override so we don't break users * Update TextCellRenderer.cs * update submodule * 24H Mode (#3701) The 24h mode for the pickerdialog was not working. Version 3.1 was working fine. Here is an updated file. * [UWP] uncomment tests that are now passing for 3188 (#3723) * [UITest] Update Xamarin.UITest nuget package (#3632) * [UITests] Update Xamarin.UITest 2.2.5 * [UITests] Try fix Toolbaritems * [UITest] Update to 2.2.5-1606 * [UITests] Small Fixes and workarounds to make uitest happy * [UITests ] Add delay to 1733 for API28 * [Android] Revert bad merge (#3746) fixes #3705 * [Android, iOS] Fixes layout compression causes (#3698) fixes #3624 * [Android, iOS] Fixes layout compression causes * [iOS] improve UpdateNewElement method * Fix build error hopefully * [UWP] Fixes CollectionChanged events in ListView (#3323) * fixes #3273 * [UWP] Fixes CollectionChanged events in ListView * a wrapped collection is used only if the SourceItem is not ObservableCollection * improve uitest * fixed NRE in empty ListView * added a sortable custom renderer for UItest * minor refactoring * fixed reset of not wrapped collections * addressing comments * [UWP] remove WinRT hack * [UWP] add missing using and cleanup additional resources * [Android] Update Forms to remove API28 deprecated API (#3653) fixes #2128 fixes #3629 * [Build] Update provisioning * [Controls] Ignore deprecated Android API usage * [Android] Remove use of obsolete color usage * [Android] Remove app fragment usage * [android] Rollback changes to EntryCellRenderer * [Android] Better way to get the default color for the label text * [Android] Obsolete message for ContentPage.CreateFragment() * [ControlGallery] - create bitmap from Drawable to use for pixel location * [Android] Use textcolor resource * Update submodule * Fix tests (#3771) * [ControlGallery] Wait for element and add timing to tests * [iOS] Fix NRE on RenderPool * Add TabStop/TabIndex (#2795) * [Core, UWP, Android] support TabStop/TabIndex * removing linq * add iOS / MacOS implementation * add WPF implementation fixes UWP implementation * - addressing comments - improve test - optimizations - added previous tab direction in same tab group * addressing comments * [Android] support tabstop for pickers * - moving shared code to a static class - removed reflection * ITabStop -> changed to internal, renamed, added in to fastRenderers * Update ITabStop to be public * Fix : Binding Icon in ToolbarItem in TabbedPage doesn't refresh (#3761) fixes #3756 * [iOS] Fix NRE on ContextCell (#3714) fixes #3275 * [Controls] Add repo for issue #3275 * [iOS] Fix NRE when no gestures exist on table * [iOS] Null check outside loop * [iOS]Make sure to dispose/unhook when we are removed from UITableView. * Update submodule * [iOS] Don't double dispose ContextActionCell * WPF - Fix Width and Height measurement when GetDesiredSize (#3750) * WPF - Reset Width and Height when GetDesiredSize * Some formatting changes * Add APP directive * [WPF]Fix build * [Android Maps] Make markers available to subclasses (#3751) * Make markers available to subclasses * Fix build * Use Find instead of FirstOrDefault * [UITests] wait for element before querying for it (#3791) * [UITests] wait for element before querying for it * [Controls] generalize and better represent intended behavior * WPF - Fix Local store not persistant when restarting App (#3752) -fixes #3541 * WPF - Fix Local store not persistant when restarting App * Add UITest * [Controls] Add automated UI Test * [UITests] Isolate test 3408 * [UITest] Update Xamarin UITest packages * [UWP] implement Replace without reloading ListView (#3792) -fixes #3788 * [UWP] implement Replace without reloading ListView * [UWP] extract bindingcontext of new item for replace * [iOS] Use UIApperance default color for UISwitch (#3819) * [Controls] Set default color of UISwitch to Red * [iOS] Use default color from Apperance API * [UITests] replace awaits with more reliable WaitForElement (#3835) * [Core] Propagate BindingContext changes to TitleView (#3823) * [Core] Propagate BindingContext changes to TitleView * [Tests] Move UI test to Core Unit Test * [A] do not draw gradient for empty CornerRadius (#3786) Drawing CornerRadius (introduce by #1998) when the CornerRadii are actually 0 causes scaling artifacts on API < 25. This fixes the regression when no CornerRadius is set. Expect blurry border scaling with CornerRadius not empty and API < 25 - fixes #3781 * [Android] Fix WebView.Navigating event, make WebViewClient inheritable (#3780) * Extracted WebViewRenderer.WebClient to FormsWebViewClient, moved SendNavigating call from ShouldOverrideUrlLoading to OnPageStarted * Changed _webViewClient and GetWebViewClient() method to return base class * Changed public things to protected internal * Fix spaces to tabs indentation to match the coding style (#3745) * [Build] Fix merge * Fix #3097 swipe gesture not being handled in VisualElementTracker. (#3098) Fixes #3097 * Update from origin (#9) * [C] VisibilityConverter Trims input (#3581) For CSS purposes, the VisibilityConverter was added, and actually replaced the `Boolean.Parse(str)` call for parsing Visibility. `Boolean.Parse()` trims input, and the converter was not, so this was a regression. This changes Trim() the input, to be fully backward compatible. - fixes #3554 * Ensure ConstructorCountId and TimeId elements are available before querying them (#3588) * For consistency with ResourceDictionary, expose the Source for a StyleSheet (#2589) This would allow previewer/designer/reloader to determine the source of a stylesheet and refresh its content when appropriate. * Revert "For consistency with ResourceDictionary, expose the Source for a StyleSheet (#2589)" This reverts commit f66a72de5b475a6a8387a80e418997b38dc40d4c. * Fix NRE; Ret 0 if Text null (#3594) fixes #3579 * [UWP, WPF] Fixes rendering of the main page (#2896) fixes #2704 * [Core] Ignore Shamehat target when running DesignTimeBuild (#3605) * [XamlC] Fix binding compilation fo value types (#3551) properly load valuetype arguments of generated setters, using ldarg, instead of ldarga. - fixes #3539 * Update PULL_REQUEST_TEMPLATE.md * Update PULL_REQUEST_TEMPLATE.md * [Android] Fix Label LineHeight (#3452) * fix line height android * Make UAP respect initial LineHeight * update .create-nuget.bat (#3638) * Add Null Check to GetRenderer (#3575) - fix #3563 * Fix 3562 Null Reference Exception (#3576) - fixes #3562 * Fix 3564 Null Reference Exception (#3578) - fixes #3564 * [iOS] AutomationProperty support for cells (#3313) fixes #3296 * [iOS] AutomationProperty support for cells * Add test case to AutomationProperties gallery * [UWP] Fix crash app when create navigation/tabbed page without children pages fixes #3188 (#3514) * [Android] Use height when determining ScaledScreenSize; fixes #3609 (#3641) * [C] Set binding context on Span Gestures (#3639) * [Core] Set binding context on Span Gestures * [Core] Simplify loop setting child binding context - fixes #3524 * Update PULL_REQUEST_TEMPLATE.md * [Android] remove deprecated AndroidUseLatestPlatformSdk (#3672) * [iOS] iPad ActionSheet should always have a Cancel method (#3636) * Add repro for #3049 * [iOS] iPad ActionSheet should always have a Cancel method fixes #3049 * [Android] fixes #3675 - set initial ScrollView Scroll values when RTL (#3676) * [Android] API check for Shadow properties on Button (#3617) fixes #2702 * [Android] API check for Shadow properties on Button * Fix swapped shadow values * [iOS] fixes #3525 - add epsilon for float compare (#3654) * [iOS] fixes #3525 - add epsilon for float compare and make region immutable * [ControlGallery] spread out spans to account for click slop * [ControlGallery] - adjust span slightly for android test * [Core] remove private * Fix text wrapping (#3671) fixes #3634 * [GTK] Fix navigation bar visibility updates (#3651) * Fix partially #3585 (#3592) * Make webkit-sharp.dll.config cross-platform * Update webkit-sharp.dll with missing signals bindings see: https://github.com/ylatuya/webkit-sharp/tree/fluendo * [iOS, UWP] fixes #2894 - Gestures collection changes weren't correctly propagating (#3643) * [iOS, UWP] fixes #2894 - Gestures weren't wiring up to spans in all cases * [Core] remove ChildGestureRecognizers when spans get removed * [iOS] removed incorrect return from null * Fixes #3663 (#3684) * Fix ScrollView Padding issue (#3685) * [WPF] Memory leak when you pop a TabbedPage (#3372) fixes #3267 * Fix [WPF] Memory leak when you pop a TabbedPage * Update ViewRenderer.cs * Update ViewRenderer.cs * [Android,iOS,UWP] Allow Entry CursorPosition/SelectionLength to be set in ctor (#3402) fixes #3343 fixes #3633 * Add repro for #3343 + unit tests * [Core] Disallow negative values for CursorPosition/SelectionLength * [All] CursorPosition/SelectionLength can bindin ctor & clear value fixes #3343 * typo * cleanup * [iOS] Cursor snaps to end * try/catch * [CSS] add more properties (#3466) map new CSS properties: - `color` on `IColorElement` (`ActivityIndicator`, `BoxView`), `ProgressBar` and `Switch` - `row-gap` and `column-gap` on `Grid` - `transform` and `transform-origin` on `VisualElement` - `vertical-align` on `Label` add new XF-specific CSS properties - `-xf-placeholder` and `-xf-placeholder-color` on `Editor`, `Entry`, `SearchBar` - `-xf-max-length` on `InputView` (`Editor` and `Entry`) - `-xf-bar-background-color` and `-xf-bar-text-color` on `NavigationPage` and `TabbedPage` - `-xf-orientation` on `ScrollView` and `StackLayout` - `-xf-horizontal-scroll-bar-visibility` and `-xf-vertical-scroll-bar-visibility` on `ScrollView` - `-xf-min-track-color`, `-xf-max-track-color` and `("-xf-thumb-color` on `Slider` - `-xf-spacing` on `StackLayout` This PR replaces and closes #3276 - fixes #2891 * [iOS] Specify a default size for UISearchBar width if needed (#3635) fixes #3413 fixes #2139 * [Controls] Add reproduction and test case for issue #3413 * [iOS] Don't use max value for iOS UISearchbar breaks on iOS 11.3 * [iOS] Force width value so we can renderer UISearchBar on iOS10 with infinite width * [Controls] Fix spelling and add Manual Review to the test of #3413 * [iOS] Simplify code for UISearchBar width * [iOS] Return always some width from measure the UISearchBar on IOS * [Controls] Add reproduction case for issue #2139 * [UWP] Fixed double set margins in Layouts (#3570) fixes #3398 fixes #3616 * [Android] Support multiple clipping settings in single layout (#3559) * Repro * Fix for API 18+ * [iOS] Unsubscribe CellPropertyChanged when SwitchCellRenderer is disposed (#3518) * [Controls] Add repo of issue #3408 * [iOS] Unsubscribe CellPropertyChanged when cell is disposed * [Controls] Add issue to project * [iOS] Introduce CellPropertyChange to CellTableViewCell to used by all other cell renderers * [Controls] Simplify Issue * [iOS] Remove PropertyChanged that was not used * [Controls] add check for null binding on template, add notes about issues * [Controls] added reference to Android crash * [iOS]Use existing PropertyChanged on ViewCelRenderer * [iOS] Keep the existing override so we don't break users * Update TextCellRenderer.cs * update submodule * 24H Mode (#3701) The 24h mode for the pickerdialog was not working. Version 3.1 was working fine. Here is an updated file. * [UWP] uncomment tests that are now passing for 3188 (#3723) * [UITest] Update Xamarin.UITest nuget package (#3632) * [UITests] Update Xamarin.UITest 2.2.5 * [UITests] Try fix Toolbaritems * [UITest] Update to 2.2.5-1606 * [UITests] Small Fixes and workarounds to make uitest happy * [UITests ] Add delay to 1733 for API28 * [Android] Revert bad merge (#3746) fixes #3705 * [Android, iOS] Fixes layout compression causes (#3698) fixes #3624 * [Android, iOS] Fixes layout compression causes * [iOS] improve UpdateNewElement method * Fix build error hopefully * [UWP] Fixes CollectionChanged events in ListView (#3323) * fixes #3273 * [UWP] Fixes CollectionChanged events in ListView * a wrapped collection is used only if the SourceItem is not ObservableCollection * improve uitest * fixed NRE in empty ListView * added a sortable custom renderer for UItest * minor refactoring * fixed reset of not wrapped collections * addressing comments * [UWP] remove WinRT hack * [UWP] add missing using and cleanup additional resources * [Android] Update Forms to remove API28 deprecated API (#3653) fixes #2128 fixes #3629 * [Build] Update provisioning * [Controls] Ignore deprecated Android API usage * [Android] Remove use of obsolete color usage * [Android] Remove app fragment usage * [android] Rollback changes to EntryCellRenderer * [Android] Better way to get the default color for the label text * [Android] Obsolete message for ContentPage.CreateFragment() * [ControlGallery] - create bitmap from Drawable to use for pixel location * [Android] Use textcolor resource * Update submodule * Fix tests (#3771) * [ControlGallery] Wait for element and add timing to tests * [iOS] Fix NRE on RenderPool * Add TabStop/TabIndex (#2795) * [Core, UWP, Android] support TabStop/TabIndex * removing linq * add iOS / MacOS implementation * add WPF implementation fixes UWP implementation * - addressing comments - improve test - optimizations - added previous tab direction in same tab group * addressing comments * [Android] support tabstop for pickers * - moving shared code to a static class - removed reflection * ITabStop -> changed to internal, renamed, added in to fastRenderers * Update ITabStop to be public * Fix : Binding Icon in ToolbarItem in TabbedPage doesn't refresh (#3761) fixes #3756 * [iOS] Fix NRE on ContextCell (#3714) fixes #3275 * [Controls] Add repo for issue #3275 * [iOS] Fix NRE when no gestures exist on table * [iOS] Null check outside loop * [iOS]Make sure to dispose/unhook when we are removed from UITableView. * Update submodule * [iOS] Don't double dispose ContextActionCell * WPF - Fix Width and Height measurement when GetDesiredSize (#3750) * WPF - Reset Width and Height when GetDesiredSize * Some formatting changes * Add APP directive * [WPF]Fix build * [Android Maps] Make markers available to subclasses (#3751) * Make markers available to subclasses * Fix build * Use Find instead of FirstOrDefault * [UITests] wait for element before querying for it (#3791) * [UITests] wait for element before querying for it * [Controls] generalize and better represent intended behavior * WPF - Fix Local store not persistant when restarting App (#3752) -fixes #3541 * WPF - Fix Local store not persistant when restarting App * Add UITest * [Controls] Add automated UI Test * [UITests] Isolate test 3408 * [UITest] Update Xamarin UITest packages * [UWP] implement Replace without reloading ListView (#3792) -fixes #3788 * [UWP] implement Replace without reloading ListView * [UWP] extract bindingcontext of new item for replace * [iOS] Use UIApperance default color for UISwitch (#3819) * [Controls] Set default color of UISwitch to Red * [iOS] Use default color from Apperance API * [UITests] replace awaits with more reliable WaitForElement (#3835) * [Core] Propagate BindingContext changes to TitleView (#3823) * [Core] Propagate BindingContext changes to TitleView * [Tests] Move UI test to Core Unit Test * [A] do not draw gradient for empty CornerRadius (#3786) Drawing CornerRadius (introduce by #1998) when the CornerRadii are actually 0 causes scaling artifacts on API < 25. This fixes the regression when no CornerRadius is set. Expect blurry border scaling with CornerRadius not empty and API < 25 - fixes #3781 * [Android] Fix WebView.Navigating event, make WebViewClient inheritable (#3780) * Extracted WebViewRenderer.WebClient to FormsWebViewClient, moved SendNavigating call from ShouldOverrideUrlLoading to OnPageStarted * Changed _webViewClient and GetWebViewClient() method to return base class * Changed public things to protected internal * Fix spaces to tabs indentation to match the coding style (#3745) * [Build] Fix merge * Fix #3097 swipe gesture not being handled in VisualElementTracker. (#3098) Fixes #3097 * Ensure that the ListViewAdapter is no longer being used by the ListVi… (#3848) fixes #3603 * Ensure that the ListViewAdapter is no longer being used by the ListView before disposing it * Remove `RemoveAllViews` from `Dispose` * Removed touching the InputScope for the IsPassword property * Put back prediction settings * When InputScope was originally numeric, switch to numeric password scope, else we leave the previous logic in place * Fixed small error and added reproduction to gallery app * Fixed issues
2018-11-27 04:10:04 +03:00
InputScope NumericPasswordInputScope
{
get
{
if (_numericPasswordInputScope != null)
{
return _numericPasswordInputScope;
}
_numericPasswordInputScope = new InputScope();
var name = new InputScopeName { NameValue = InputScopeNameValue.NumericPassword };
_numericPasswordInputScope.Names.Add(name);
return _numericPasswordInputScope;
}
}
2016-03-22 23:02:25 +03:00
protected override void OnApplyTemplate()
{
base.OnApplyTemplate();
if (Device.Idiom == TargetIdiom.Phone)
{
// If we're on the phone, we need to grab this from the template
// so we can manually handle its background when focused
2016-03-22 23:02:25 +03:00
_borderElement = (Border)GetTemplateChild("BorderElement");
}
}
void DelayObfuscation()
{
int lengthDifference = base.Text.Length - Text.Length;
string updatedRealText = DetermineTextFromPassword(Text, SelectionStart, base.Text);
2016-03-22 23:02:25 +03:00
if (Text == updatedRealText)
{
// Nothing to do
return;
}
Text = updatedRealText;
// Cancel any pending delayed obfuscation
_cts?.Cancel();
_cts = null;
string newText;
if (lengthDifference != 1)
{
// Either More than one character got added in this text change (e.g., a paste operation)
// Or characters were removed. Either way, we don't need to do the delayed obfuscation dance
newText = Obfuscate(Text);
2016-03-22 23:02:25 +03:00
}
else
{
// Only one character was added; we need to leave it visible for a brief time period
// Obfuscate all but the last character for now
newText = Obfuscate(Text, true);
2016-03-22 23:02:25 +03:00
// Leave the last character visible until a new character is added
// or sufficient time has passed
if (_cts == null)
{
_cts = new CancellationTokenSource();
}
Task.Run(async () =>
{
await Task.Delay(TimeSpan.FromSeconds(0.5), _cts.Token);
_cts.Token.ThrowIfCancellationRequested();
await Dispatcher.RunAsync(CoreDispatcherPriority.Normal, () =>
{
base.Text = Obfuscate(Text);
2016-03-22 23:02:25 +03:00
SelectionStart = base.Text.Length;
});
}, _cts.Token);
}
if (base.Text == newText)
{
return;
}
base.Text = newText;
SelectionStart = base.Text.Length;
}
static string DetermineTextFromPassword(string realText, int start, string passwordText)
2016-03-22 23:02:25 +03:00
{
var lengthDifference = passwordText.Length - realText.Length;
if (lengthDifference > 0)
realText = realText.Insert(start - lengthDifference, new string(ObfuscationCharacter, lengthDifference));
else if (lengthDifference < 0)
realText = realText.Remove(start, -lengthDifference);
2016-03-22 23:02:25 +03:00
var sb = new System.Text.StringBuilder(passwordText.Length);
for (int i = 0; i < passwordText.Length; i++)
sb.Append(passwordText[i] == ObfuscationCharacter ? realText[i] : passwordText[i]);
2016-03-22 23:02:25 +03:00
return sb.ToString();
2016-03-22 23:02:25 +03:00
}
string Obfuscate(string text, bool leaveLastVisible = false)
2016-03-22 23:02:25 +03:00
{
if (!leaveLastVisible)
return new string(ObfuscationCharacter, text.Length);
2016-03-22 23:02:25 +03:00
return text.Length == 1
? text
: new string(ObfuscationCharacter, text.Length - 1) + text.Substring(text.Length - 1, 1);
2016-03-22 23:02:25 +03:00
}
static void OnIsPasswordChanged(DependencyObject dependencyObject, DependencyPropertyChangedEventArgs e)
{
var textBox = (FormsTextBox)dependencyObject;
textBox.UpdateInputScope();
textBox.SyncBaseText();
}
void OnSelectionChanged(object sender, RoutedEventArgs routedEventArgs)
{
// Cache this value for later use as explained in OnKeyDown below
_cachedSelectionLength = SelectionLength;
}
2016-03-22 23:02:25 +03:00
// Because the implementation of a password entry is based around inheriting from TextBox (via FormsTextBox), there
// are some inaccuracies in the behavior. OnKeyDown is what needs to be used for a workaround in this case because
// there's no easy way to disable specific keyboard shortcuts in a TextBox, so key presses are being intercepted and
// handled accordingly.
protected override void OnKeyDown(KeyRoutedEventArgs e)
{
if (IsPassword)
2016-03-22 23:02:25 +03:00
{
// The ctrlDown flag is used to track if the Ctrl key is pressed; if it's actively being used and the most recent
// key to trigger OnKeyDown, then treat it as handled.
var ctrlDown = Window.Current.CoreWindow.GetKeyState(VirtualKey.Control).HasFlag(CoreVirtualKeyStates.Down);
// The shift, tab, and directional (Home/End/PgUp/PgDown included) keys can be used to select text and should otherwise
// be ignored.
if (
e.Key == VirtualKey.Shift ||
e.Key == VirtualKey.Tab ||
e.Key == VirtualKey.Left ||
e.Key == VirtualKey.Right ||
e.Key == VirtualKey.Up ||
e.Key == VirtualKey.Down ||
e.Key == VirtualKey.Home ||
e.Key == VirtualKey.End ||
e.Key == VirtualKey.PageUp ||
e.Key == VirtualKey.PageDown)
{
base.OnKeyDown(e);
return;
}
// For anything else, continue on (calling base.OnKeyDown) and then if Ctrl is still being pressed, do nothing about it.
// The tricky part here is that the SelectionLength value needs to be cached because in an example where the user entered
// '123' into the field and selects all of it, the moment that any character key is pressed to replace the entire string,
// the SelectionLength is equal to zero, which is not what's desired. Entering a key will thus remove the selected number
// of characters from the Text value. OnKeyDown is fortunately called before OnSelectionChanged which enables this.
else
{
// If the C or X keys (copy/cut) are pressed while Ctrl is active, ignore handing them at all. Undo and Redo (Z/Y) should
// be ignored as well as this emulates the regular behavior of a PasswordBox.
if ((e.Key == VirtualKey.C || e.Key == VirtualKey.X || e.Key == VirtualKey.Z || e.Key == VirtualKey.Y) && ctrlDown)
{
e.Handled = false;
return;
}
base.OnKeyDown(e);
if (_cachedSelectionLength > 0 && !ctrlDown)
Text = Text.Remove(SelectionStart, _cachedSelectionLength);
}
2016-03-22 23:02:25 +03:00
}
else
base.OnKeyDown(e);
2016-03-22 23:02:25 +03:00
}
void OnTextChanged(object sender, Windows.UI.Xaml.Controls.TextChangedEventArgs textChangedEventArgs)
{
if (IsPassword)
{
// If we are on the phone, we might need to delay obfuscating the last character
if (Device.Idiom == TargetIdiom.Phone)
2016-03-22 23:02:25 +03:00
{
DelayObfuscation();
return;
}
2016-03-22 23:02:25 +03:00
// If we're not on a phone, we can just obfuscate any input
string updatedRealText = DetermineTextFromPassword(Text, SelectionStart, base.Text);
string updatedText = Obfuscate(updatedRealText);
var savedSelectionStart = SelectionStart;
2016-03-22 23:02:25 +03:00
if (Text != updatedRealText)
2016-03-22 23:02:25 +03:00
Text = updatedRealText;
if (base.Text != updatedText)
base.Text = updatedText;
2016-03-22 23:02:25 +03:00
SelectionStart = savedSelectionStart;
2016-03-22 23:02:25 +03:00
}
else if (base.Text != Text)
{
// Not in password mode, so we just need to make the "real" text match
// what's in the textbox; the internalChange flag keeps the TextProperty
// synchronization from happening
_internalChangeFlag = true;
Text = base.Text;
_internalChangeFlag = false;
}
}
void SyncBaseText()
{
if (_internalChangeFlag)
{
return;
}
base.Text = IsPassword ? Obfuscate(Text) : Text;
2016-03-22 23:02:25 +03:00
SelectionStart = base.Text.Length;
}
static void TextPropertyChanged(DependencyObject dependencyObject, DependencyPropertyChangedEventArgs dependencyPropertyChangedEventArgs)
{
var textBox = (FormsTextBox)dependencyObject;
textBox.SyncBaseText();
}
void UpdateInputScope()
{
if (IsPassword)
{
_cachedInputScope = InputScope;
_cachedSpellCheckSetting = IsSpellCheckEnabled;
_cachedPredictionsSetting = IsTextPredictionEnabled;
[UWP] Changing IsPassword property changed InputScope (#4181) * Update from origin (#8) * [C] VisibilityConverter Trims input (#3581) For CSS purposes, the VisibilityConverter was added, and actually replaced the `Boolean.Parse(str)` call for parsing Visibility. `Boolean.Parse()` trims input, and the converter was not, so this was a regression. This changes Trim() the input, to be fully backward compatible. - fixes #3554 * Ensure ConstructorCountId and TimeId elements are available before querying them (#3588) * For consistency with ResourceDictionary, expose the Source for a StyleSheet (#2589) This would allow previewer/designer/reloader to determine the source of a stylesheet and refresh its content when appropriate. * Revert "For consistency with ResourceDictionary, expose the Source for a StyleSheet (#2589)" This reverts commit f66a72de5b475a6a8387a80e418997b38dc40d4c. * Fix NRE; Ret 0 if Text null (#3594) fixes #3579 * [UWP, WPF] Fixes rendering of the main page (#2896) fixes #2704 * [Core] Ignore Shamehat target when running DesignTimeBuild (#3605) * [XamlC] Fix binding compilation fo value types (#3551) properly load valuetype arguments of generated setters, using ldarg, instead of ldarga. - fixes #3539 * Update PULL_REQUEST_TEMPLATE.md * Update PULL_REQUEST_TEMPLATE.md * [Android] Fix Label LineHeight (#3452) * fix line height android * Make UAP respect initial LineHeight * update .create-nuget.bat (#3638) * Add Null Check to GetRenderer (#3575) - fix #3563 * Fix 3562 Null Reference Exception (#3576) - fixes #3562 * Fix 3564 Null Reference Exception (#3578) - fixes #3564 * [iOS] AutomationProperty support for cells (#3313) fixes #3296 * [iOS] AutomationProperty support for cells * Add test case to AutomationProperties gallery * [UWP] Fix crash app when create navigation/tabbed page without children pages fixes #3188 (#3514) * [Android] Use height when determining ScaledScreenSize; fixes #3609 (#3641) * [C] Set binding context on Span Gestures (#3639) * [Core] Set binding context on Span Gestures * [Core] Simplify loop setting child binding context - fixes #3524 * Update PULL_REQUEST_TEMPLATE.md * [Android] remove deprecated AndroidUseLatestPlatformSdk (#3672) * [iOS] iPad ActionSheet should always have a Cancel method (#3636) * Add repro for #3049 * [iOS] iPad ActionSheet should always have a Cancel method fixes #3049 * [Android] fixes #3675 - set initial ScrollView Scroll values when RTL (#3676) * [Android] API check for Shadow properties on Button (#3617) fixes #2702 * [Android] API check for Shadow properties on Button * Fix swapped shadow values * [iOS] fixes #3525 - add epsilon for float compare (#3654) * [iOS] fixes #3525 - add epsilon for float compare and make region immutable * [ControlGallery] spread out spans to account for click slop * [ControlGallery] - adjust span slightly for android test * [Core] remove private * Fix text wrapping (#3671) fixes #3634 * [GTK] Fix navigation bar visibility updates (#3651) * Fix partially #3585 (#3592) * Make webkit-sharp.dll.config cross-platform * Update webkit-sharp.dll with missing signals bindings see: https://github.com/ylatuya/webkit-sharp/tree/fluendo * [iOS, UWP] fixes #2894 - Gestures collection changes weren't correctly propagating (#3643) * [iOS, UWP] fixes #2894 - Gestures weren't wiring up to spans in all cases * [Core] remove ChildGestureRecognizers when spans get removed * [iOS] removed incorrect return from null * Fixes #3663 (#3684) * Fix ScrollView Padding issue (#3685) * [WPF] Memory leak when you pop a TabbedPage (#3372) fixes #3267 * Fix [WPF] Memory leak when you pop a TabbedPage * Update ViewRenderer.cs * Update ViewRenderer.cs * [Android,iOS,UWP] Allow Entry CursorPosition/SelectionLength to be set in ctor (#3402) fixes #3343 fixes #3633 * Add repro for #3343 + unit tests * [Core] Disallow negative values for CursorPosition/SelectionLength * [All] CursorPosition/SelectionLength can bindin ctor & clear value fixes #3343 * typo * cleanup * [iOS] Cursor snaps to end * try/catch * [CSS] add more properties (#3466) map new CSS properties: - `color` on `IColorElement` (`ActivityIndicator`, `BoxView`), `ProgressBar` and `Switch` - `row-gap` and `column-gap` on `Grid` - `transform` and `transform-origin` on `VisualElement` - `vertical-align` on `Label` add new XF-specific CSS properties - `-xf-placeholder` and `-xf-placeholder-color` on `Editor`, `Entry`, `SearchBar` - `-xf-max-length` on `InputView` (`Editor` and `Entry`) - `-xf-bar-background-color` and `-xf-bar-text-color` on `NavigationPage` and `TabbedPage` - `-xf-orientation` on `ScrollView` and `StackLayout` - `-xf-horizontal-scroll-bar-visibility` and `-xf-vertical-scroll-bar-visibility` on `ScrollView` - `-xf-min-track-color`, `-xf-max-track-color` and `("-xf-thumb-color` on `Slider` - `-xf-spacing` on `StackLayout` This PR replaces and closes #3276 - fixes #2891 * [iOS] Specify a default size for UISearchBar width if needed (#3635) fixes #3413 fixes #2139 * [Controls] Add reproduction and test case for issue #3413 * [iOS] Don't use max value for iOS UISearchbar breaks on iOS 11.3 * [iOS] Force width value so we can renderer UISearchBar on iOS10 with infinite width * [Controls] Fix spelling and add Manual Review to the test of #3413 * [iOS] Simplify code for UISearchBar width * [iOS] Return always some width from measure the UISearchBar on IOS * [Controls] Add reproduction case for issue #2139 * [UWP] Fixed double set margins in Layouts (#3570) fixes #3398 fixes #3616 * [Android] Support multiple clipping settings in single layout (#3559) * Repro * Fix for API 18+ * [iOS] Unsubscribe CellPropertyChanged when SwitchCellRenderer is disposed (#3518) * [Controls] Add repo of issue #3408 * [iOS] Unsubscribe CellPropertyChanged when cell is disposed * [Controls] Add issue to project * [iOS] Introduce CellPropertyChange to CellTableViewCell to used by all other cell renderers * [Controls] Simplify Issue * [iOS] Remove PropertyChanged that was not used * [Controls] add check for null binding on template, add notes about issues * [Controls] added reference to Android crash * [iOS]Use existing PropertyChanged on ViewCelRenderer * [iOS] Keep the existing override so we don't break users * Update TextCellRenderer.cs * update submodule * 24H Mode (#3701) The 24h mode for the pickerdialog was not working. Version 3.1 was working fine. Here is an updated file. * [UWP] uncomment tests that are now passing for 3188 (#3723) * [UITest] Update Xamarin.UITest nuget package (#3632) * [UITests] Update Xamarin.UITest 2.2.5 * [UITests] Try fix Toolbaritems * [UITest] Update to 2.2.5-1606 * [UITests] Small Fixes and workarounds to make uitest happy * [UITests ] Add delay to 1733 for API28 * [Android] Revert bad merge (#3746) fixes #3705 * [Android, iOS] Fixes layout compression causes (#3698) fixes #3624 * [Android, iOS] Fixes layout compression causes * [iOS] improve UpdateNewElement method * Fix build error hopefully * [UWP] Fixes CollectionChanged events in ListView (#3323) * fixes #3273 * [UWP] Fixes CollectionChanged events in ListView * a wrapped collection is used only if the SourceItem is not ObservableCollection * improve uitest * fixed NRE in empty ListView * added a sortable custom renderer for UItest * minor refactoring * fixed reset of not wrapped collections * addressing comments * [UWP] remove WinRT hack * [UWP] add missing using and cleanup additional resources * [Android] Update Forms to remove API28 deprecated API (#3653) fixes #2128 fixes #3629 * [Build] Update provisioning * [Controls] Ignore deprecated Android API usage * [Android] Remove use of obsolete color usage * [Android] Remove app fragment usage * [android] Rollback changes to EntryCellRenderer * [Android] Better way to get the default color for the label text * [Android] Obsolete message for ContentPage.CreateFragment() * [ControlGallery] - create bitmap from Drawable to use for pixel location * [Android] Use textcolor resource * Update submodule * Fix tests (#3771) * [ControlGallery] Wait for element and add timing to tests * [iOS] Fix NRE on RenderPool * Add TabStop/TabIndex (#2795) * [Core, UWP, Android] support TabStop/TabIndex * removing linq * add iOS / MacOS implementation * add WPF implementation fixes UWP implementation * - addressing comments - improve test - optimizations - added previous tab direction in same tab group * addressing comments * [Android] support tabstop for pickers * - moving shared code to a static class - removed reflection * ITabStop -> changed to internal, renamed, added in to fastRenderers * Update ITabStop to be public * Fix : Binding Icon in ToolbarItem in TabbedPage doesn't refresh (#3761) fixes #3756 * [iOS] Fix NRE on ContextCell (#3714) fixes #3275 * [Controls] Add repo for issue #3275 * [iOS] Fix NRE when no gestures exist on table * [iOS] Null check outside loop * [iOS]Make sure to dispose/unhook when we are removed from UITableView. * Update submodule * [iOS] Don't double dispose ContextActionCell * WPF - Fix Width and Height measurement when GetDesiredSize (#3750) * WPF - Reset Width and Height when GetDesiredSize * Some formatting changes * Add APP directive * [WPF]Fix build * [Android Maps] Make markers available to subclasses (#3751) * Make markers available to subclasses * Fix build * Use Find instead of FirstOrDefault * [UITests] wait for element before querying for it (#3791) * [UITests] wait for element before querying for it * [Controls] generalize and better represent intended behavior * WPF - Fix Local store not persistant when restarting App (#3752) -fixes #3541 * WPF - Fix Local store not persistant when restarting App * Add UITest * [Controls] Add automated UI Test * [UITests] Isolate test 3408 * [UITest] Update Xamarin UITest packages * [UWP] implement Replace without reloading ListView (#3792) -fixes #3788 * [UWP] implement Replace without reloading ListView * [UWP] extract bindingcontext of new item for replace * [iOS] Use UIApperance default color for UISwitch (#3819) * [Controls] Set default color of UISwitch to Red * [iOS] Use default color from Apperance API * [UITests] replace awaits with more reliable WaitForElement (#3835) * [Core] Propagate BindingContext changes to TitleView (#3823) * [Core] Propagate BindingContext changes to TitleView * [Tests] Move UI test to Core Unit Test * [A] do not draw gradient for empty CornerRadius (#3786) Drawing CornerRadius (introduce by #1998) when the CornerRadii are actually 0 causes scaling artifacts on API < 25. This fixes the regression when no CornerRadius is set. Expect blurry border scaling with CornerRadius not empty and API < 25 - fixes #3781 * [Android] Fix WebView.Navigating event, make WebViewClient inheritable (#3780) * Extracted WebViewRenderer.WebClient to FormsWebViewClient, moved SendNavigating call from ShouldOverrideUrlLoading to OnPageStarted * Changed _webViewClient and GetWebViewClient() method to return base class * Changed public things to protected internal * Fix spaces to tabs indentation to match the coding style (#3745) * [Build] Fix merge * Fix #3097 swipe gesture not being handled in VisualElementTracker. (#3098) Fixes #3097 * Update from origin (#9) * [C] VisibilityConverter Trims input (#3581) For CSS purposes, the VisibilityConverter was added, and actually replaced the `Boolean.Parse(str)` call for parsing Visibility. `Boolean.Parse()` trims input, and the converter was not, so this was a regression. This changes Trim() the input, to be fully backward compatible. - fixes #3554 * Ensure ConstructorCountId and TimeId elements are available before querying them (#3588) * For consistency with ResourceDictionary, expose the Source for a StyleSheet (#2589) This would allow previewer/designer/reloader to determine the source of a stylesheet and refresh its content when appropriate. * Revert "For consistency with ResourceDictionary, expose the Source for a StyleSheet (#2589)" This reverts commit f66a72de5b475a6a8387a80e418997b38dc40d4c. * Fix NRE; Ret 0 if Text null (#3594) fixes #3579 * [UWP, WPF] Fixes rendering of the main page (#2896) fixes #2704 * [Core] Ignore Shamehat target when running DesignTimeBuild (#3605) * [XamlC] Fix binding compilation fo value types (#3551) properly load valuetype arguments of generated setters, using ldarg, instead of ldarga. - fixes #3539 * Update PULL_REQUEST_TEMPLATE.md * Update PULL_REQUEST_TEMPLATE.md * [Android] Fix Label LineHeight (#3452) * fix line height android * Make UAP respect initial LineHeight * update .create-nuget.bat (#3638) * Add Null Check to GetRenderer (#3575) - fix #3563 * Fix 3562 Null Reference Exception (#3576) - fixes #3562 * Fix 3564 Null Reference Exception (#3578) - fixes #3564 * [iOS] AutomationProperty support for cells (#3313) fixes #3296 * [iOS] AutomationProperty support for cells * Add test case to AutomationProperties gallery * [UWP] Fix crash app when create navigation/tabbed page without children pages fixes #3188 (#3514) * [Android] Use height when determining ScaledScreenSize; fixes #3609 (#3641) * [C] Set binding context on Span Gestures (#3639) * [Core] Set binding context on Span Gestures * [Core] Simplify loop setting child binding context - fixes #3524 * Update PULL_REQUEST_TEMPLATE.md * [Android] remove deprecated AndroidUseLatestPlatformSdk (#3672) * [iOS] iPad ActionSheet should always have a Cancel method (#3636) * Add repro for #3049 * [iOS] iPad ActionSheet should always have a Cancel method fixes #3049 * [Android] fixes #3675 - set initial ScrollView Scroll values when RTL (#3676) * [Android] API check for Shadow properties on Button (#3617) fixes #2702 * [Android] API check for Shadow properties on Button * Fix swapped shadow values * [iOS] fixes #3525 - add epsilon for float compare (#3654) * [iOS] fixes #3525 - add epsilon for float compare and make region immutable * [ControlGallery] spread out spans to account for click slop * [ControlGallery] - adjust span slightly for android test * [Core] remove private * Fix text wrapping (#3671) fixes #3634 * [GTK] Fix navigation bar visibility updates (#3651) * Fix partially #3585 (#3592) * Make webkit-sharp.dll.config cross-platform * Update webkit-sharp.dll with missing signals bindings see: https://github.com/ylatuya/webkit-sharp/tree/fluendo * [iOS, UWP] fixes #2894 - Gestures collection changes weren't correctly propagating (#3643) * [iOS, UWP] fixes #2894 - Gestures weren't wiring up to spans in all cases * [Core] remove ChildGestureRecognizers when spans get removed * [iOS] removed incorrect return from null * Fixes #3663 (#3684) * Fix ScrollView Padding issue (#3685) * [WPF] Memory leak when you pop a TabbedPage (#3372) fixes #3267 * Fix [WPF] Memory leak when you pop a TabbedPage * Update ViewRenderer.cs * Update ViewRenderer.cs * [Android,iOS,UWP] Allow Entry CursorPosition/SelectionLength to be set in ctor (#3402) fixes #3343 fixes #3633 * Add repro for #3343 + unit tests * [Core] Disallow negative values for CursorPosition/SelectionLength * [All] CursorPosition/SelectionLength can bindin ctor & clear value fixes #3343 * typo * cleanup * [iOS] Cursor snaps to end * try/catch * [CSS] add more properties (#3466) map new CSS properties: - `color` on `IColorElement` (`ActivityIndicator`, `BoxView`), `ProgressBar` and `Switch` - `row-gap` and `column-gap` on `Grid` - `transform` and `transform-origin` on `VisualElement` - `vertical-align` on `Label` add new XF-specific CSS properties - `-xf-placeholder` and `-xf-placeholder-color` on `Editor`, `Entry`, `SearchBar` - `-xf-max-length` on `InputView` (`Editor` and `Entry`) - `-xf-bar-background-color` and `-xf-bar-text-color` on `NavigationPage` and `TabbedPage` - `-xf-orientation` on `ScrollView` and `StackLayout` - `-xf-horizontal-scroll-bar-visibility` and `-xf-vertical-scroll-bar-visibility` on `ScrollView` - `-xf-min-track-color`, `-xf-max-track-color` and `("-xf-thumb-color` on `Slider` - `-xf-spacing` on `StackLayout` This PR replaces and closes #3276 - fixes #2891 * [iOS] Specify a default size for UISearchBar width if needed (#3635) fixes #3413 fixes #2139 * [Controls] Add reproduction and test case for issue #3413 * [iOS] Don't use max value for iOS UISearchbar breaks on iOS 11.3 * [iOS] Force width value so we can renderer UISearchBar on iOS10 with infinite width * [Controls] Fix spelling and add Manual Review to the test of #3413 * [iOS] Simplify code for UISearchBar width * [iOS] Return always some width from measure the UISearchBar on IOS * [Controls] Add reproduction case for issue #2139 * [UWP] Fixed double set margins in Layouts (#3570) fixes #3398 fixes #3616 * [Android] Support multiple clipping settings in single layout (#3559) * Repro * Fix for API 18+ * [iOS] Unsubscribe CellPropertyChanged when SwitchCellRenderer is disposed (#3518) * [Controls] Add repo of issue #3408 * [iOS] Unsubscribe CellPropertyChanged when cell is disposed * [Controls] Add issue to project * [iOS] Introduce CellPropertyChange to CellTableViewCell to used by all other cell renderers * [Controls] Simplify Issue * [iOS] Remove PropertyChanged that was not used * [Controls] add check for null binding on template, add notes about issues * [Controls] added reference to Android crash * [iOS]Use existing PropertyChanged on ViewCelRenderer * [iOS] Keep the existing override so we don't break users * Update TextCellRenderer.cs * update submodule * 24H Mode (#3701) The 24h mode for the pickerdialog was not working. Version 3.1 was working fine. Here is an updated file. * [UWP] uncomment tests that are now passing for 3188 (#3723) * [UITest] Update Xamarin.UITest nuget package (#3632) * [UITests] Update Xamarin.UITest 2.2.5 * [UITests] Try fix Toolbaritems * [UITest] Update to 2.2.5-1606 * [UITests] Small Fixes and workarounds to make uitest happy * [UITests ] Add delay to 1733 for API28 * [Android] Revert bad merge (#3746) fixes #3705 * [Android, iOS] Fixes layout compression causes (#3698) fixes #3624 * [Android, iOS] Fixes layout compression causes * [iOS] improve UpdateNewElement method * Fix build error hopefully * [UWP] Fixes CollectionChanged events in ListView (#3323) * fixes #3273 * [UWP] Fixes CollectionChanged events in ListView * a wrapped collection is used only if the SourceItem is not ObservableCollection * improve uitest * fixed NRE in empty ListView * added a sortable custom renderer for UItest * minor refactoring * fixed reset of not wrapped collections * addressing comments * [UWP] remove WinRT hack * [UWP] add missing using and cleanup additional resources * [Android] Update Forms to remove API28 deprecated API (#3653) fixes #2128 fixes #3629 * [Build] Update provisioning * [Controls] Ignore deprecated Android API usage * [Android] Remove use of obsolete color usage * [Android] Remove app fragment usage * [android] Rollback changes to EntryCellRenderer * [Android] Better way to get the default color for the label text * [Android] Obsolete message for ContentPage.CreateFragment() * [ControlGallery] - create bitmap from Drawable to use for pixel location * [Android] Use textcolor resource * Update submodule * Fix tests (#3771) * [ControlGallery] Wait for element and add timing to tests * [iOS] Fix NRE on RenderPool * Add TabStop/TabIndex (#2795) * [Core, UWP, Android] support TabStop/TabIndex * removing linq * add iOS / MacOS implementation * add WPF implementation fixes UWP implementation * - addressing comments - improve test - optimizations - added previous tab direction in same tab group * addressing comments * [Android] support tabstop for pickers * - moving shared code to a static class - removed reflection * ITabStop -> changed to internal, renamed, added in to fastRenderers * Update ITabStop to be public * Fix : Binding Icon in ToolbarItem in TabbedPage doesn't refresh (#3761) fixes #3756 * [iOS] Fix NRE on ContextCell (#3714) fixes #3275 * [Controls] Add repo for issue #3275 * [iOS] Fix NRE when no gestures exist on table * [iOS] Null check outside loop * [iOS]Make sure to dispose/unhook when we are removed from UITableView. * Update submodule * [iOS] Don't double dispose ContextActionCell * WPF - Fix Width and Height measurement when GetDesiredSize (#3750) * WPF - Reset Width and Height when GetDesiredSize * Some formatting changes * Add APP directive * [WPF]Fix build * [Android Maps] Make markers available to subclasses (#3751) * Make markers available to subclasses * Fix build * Use Find instead of FirstOrDefault * [UITests] wait for element before querying for it (#3791) * [UITests] wait for element before querying for it * [Controls] generalize and better represent intended behavior * WPF - Fix Local store not persistant when restarting App (#3752) -fixes #3541 * WPF - Fix Local store not persistant when restarting App * Add UITest * [Controls] Add automated UI Test * [UITests] Isolate test 3408 * [UITest] Update Xamarin UITest packages * [UWP] implement Replace without reloading ListView (#3792) -fixes #3788 * [UWP] implement Replace without reloading ListView * [UWP] extract bindingcontext of new item for replace * [iOS] Use UIApperance default color for UISwitch (#3819) * [Controls] Set default color of UISwitch to Red * [iOS] Use default color from Apperance API * [UITests] replace awaits with more reliable WaitForElement (#3835) * [Core] Propagate BindingContext changes to TitleView (#3823) * [Core] Propagate BindingContext changes to TitleView * [Tests] Move UI test to Core Unit Test * [A] do not draw gradient for empty CornerRadius (#3786) Drawing CornerRadius (introduce by #1998) when the CornerRadii are actually 0 causes scaling artifacts on API < 25. This fixes the regression when no CornerRadius is set. Expect blurry border scaling with CornerRadius not empty and API < 25 - fixes #3781 * [Android] Fix WebView.Navigating event, make WebViewClient inheritable (#3780) * Extracted WebViewRenderer.WebClient to FormsWebViewClient, moved SendNavigating call from ShouldOverrideUrlLoading to OnPageStarted * Changed _webViewClient and GetWebViewClient() method to return base class * Changed public things to protected internal * Fix spaces to tabs indentation to match the coding style (#3745) * [Build] Fix merge * Fix #3097 swipe gesture not being handled in VisualElementTracker. (#3098) Fixes #3097 * Ensure that the ListViewAdapter is no longer being used by the ListVi… (#3848) fixes #3603 * Ensure that the ListViewAdapter is no longer being used by the ListView before disposing it * Remove `RemoveAllViews` from `Dispose` * Removed touching the InputScope for the IsPassword property * Put back prediction settings * When InputScope was originally numeric, switch to numeric password scope, else we leave the previous logic in place * Fixed small error and added reproduction to gallery app * Fixed issues
2018-11-27 04:10:04 +03:00
if (InputScope != null && InputScope.Names.Any(i => i.NameValue == InputScopeNameValue.Number))
{
InputScope = NumericPasswordInputScope;
}
else
{
InputScope = PasswordInputScope; // Change to default input scope so we don't have suggestions, etc.
}
2016-03-22 23:02:25 +03:00
IsTextPredictionEnabled = false; // Force the other text modification options off
IsSpellCheckEnabled = false;
}
else
{
InputScope = _cachedInputScope;
IsSpellCheckEnabled = _cachedSpellCheckSetting;
IsTextPredictionEnabled = _cachedPredictionsSetting;
}
}
static void FocusPropertyChanged(DependencyObject dependencyObject, DependencyPropertyChangedEventArgs args)
{
// If we're modifying the properties related to the focus state of the control (e.g.,
// ForegroundFocusBrush), the changes won't be reflected immediately because they are only applied
// when the Windows.UI.XAML.VisualStateManager moves to the "Focused" state. So we have to force a
// "refresh" of the Focused state by going to that state again
VisualStateManager phase 1 (#1405) * 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
2018-01-05 12:11:51 +03:00
if (!(dependencyObject is Control control) || control.FocusState == FocusState.Unfocused)
{
return;
}
VisualStateManager phase 1 (#1405) * 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
2018-01-05 12:11:51 +03:00
WVisualStateManager.GoToState(control, "Focused", false);
}
internal void UpdateEnabled()
{
if (UseFormsVsm)
{
var state = IsEnabled ? "FormsNormal" : "FormsDisabled";
WVisualStateManager.GoToState(this, state, true);
}
}
2016-03-22 23:02:25 +03:00
}
}