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

133 Коммитов

Автор SHA1 Сообщение Дата
Samantha Houts 6b827ac010 Merge branch '4.6.0' 2020-04-03 20:50:23 -07:00
Gerald Versluis 109e616848
Add GetNamedColor for platform specific colors (#10008)
* Implementation

* Implement UWP

* Update MockPlatformServices.cs

* Added to ColorTypeConverter

* Update WPFPlatformServices.cs

* Added Android

Co-authored-by: Samantha Houts <samhouts@users.noreply.github.com>
2020-04-03 15:54:16 -07:00
Gerald Versluis 529c8e90d0
Cross-Platform OS Theme APIs (#9958)
* Implement OnAppTheme

* Implement AppThemeColor

* Added tests

* Finishing up

* Implement UWP

* Xcode 11 and additional test

* Update Forms.cs

* Update ViewRenderer.cs

* Update ViewRenderer.cs

* Remove IAppThemeProvider

* Implemented RequestedThemeChanged

* Update WindowsBasePlatformServices.cs

* Bindable props and Android invalidate

* Update DefaultBindableProperties.cs

* Updates at runtime

* Review feedback part 1

* Implement VisualElement.OnRequestedThemeChanged

* UWP Dispatcher

* Add experimental flag

* ControlGallery restructure

* Update ViewRenderer.cs

* Update WindowsBasePlatformServices.cs

* iOS pre-13 fix
2020-04-03 14:47:19 -07:00
Rui Marinho 1be09cb36d Merge branch '4.6.0' 2020-03-30 15:19:47 +01:00
Yuriy Holembyovskyy 28b25032d7
Add UpdateSize() to OnElementChanged() (#9930) fixes #6408
Co-authored-by: Yuriy Holembyovskyy <yuriy.holembyovskyy@gmail.com>
2020-03-30 11:50:13 +01:00
Shane Neuville 174d8a5a93
Remove all uses of md5 (#10028)
* Remove all uses of md5

* - fix unit tests

* - fix dualscreen tests
2020-03-26 12:45:22 +00:00
Yuriy Holembyovskyy 3265962360
[WPF] Picker does not respect BackgroundColor (#9843) fixes #9838
* Add UpdateBackgroundColor() method

* [WPF] Remove private keyword

Co-authored-by: Yuriy Holembyovskyy <yuriy.holembyovskyy@gmail.com>
Co-authored-by: Rui Marinho <me@ruimarinho.net>
2020-03-18 15:59:14 +00:00
Rui Marinho c923877e3f
Merge branch 4.5.0 into 4.6.0 2020-03-09 15:08:41 +00:00
Shane Neuville 7a698427bf
[WPF] Dont set Slider.Value if it already matches control (#9847) 2020-03-08 19:35:37 +00:00
Samantha Houts a97ab55d15 Merge branch '4.5.0' 2020-02-27 15:17:18 -08:00
melimion 32b85695fa
[WPF] Fix ToolbarItem.IsEnabled = false does nothing (#8612)
* test added

* IsEnabled binding added

* disabled style added

* icons added

Co-authored-by: Samantha Houts <samhouts@users.noreply.github.com>
fixes #8161
2020-02-27 14:42:06 -08:00
Rui Marinho f30d423e45 [WPF] Fix typo 2020-02-20 11:55:36 +00:00
Rui Marinho 728e41d35d [WPF] Fix typo 2020-02-18 18:38:32 +00:00
melimion c5bea02521
FormsFontIcon added (#9587) 2020-02-15 15:47:58 +00:00
Shane Neuville b907376605
[Android,iOS,UWP,WPF] MediaElement control (#3482) (#9439)
* MediaElement and iOS/Android/UWP renderers.

* Added basic WPF renderer. Fixed sizing issue on UWP renderer. Added sample page to ControlGallery app

* MediaEnded event on UWP. Source Uri convert ms-appx to pack:// uri scheme on WPF

* code style fixes

* resolving conflicts

* Following discussion on PR made NaturalDuration a nullable TimeSpan so that can determine when value is not present.
Added CanSeek property to indicate when Position property can be set.
Added support for KeepScreenOn to WPF renderer.
Improved ControlGallery page with separate Play/Pause/Stop buttons and label to display current state

* coding style fixes

* coding style fixes 2

* Improved media controls on demo page. Renderer enhancements for Android and iOS

* Improved logic around media metadata in iOS renderer.
Switched to https video uri to allow playback in iOS. Increased media control button sizes

* Improved parsing of ms-appdata uris supporting both the local and temp folders

* Removed redundant Debug.WriteLines. Removed XML docs from MediaElement and MediaElementState types.

* Bug fix for iOS MediaElement.Source Uri escape handling

* Adding MediaElement fast renderer for Android

* Rearchitecting the Element/Renderer connectivity. New WPF,UAP and Android FastRenderer complete. Still requires Android classic renderer and iOS renderer...

* More MediaElement renderer development. Converted iOS to a FastRenderer

* Latest android renderer

* Android renderer fix for StopPlayback reusability. MetadataRetreiver now loaded async.

* Added an IMediaElementController property to Android renderers to simplify code.

* Simplified Aspect property

* Changed AreTransportControlsEnabled to ShowsPlaybackControls. Removed commented-out code.

* merging

* merging

* added mediaelementrenderer back

* support for polling the position property. Added timer to demopage to poll for position.

* Fixed scaling issue on iOS and background color

* Renderer code review issues

* Implementing MediaSource (ImageSource pattern) to replace Uris. Other code cleaning fixes.

* Hooked up MediaSource and kept uri custom schema logic

* Moved all the "callback" methods to the IMediaElementController interface so they are not publicly exposed on the MediaElement. Removed HttpHeaders and associated code for v1 release. Other code tidying.

* Code review feedback

* Integrated unit tests. Added support for inherited binding on MediaSource.

* Additional Windows file path test. Fix for UWP renderer to check if Control is released

* Fix for FormsVideoView metadata causing aspect issues. Simplified Android FastRenderer to correctly handle VideoView lifetime.

* fixed merge error

* fixed merge errors

* MediaElement and iOS/Android/UWP renderers.

* Added basic WPF renderer. Fixed sizing issue on UWP renderer. Added sample page to ControlGallery app

* MediaEnded event on UWP. Source Uri convert ms-appx to pack:// uri scheme on WPF

* code style fixes

* resolving conflicts

* Following discussion on PR made NaturalDuration a nullable TimeSpan so that can determine when value is not present.
Added CanSeek property to indicate when Position property can be set.
Added support for KeepScreenOn to WPF renderer.
Improved ControlGallery page with separate Play/Pause/Stop buttons and label to display current state

* coding style fixes

* coding style fixes 2

* Improved media controls on demo page. Renderer enhancements for Android and iOS

* Improved logic around media metadata in iOS renderer.
Switched to https video uri to allow playback in iOS. Increased media control button sizes

* Improved parsing of ms-appdata uris supporting both the local and temp folders

* Removed redundant Debug.WriteLines. Removed XML docs from MediaElement and MediaElementState types.

* Bug fix for iOS MediaElement.Source Uri escape handling

* Adding MediaElement fast renderer for Android

* Rearchitecting the Element/Renderer connectivity. New WPF,UAP and Android FastRenderer complete. Still requires Android classic renderer and iOS renderer...

* More MediaElement renderer development. Converted iOS to a FastRenderer

* Latest android renderer

* Android renderer fix for StopPlayback reusability. MetadataRetreiver now loaded async.

* Added an IMediaElementController property to Android renderers to simplify code.

* Simplified Aspect property

* Changed AreTransportControlsEnabled to ShowsPlaybackControls. Removed commented-out code.

* merging

* support for polling the position property. Added timer to demopage to poll for position.

* Fixed scaling issue on iOS and background color

* Renderer code review issues

* Implementing MediaSource (ImageSource pattern) to replace Uris. Other code cleaning fixes.

* Hooked up MediaSource and kept uri custom schema logic

* Moved all the "callback" methods to the IMediaElementController interface so they are not publicly exposed on the MediaElement. Removed HttpHeaders and associated code for v1 release. Other code tidying.

* Code review feedback

* Integrated unit tests. Added support for inherited binding on MediaSource.

* Additional Windows file path test. Fix for UWP renderer to check if Control is released

* Fix for FormsVideoView metadata causing aspect issues. Simplified Android FastRenderer to correctly handle VideoView lifetime.

* fixed merge error

* manual merge fixes

* Fixed missing FileMediaSourceConverter

* Fixed merge issue with iOS project file

* Clarification to WPF Source Uri exception message

* Changed iOS local path to the Library path as this is not user visible or synchronised with iCloud. Fix for breaking change in WeakEventManager

* Added Volume property

* Fixes for code-review feedback

* Optimised iOS renderer to remove a view layer

* fixes to resolve possible rotation bug

* Moved ms-appdata parsing to shared location.

* fixed codesign error

* Fix for issue on Android where control may show black screen prior to video playing - now respects backgroundcolor property

* Renamed conflicting extensions class

* Add experimental flag; remove slow renderer

* Update MediaElementDemoPage.cs

* Update MediaElementRenderer.cs

* Update MediaElementRenderer.cs

* Porting latest renderer updates. iOS re-written as a non-fast renderer to workaround issue with dispose when using on modal pages.

* Fixed protected member in sealed class issue

Co-authored-by: Rui Marinho <me@ruimarinho.net>
Co-authored-by: Samantha Houts <samhouts@users.noreply.github.com>
fixes #1692

Co-authored-by: Peter Foot <peter@inthehand.com>
2020-02-05 16:40:47 -07:00
Peter Foot f0087cbf5a
Replacement ActivityIndicator for WPF (#9389) fixes #9372
* Replaced ActivityIndicator for WPF to use a Windows style progress ring (animated dots).

* Removed private keyword

* Changed foreground color assignment so that Color.Default sets value to Color.Accent to avoid creating a transparent control.
2020-02-04 18:09:49 +00:00
Yuriy Holembyovskyy 4d9334380a
Added context switching befor UpdateAspect() method call (#9154) fixes #8038 2020-02-04 14:16:17 +00:00
Peter Foot b486522932
[Android,iOS,UWP,WPF] MediaElement control (#3482)
* MediaElement and iOS/Android/UWP renderers.

* Added basic WPF renderer. Fixed sizing issue on UWP renderer. Added sample page to ControlGallery app

* MediaEnded event on UWP. Source Uri convert ms-appx to pack:// uri scheme on WPF

* code style fixes

* resolving conflicts

* Following discussion on PR made NaturalDuration a nullable TimeSpan so that can determine when value is not present.
Added CanSeek property to indicate when Position property can be set.
Added support for KeepScreenOn to WPF renderer.
Improved ControlGallery page with separate Play/Pause/Stop buttons and label to display current state

* coding style fixes

* coding style fixes 2

* Improved media controls on demo page. Renderer enhancements for Android and iOS

* Improved logic around media metadata in iOS renderer.
Switched to https video uri to allow playback in iOS. Increased media control button sizes

* Improved parsing of ms-appdata uris supporting both the local and temp folders

* Removed redundant Debug.WriteLines. Removed XML docs from MediaElement and MediaElementState types.

* Bug fix for iOS MediaElement.Source Uri escape handling

* Adding MediaElement fast renderer for Android

* Rearchitecting the Element/Renderer connectivity. New WPF,UAP and Android FastRenderer complete. Still requires Android classic renderer and iOS renderer...

* More MediaElement renderer development. Converted iOS to a FastRenderer

* Latest android renderer

* Android renderer fix for StopPlayback reusability. MetadataRetreiver now loaded async.

* Added an IMediaElementController property to Android renderers to simplify code.

* Simplified Aspect property

* Changed AreTransportControlsEnabled to ShowsPlaybackControls. Removed commented-out code.

* merging

* merging

* added mediaelementrenderer back

* support for polling the position property. Added timer to demopage to poll for position.

* Fixed scaling issue on iOS and background color

* Renderer code review issues

* Implementing MediaSource (ImageSource pattern) to replace Uris. Other code cleaning fixes.

* Hooked up MediaSource and kept uri custom schema logic

* Moved all the "callback" methods to the IMediaElementController interface so they are not publicly exposed on the MediaElement. Removed HttpHeaders and associated code for v1 release. Other code tidying.

* Code review feedback

* Integrated unit tests. Added support for inherited binding on MediaSource.

* Additional Windows file path test. Fix for UWP renderer to check if Control is released

* Fix for FormsVideoView metadata causing aspect issues. Simplified Android FastRenderer to correctly handle VideoView lifetime.

* fixed merge error

* fixed merge errors

* MediaElement and iOS/Android/UWP renderers.

* Added basic WPF renderer. Fixed sizing issue on UWP renderer. Added sample page to ControlGallery app

* MediaEnded event on UWP. Source Uri convert ms-appx to pack:// uri scheme on WPF

* code style fixes

* resolving conflicts

* Following discussion on PR made NaturalDuration a nullable TimeSpan so that can determine when value is not present.
Added CanSeek property to indicate when Position property can be set.
Added support for KeepScreenOn to WPF renderer.
Improved ControlGallery page with separate Play/Pause/Stop buttons and label to display current state

* coding style fixes

* coding style fixes 2

* Improved media controls on demo page. Renderer enhancements for Android and iOS

* Improved logic around media metadata in iOS renderer.
Switched to https video uri to allow playback in iOS. Increased media control button sizes

* Improved parsing of ms-appdata uris supporting both the local and temp folders

* Removed redundant Debug.WriteLines. Removed XML docs from MediaElement and MediaElementState types.

* Bug fix for iOS MediaElement.Source Uri escape handling

* Adding MediaElement fast renderer for Android

* Rearchitecting the Element/Renderer connectivity. New WPF,UAP and Android FastRenderer complete. Still requires Android classic renderer and iOS renderer...

* More MediaElement renderer development. Converted iOS to a FastRenderer

* Latest android renderer

* Android renderer fix for StopPlayback reusability. MetadataRetreiver now loaded async.

* Added an IMediaElementController property to Android renderers to simplify code.

* Simplified Aspect property

* Changed AreTransportControlsEnabled to ShowsPlaybackControls. Removed commented-out code.

* merging

* support for polling the position property. Added timer to demopage to poll for position.

* Fixed scaling issue on iOS and background color

* Renderer code review issues

* Implementing MediaSource (ImageSource pattern) to replace Uris. Other code cleaning fixes.

* Hooked up MediaSource and kept uri custom schema logic

* Moved all the "callback" methods to the IMediaElementController interface so they are not publicly exposed on the MediaElement. Removed HttpHeaders and associated code for v1 release. Other code tidying.

* Code review feedback

* Integrated unit tests. Added support for inherited binding on MediaSource.

* Additional Windows file path test. Fix for UWP renderer to check if Control is released

* Fix for FormsVideoView metadata causing aspect issues. Simplified Android FastRenderer to correctly handle VideoView lifetime.

* fixed merge error

* manual merge fixes

* Fixed missing FileMediaSourceConverter

* Fixed merge issue with iOS project file

* Clarification to WPF Source Uri exception message

* Changed iOS local path to the Library path as this is not user visible or synchronised with iCloud. Fix for breaking change in WeakEventManager

* Added Volume property

* Fixes for code-review feedback

* Optimised iOS renderer to remove a view layer

* fixes to resolve possible rotation bug

* Moved ms-appdata parsing to shared location.

* fixed codesign error

* Fix for issue on Android where control may show black screen prior to video playing - now respects backgroundcolor property

* Renamed conflicting extensions class

* Add experimental flag; remove slow renderer

* Update MediaElementDemoPage.cs

* Update MediaElementRenderer.cs

* Update MediaElementRenderer.cs

* Porting latest renderer updates. iOS re-written as a non-fast renderer to workaround issue with dispose when using on modal pages.

* Fixed protected member in sealed class issue

Co-authored-by: Rui Marinho <me@ruimarinho.net>
Co-authored-by: Samantha Houts <samhouts@users.noreply.github.com>
fixes #1692
2020-01-28 16:47:33 -08:00
Barry Nolte 240e80507b Implements ListView Header and Footer for WPF (#8443)
Resolves bugs #3947 and #3770.

Wrapped the ListView in a Grid that allows for the insert/delete of headers and footers.

Unit tests ran and passed.

fixes #3947
fixes #3770
2020-01-16 14:32:39 -08:00
Gerald Versluis 1b9c22b4b9 Merge branch '4.4.0' 2020-01-06 11:43:40 +01:00
melimion ccd693e137 Fix WPF Entry crashes when IsPassword=true (#8645)
* repro

* fix

* use DelayObfuscation
fixes #8644
2020-01-02 11:06:51 -08:00
Konrad Müller 8f4c0e4805 [WPF] Frame: Add shadow and padding (#7964)
* Add frame border sample

* Add padding and shadow to frame

* Change name of issue repro to correct issue id

* Correct issue title and platform target

* Improve shadow handling; ensure correct background

* Update Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue7963.cs

Co-Authored-By: Gerald Versluis <github@geraldversluis.nl>

* Update Xamarin.Forms.Platform.WPF/Renderers/FrameRenderer.cs

Co-Authored-By: Gerald Versluis <github@geraldversluis.nl>

* Update Xamarin.Forms.Platform.WPF/Renderers/FrameRenderer.cs

Co-Authored-By: Gerald Versluis <github@geraldversluis.nl>

* Update Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue7963.cs

Co-Authored-By: Gerald Versluis <github@geraldversluis.nl>

* Update Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Issue7963.cs

Co-Authored-By: Gerald Versluis <github@geraldversluis.nl>

* Add back the precious issue pages

* Correct merge errors

* Remove background workaround
2019-12-17 20:28:36 +01:00
Youssef Victor 8a853869b0 Remove private modifier (#8631)
* Remove private modifier

* Update SystemParameters2.cs

* Update SystemParameters2.cs

* Update NativeMethods.cs

* Update ImageCell.cs

* Update TextCell.cs

* Update EntryCell.cs

* Update DatePicker.cs
2019-12-03 10:16:34 -08:00
VladislavAntonyuk c522540a41 WPF GTK Set flags (#8446)
* WPF GTK Set flags

* Remove collection view flag
2019-12-02 13:09:43 -08:00
Chase Marsh 3162a8578d Fix 6693 - [Bug] [WPF] ViewRenderer does not work properly with FrameworkElement derived native controls (#8357)
* Resolved merge conflict

* Added if APP compiler directive around InitializeComponent

* Removed LangVersion from WPF csproj so that build server will use the appropriate C# version.
Fixes #6693
2019-11-22 11:20:23 -08:00
melimion b1fb98ebb1 WPF Implement editor placeholder (#8504)
* Placeholder implemented

* PlaceholderColor added to EditorCoreGalleryPage
2019-11-21 16:21:51 -08:00
melimion 84ebf48843 Fix Button.CornerRadius doesn't work on WPF (#7895)
* fix

* test added

* button without corner radius added to test
fixes #6556
2019-11-05 14:37:43 -08:00
Mohamed CHOUCHANE 4efb1a4e52 [WPF] View doesn't render when set IsClippedToBounds to true (#8195)
fixes #5910
fixes #8087
2019-11-04 16:39:17 -08:00
melimion fe12507dc5 Scrolled event implemented (#8197) 2019-10-28 11:24:00 -07:00
melimion 545ce131db foreground color fix (#8149)
fixes #8148
2019-10-24 11:24:51 -07:00
melimion e55916044d opacity mask added to FrameRenderer (#7828)
fixes #7825
2019-10-21 12:49:46 -07:00
Stephane Delcroix e6fb094aab Merge branch '4.3.0' 2019-10-21 10:45:57 +02:00
melimion b12adc7bb2 Fix ListView.ScrollTo does not work in WPF (#7947)
* ScrollTo implementation added

* ScrollToPosition.Center implemented

* animation implemented
2019-10-18 10:28:29 -07:00
Konrad Müller 74d4caa05a Always use current dispatcher to invoke wpf timer (#7958) fixes #6957 2019-10-18 15:07:40 +01:00
ShaneN 5034a1f078 Merge 4.3.0 2019-10-16 10:46:25 -06:00
Konrad Müller 61eb23f6fe Fix bug 5868 "VisualElement.Unfocus does not work on WPF" (#7883)
* Add repro

* fix bug
2019-10-15 21:24:34 +02:00
Shane Neuville 647e4ab47b Remove 7.3 features from wpf (#7738) 2019-09-30 01:12:02 +01:00
neolithos c56c216f94 [Enhancement] Xamarin.Forms.Platform.WPF.ImageExtensions to public (#7462)
* Wpf api changes #7445

* Remove documentation comments

* Chg: C# language is not 7.3
fixes #7445
2019-09-27 09:05:16 -07:00
neolithos 13552eb4d4 Fix NullReferenceException in Obfuscate (#7589) (#7591)
fixes #7589
2019-09-27 09:04:33 -07:00
Yuriy Holembyovskyy a37c8b5bac Fix7320 font image source don't work on wpf (#7625) fixes #7320
* Added FontImageSourceHandler for WPF

* Spaces cleanup

* Replaced custom CreateBrush() method with built-in ToBrush() extension method

* Droped private.
Inverted if statement

* Added missing font.
Added Device case for WPF

* Fixed color conversion
2019-09-27 12:33:38 +01:00
ShaneN bb8d19aa7e Merge branch '4.2.0' 2019-08-13 11:27:43 -06:00
Gerald Versluis a91f149c42
Added missing NamedSizes for WPF (#7116)
# Conflicts:
#	Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issues.Shared/Xamarin.Forms.Controls.Issues.Shared.projitems
2019-08-13 11:59:37 +02:00
Stephane Delcroix 502916d03e Merge branch '4.2.0' 2019-08-12 10:38:25 +02:00
Gerald Versluis d75fa4fa92 [Bug] NullReferenceException Closing Window During Animation (#7067)
* Added null check to current application for WPF

* Apply suggestions from code review

Co-Authored-By: Samantha Houts <samhouts@users.noreply.github.com>
fixes #7061
2019-08-08 17:51:06 -07:00
Gerald Versluis b334548055 Enable SourceLink for Xamarin.Forms (#6886) fixes #2165
* Added sourcelink config to Directory.Build.props

* Only enable SourceLink for release builds

* Added debugtypes to mac projects

* pdb in nupkg files

* Revert "Added debugtypes to mac projects"

This reverts commit 7235bebdc42abdd9b747cd983357c7d832f91b39.

* Update Directory.Build.props

* Update Directory.Build.props

* Revert "Update Directory.Build.props"

This reverts commit 1c5b66c6e93fe55b66a028237a8b7f3b3629a804.

* Added DebugType portable to csprojs

* Removed all redundant csproj debugtype tags
2019-08-01 11:07:38 +01:00
Andrei Nitescu 6ee4ec6974 ITextAlignmentElement VerticalTextAlignment (Entry, SearchBar, EntryCell) (#6463) 2019-07-18 11:59:06 -07:00
Andrei Nitescu 8cb36f4bef Label padding (#6299)
* Label padding

* Probably the biggest dilemma in the world
fixes #4784
2019-07-16 09:06:01 -07:00
Gerald Versluis 630eb65516 Implemented Padding on WPF Button (#6791)
* Implemented Padding on WPF Button

* Update Padding when BorderWidth is updated

* Implemented Padding for ImageButton

* Apply suggestions from code review

Co-Authored-By: Pavel Yakovlev <v-payako@microsoft.com>
fixes #6790
2019-07-09 14:46:35 -07:00
Eilon Lipton 63f61b12ef Fix compiler warnings in WPF platform project (#6616) 2019-06-24 15:10:17 -07:00
jaytilly 019959aeda Fix for layouts in a cell to expand on resize (WPF) Issue #5682 (#6179)
* Added fix for grids in a cell to expand on resize

* Added check for expand before expanding grid

* Removed unused using

* Made the resize fix more generic

* Removed generic constraint on type check for layout controls on resize for children of cell control
2019-06-17 12:47:26 +01:00