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

7284 Коммитов

Автор SHA1 Сообщение Дата
Javier Suárez Ruiz ab7d07ac9d Implement Progress proprerty in WinUI ProgressBarHandler 2021-04-13 12:07:53 +02:00
github-actions[bot] fc90bf6c40
Automated dotnet-format update (#714)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2021-04-13 10:05:10 +01:00
Matthew Leibowitz 204f1b17b5
Fix CA1416 because we didn't set a min version (#700)
* Fix CA1416 because we didn't set a min version

CA1416 - This call site is reachable on: 'Windows' 10.0.17763.0 and later. 'XXX' is only supported on: 'Windows' 10.0.18362.0 and later.

* Also need to pack that

* Use variables

* Use correct paths

* recursive file path
2021-04-12 14:42:59 -05:00
github-actions[bot] 2e9ef48c60
Automated dotnet-format update (#691)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2021-04-12 09:42:37 +01:00
Javier Suárez bfd9aa9dc4
Added Stepper.Impl.cs (#693) 2021-04-12 09:41:17 +01:00
Shane Neuville 18e0f4ebbc
Fix cake VS-WINUI Target (#699)
* Fix WinUI Cake script for building WinUI

* - fix clean script to ignore dotnet folders
2021-04-09 18:16:04 -05:00
David Ortinau a7e00c05a8
Update README.md 2021-04-09 14:35:08 -05:00
Rachel Kang 8997cd2805
Create semantics page (#679)
* Create SemanticsPage

* Add SemanticsPage

* Dedup csproj compile line

* - add nullability test

* - fix bit operator and add tests

* - fix vsmac builds

* - fix test

* Update Startup.cs

* Update Maui.Controls.Sample.WinUI (Package).wapproj

Co-authored-by: Shane Neuville <shneuvil@microsoft.com>
2021-04-08 19:49:47 -05:00
Matthew Leibowitz 9df7b78218
[EntryHandler] Keyboard (Re land of 507 - GitHub closed it 😭) (#682)
* Base code for handlers.

* Platform specific extension parts in the handlers and partially implementing Android handler.

* Test code in sample for numeric keyboard input type.

* iOS Handler port.

* KeyListener implementation for Android handler.

* Keyboard added for EntryStub.

* fix for wrong property name mapping

* better property summary

* bindable proeprty added to Entry

* Device tests for all non custom keyboard types are implemented for both iOS and Android.

* MapKeyboard order changed in order to prevent unwanted changes to other properties like IsTextPredictionEnabled

* Numeric entry to samples with placeholder.

* Fixed merging error with namespaces.

* Better PortHandler for UpdateInputType in Android renderer.

* pattern matching usage in keyboard extensions for android.

* Moved LocalizedDigitsKeyListener to Core.Android project

* Delete KeyboardExtensions in Android Compatibility.

* Possible iOS Compatibility for Extensions.

* Missing SearchBarRenderer usings.

* Added missing usings for iOS renderers.

* more missing references in iOS renderers...

* Removed already ported extension methods in iOS and changed the usages in renderer.

* Inverted LogaliczedDigitKeyListener return logic to better one.

* Merged main.

* Fix build errors

* Added TODO

* - fix compile errors

* Seems CheckBox is also done on Windows

* Added a enw attribute for incomplete handlers

* Clean up the handler code a tiny bit

* Use the new ITextStyle

* Fix tests

* Do not fire text changed if nothing changed

* MaxLength == -1 crashes

* MaxLines < 0 == everything

* Added a test

* Attach that event!

* That is correct, 2 events

* Fix null ref

* Don't crash on -1 max length

* nulls are uncool here

* Re-apply the formatting

* Test the crashes

* iOS is like Superman

It can do amazing things, sometimes... And that little green rock...
Apply the formatting after every change
Fire the text changed event when the text changes, but not when formatting changes

* No need to reset everything

* Fix tests for Android

* Fix iOS tests

* Fix tests properly

Co-authored-by: Burak Kaan Köse <bkaankose@outlook.com>
Co-authored-by: Rui Marinho <me@ruimarinho.net>
Co-authored-by: Javier Suárez <javiersuarezruiz@hotmail.com>
Co-authored-by: Shane Neuville <shneuvil@microsoft.com>
2021-04-08 13:39:23 +02:00
Matthew Leibowitz a6b5d40b50
Fixing a bug is a beautiful thing (#685) 2021-04-07 19:53:43 -06:00
Matthew Leibowitz 36f94a28dc
Added a util method to get services from the handler (#676) 2021-04-08 03:45:03 +02:00
Matthew Leibowitz 6867350708
Added more tests and fixed a bug (#684) 2021-04-07 19:16:23 -06:00
Javier Suárez b83f98aca9
Implement Font properties in PickerHandlers (#589) 2021-04-07 23:57:48 +02:00
Matthew Leibowitz 07368791f4
Split IText into IText and ITextStyle and a good couple of bugs (#668)
Co-authored-by: Shane Neuville <shneuvil@microsoft.com>
2021-04-07 22:25:04 +02:00
Rui Marinho 1e55dd9aea
[Build] Build buildtasks before open on vs 2021-04-07 12:25:36 +01:00
github-actions[bot] 844ea1bf6b
Automated dotnet-format update (#667)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2021-04-07 10:01:55 +01:00
James Clancey b3e96ad098
iOS Max Length now works with a -1 value (#662) 2021-04-07 05:48:32 +02:00
Shane Neuville 67d484d32a
Sign windows nugets instead of mac (#665)
* Sign windows nugets

* - change destination folder

* - switch
2021-04-06 17:16:25 -05:00
Shane Neuville 62b24525b4
Semantics and some structure changes (#635)
* Initial Semantics accessibility APIs

* Test run and try to debug

* Initial Semantics accessibility APIs

* Test run and try to debug

* Implement semantics in stubs

* Initial Semantics accessibility APIs

* Test run and try to debug

* Implement semantics in stubs

* Change to hint to use AccessibilityDelegate and node info; add initial IsHeading stuff

* Fix outstanding merge conflicts

* - fix up VE

* Fix merge conflicts

* remove unused usings

* - move delegate to new type

* - compat

* - check for delegate

* - make view handler a base class?

* - rename handler

* - ViewHandler

* - Change is coming through my shadow

* - change object to Native type

* - fix up semantics

* - add tests

* - fix gallery

* - rename winui

* - cleanup

* - fix winui

* - fix gallery

* - fix up connect handler

* - fix android

* - simplify

* - fix disconnect call

* - clean up

* - fix merge

* - fix merge conflicts

* - cleanup

* - add heading level to attached property

* - add tests

* - fix typos

* - fix CG

* Conflictos

Co-authored-by: Rachel Kang <rachelkang@microsoft.com>
Co-authored-by: Jonathan Dick <jodick@microsoft.com>
Co-authored-by: Matthew Leibowitz <mattleibow@live.com>
2021-04-06 16:13:21 -05:00
Javier Suárez 6f681b3119
Implement Font property in DatePickerHandlers (#609) 2021-04-06 21:32:38 +02:00
Matthew Leibowitz 609f4d55cb
Make the renderers optional (#664) 2021-04-06 15:20:50 -04:00
Matthew Leibowitz 6a71d58824
Add the LabelHandler for WinUI (#655)
* Add the LabelHandler for WinUI

* Windows is beautiful

* ws

* my bad. it does work.

* Revert "my bad. it does work."

This reverts commit 3c985b530dc2a84d53ef7900e7d7db715fb03a18.

* Revert "Revert "my bad. it does work.""

This reverts commit 4b4e0b3be1c5b19255b0ffccad87c11b25ecb0a3.

* not this now

* Don't remove all the xaml on non-Windows

Android and iOS are non-Windows and thus they lose all XAML files. THis only came in with WinUI and is only noticeable since we started using the App.xaml as the main entry point.

* - add build step to winui cake

* Moving toys

Co-authored-by: Shane Neuville <shneuvil@microsoft.com>
2021-04-06 10:56:33 -05:00
Peter Collins 5a2aa3ae5d
Bump to .NET 6.0.100-preview.3.21202.5 (#656)
* Android 11.0.200.196
  * Catalyst 14.3.100.471
  * iOS 14.4.100.1326
2021-04-06 08:19:25 -04:00
Javier Suárez ccaf6847a7
Implement CharacterSpacing property in DatePickerHandlers (#608) 2021-04-06 06:24:43 +02:00
Javier Suárez b51a6a3dac
Implement CharacterSpacing property in ButtonHandlers (#607) 2021-04-06 05:35:57 +02:00
Matthew Leibowitz 5039e5d4e6
Experiments for Native Lifecycle (#606)
* Implement native lifecycle events for Android and iOS

* Fix build error

* Update things to new things

* Fix build errors

* Renamed Platform lifetime interfaces and mapped more methods

* Bad merge

* Trying a new idea

* Using IActivityLifecycleCallbacks

* Clean up a bit

* Add iOS lifecycle delegates

* Do a heck lot of things

* The GPS _is_ working!

* Fix da build!

* Fix things

* Move a few things

- fonts into the new builder system
- handlers now are configure/add
- compat renderers are added like normal handlers
- add a fe UseXxx extensions for "features"

* update essentials

* remove the shortcuts

* Something is fishy

* Adding a good few more tests

* Fix templates

* Use a better name

* Move that out and public

* That

* Remove lifecycle for now

* remove resizetizer samples

* ;

* ;

* More improvements

* Fix things after review

* Add a few overloads

* switchy switch

* Add this

* Still need this

* Hook up iOS events

* Added WinUI lifecycle events

* Clean up a bit

* We don't need this

* WinUI is net6

Co-authored-by: Javier Suárez Ruiz <javiersuarezruiz@hotmail.com>
2021-04-05 17:31:32 -04:00
E.Z. Hart da2b7572f8
Fix Android infinite height bug (#638)
* Fix Android infinite height bug

* Fix explicit size check
2021-04-05 13:20:58 -05:00
Matthew Leibowitz f453f45986
Make the various usage of ConfigureServices more consistent (#615)
* Implement native lifecycle events for Android and iOS

* Fix build error

* Update things to new things

* Fix build errors

* Renamed Platform lifetime interfaces and mapped more methods

* Bad merge

* Trying a new idea

* Using IActivityLifecycleCallbacks

* Clean up a bit

* Add iOS lifecycle delegates

* Do a heck lot of things

* The GPS _is_ working!

* Fix da build!

* Fix things

* Move a few things

- fonts into the new builder system
- handlers now are configure/add
- compat renderers are added like normal handlers
- add a fe UseXxx extensions for "features"

* update essentials

* remove the shortcuts

* Something is fishy

* Adding a good few more tests

* Fix templates

* Use a better name

* Move that out and public

* That

* Remove lifecycle for now

* remove resizetizer samples

* ;

* More improvements

* Fix things after review

* Add a few overloads

* switchy switch

* Review things

Co-authored-by: Javier Suárez Ruiz <javiersuarezruiz@hotmail.com>
2021-04-05 13:49:46 -04:00
Jonathan Peppers 85adc53040
Bump to .NET 6.0.100-preview.3.21201.23 (#642)
* Android 11.0.200-preview.3.195
* Catalyst: 14.3.100-ci.main.465
* iOS: 14.4.100-ci.main.1320

Other changes:
* We should be able to remove the `$(SuppressTrimAnalysisWarnings)` workaround.
* We need to use `iossimulator-x64` everywhere, as the RID has been changed to differentiate iOS simulators between M1 Macs and Intel Macs.
2021-04-05 16:50:13 +01:00
Shane Neuville 70b23f45f0
Csharp9 (#640)
* Update to C#9

* - add one C#9 feature

* - toolset

* - NS20 only

* - check msbuild version
2021-04-05 09:34:03 -04:00
Eilon Lipton e0b7d31cc6
Update build.cake to support pre-release VS (#636) 2021-04-01 21:55:38 -05:00
Rui Marinho 481b2a7139
Go back to preview 3 2021-04-01 15:29:43 +01:00
github-actions[bot] 17d6f49cbd
Automated dotnet-format update (#633)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2021-04-01 09:10:02 +01:00
Rui Marinho 939580d96e
Bump GitInfo 2021-03-31 18:00:23 +01:00
Javier Suárez eccd9c29e7
Change UpdateLineHeight extension methods to be public (#630) 2021-03-31 16:06:40 +01:00
Samir GC 06b1276da2
Typo on ReadMe (#626)
Co-authored-by: samir gc <samir@irodeck48gmail.onmicrosoft.com>
2021-03-31 14:44:19 +01:00
Jonathan Dick a2e73aeb85
Reordering some net6 TFM's (#616)
Co-authored-by: Matthew Leibowitz <mattleibow@live.com>
2021-03-31 10:57:51 +01:00
Jonathan Peppers cd0ebb565e
Bump to .NET 6.0.100-preview.3.21174.8 (#617)
* Android 11.0.200-preview.3.189
* MacCatalyst 14.3.100-ci.main.438
* iOS 14.4.100-ci.main.1293

We can also remove `$(SuppressTrimAnalysisWarnings)` now.
2021-03-31 10:56:04 +01:00
hydrogen-software-ff 297d8b3925
Fixed "single project" commands (#624)
Added missing hyphen to the 't' option
2021-03-31 10:52:14 +01:00
Matthew Leibowitz 06b5d3ae07
Move the templates into a separate folder (#614)
- Move templates to /src/Templates
- Add Core.UnitTests to net6 solution
2021-03-30 10:29:52 +02:00
Matthew Leibowitz a70cd9e721
remove resizetizer samples (#613) 2021-03-30 09:39:51 +02:00
Shane Neuville e7414cb7f4
Bump reunion to stable 0.5 (#610)
* Bump reunion to stable 0.5

* - remove life cycle apis
2021-03-29 15:00:53 -05:00
Matthew Leibowitz 529f68d12d
Unify WinUI versions (#604) 2021-03-26 20:12:37 -05:00
Shane Neuville ac9b08704a
WinUI measure fixes (#597) 2021-03-27 02:54:07 +02:00
Jonathan Peppers 2a442cbf22
Bump to .NET 6.0.100-preview.3.21168.18 (#592)
* Android 11.0.200-ci.main.175
* iOS 14.4.100-ci.main.1271
* MacCatalyst 14.3.100-ci.main.416

Other changes:

* Some Android SDK packs were renamed.
* We no longer need various packages to appease ILLink, such as:
  System.CodeDom, System.IO.Ports, etc.
* Temporarily set `$(SuppressTrimAnalysisWarnings)` in
  `Directory.Build.props`.
2021-03-26 09:26:15 +00:00
Jonathan Peppers fe429dd2a1
[build] we don't need to install a system .NET 6 (#594)
CI is currently downloading/installing .NET 6 twice, once via
`UseDotNet` in `.yml` and again via `DotNet.csproj`.

I don't think we actually need to do call `UseDotNet`, I was able to
run `eng\package.ps1` without .NET 6 installed.
2021-03-26 09:25:09 +00:00
Shane Neuville e966c105ce
Remove invalid XAML files based on OutputType (#593)
* Remove invalid XAML files based on OutputType

* - remove TPMV setter

* - fix sample to work with targets
2021-03-25 21:57:01 -05:00
Jonathan Peppers 88f516f332
[resizetizer] rename @(SharedImage) to @(MauiImage) (#591)
* [resizetizer] rename @(SharedImage) to @(MauiImage)

This updates any public facing names for:

* `@(SharedImage)` -> `@(MauiImage)`
* `@(SharedFont)` -> `@(MauiFont)`
* `@(SharedItem)` -> `@(MauiItem)`
* `<ResizetizeSharedImages/>` MSBuild task to `<ResizetizeImages/>`
* `SharedImageInfo` -> `ResizeImageInfo`
* `SharedImageType` -> `ImageType`.

I didn't change any logic here, only did Find/Replace in VS Code or
refactor/rename in Visual Studio.
2021-03-25 21:36:36 +02:00
Jonathan Dick 7b041ae7bc
Update MauiApp1.in.csproj (#596) 2021-03-25 20:02:32 +02:00
Shane Neuville fe3452ced9
WinUI (#548)
* WinUI3 Desktop Head

* - Fix up Compatibility Proiect

* - fix conditionals

* - temp remove windows pack restriction

* - namespace fixes

* - winui

* - add WinUI to SLN

* - change handlers to windows

* - fixes

* - additional handlers

* - essentials fixes

* - msbuild

* - add more

* - fix comment

* - transitive

* - check for windows

* - windows conditional

* - vs path

* - restore;build

* - remove target

* - build first

* -remove

* Building again!

* - add global.json file

* - set MauiPlatforms

* - remove things

* Make it at least run

* - split out restore/build

* - magic?

* -  5

* Put stuff here and try more

* - add restore

* - fix essentials

* Get it closer

* Go simple or go home

* diffs

* - net5 checks

* - winui fixes

* - files

* - preview versions

* - maybe?

* - add code back in

* Update package.ps1

Fix usage of $dotnet, moved around if and try-finally

* Whoops

* Update package.ps1

Add /restore flag, fix double //

* - fixed pri runtime paths

* - copy xbf files around

* - fix

* - fix path

* Fonts

* - windows only nugets

* - fix targets

* Fonts now working

* ws

* //TODO WINUI3

* More mappings

* - builds

* - remove props

* - props

* Button has all the things done so far

* - layout basics

* Don't reference the build tasks, then all is well

* - shims

* - fix shim measuring

* - fix resource loading

* Uncomment the things in Forms

* - tweak measure

* update

* Remove old code

* Revert "Remove old code"

This reverts commit 2b63ebab0e5fdc180360e5aa4ee04c3df964a8cc.

* Add image for goodness

* - measure

* - always build winui for core

* - add created handlers

* - add mappers

* Build windows and macos now

* Always pack

* - call arrange on the children again

* - fix

* - embrace it

* - fix condition

* - maybe

* This might work

* that

* - fix

* - fix

* - no more

* Use the correct path to the image

* No more SimpleApp

* This actually works...

Co-authored-by: Matthew Leibowitz <mattleibow@live.com>
Co-authored-by: Jonathan Peppers <jonathan.peppers@microsoft.com>
2021-03-25 09:02:01 -05:00