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

1648 Коммитов

Автор SHA1 Сообщение Дата
Bret Johnson 7c71c4f769
Add notification in README (#845)
Add the text "“This repository is no longer actively maintained or developed.” to
the README for this public repo. UITools is the last remaining client that uses
this code & it now embeds the source in its repo.
2024-09-05 20:23:07 -04:00
Mike Bond 4a47f33fd6
Rebase bot: Use managed identity (MI) authorization (#844) 2024-08-07 12:38:21 -07:00
Mike Bond 972186e6dd
Backport bot: Use managed identity (MI) authorization (#843) 2024-07-02 09:01:50 -07:00
Mike Bond 5c5669fd3b
localization-handoff: Avoid showing token (#842) 2024-05-28 08:27:51 -07:00
Matt Sylvia 6a8a2f503e
Merge pull request #841 from xamarin/dev/msylvia/remove-writehost-01
Remove WriteHost
2024-05-21 17:18:52 -04:00
Matt Sylvia b879f14e5b Remove WriteHost 2024-05-21 17:18:05 -04:00
Mike Bond d239d51143
Generate token for use by the OneLocBuild task (#840) 2024-05-07 09:31:01 -07:00
Mike Bond 79adbd399b
GITHUB_TOKEN read-only change: Include permissions block (#839) 2024-02-06 10:36:08 -08:00
James Parsons 3673f04cbf
Merge pull request #836 from xamarin/dev/japarson/compliance-pipeline
Add weekly compliance pipeline
2024-01-10 11:51:09 -08:00
James Parsons abecb24189
Update azure-pipelines-compliance.yaml 2024-01-10 11:37:57 -08:00
James Parsons 0edb9bc9a7 Add weekly compliance pipeline 2024-01-10 19:24:30 +00:00
Mike Bond ba7ade4f6a
Localization Handoff: Use keyvault-backed nuget feed access PAT 2024-01-09 16:55:41 -08:00
Bret Johnson f3313fa52a
Update AzDO NuGet feed, as required for compliance (#837)
For compliance we can't use the default public NuGet feed.
Instead, use the same feeds (some of them) that are used for xamarin-android (https://github.com/xamarin/xamarin-android/blob/main/NuGet.config), another public repo.

Also disable building for Mac, since it's no longer needed.
2024-01-09 19:41:06 -05:00
James Parsons 58679c9fcf
Merge pull request #835 from xamarin/dev/japarson/compliance-template
Convert repo to use compliance template
2023-12-07 12:14:25 -08:00
James Parsons 154e4625c3 Add suppressions for existing issues 2023-12-07 11:37:59 -08:00
James Parsons 937d9a2b1b Fix issue with french exclusions 2023-12-07 11:31:13 -08:00
James Parsons 8854e60534 Fix usage of policheck exclusions 2023-12-07 11:18:14 -08:00
James Parsons 598c9989c2 Delete old compliance stage 2023-12-06 22:28:00 -08:00
James Parsons 6201b380ba Simplify policheck exclusions 2023-12-06 22:27:33 -08:00
James Parsons 5b36629705 Fix tsaoptions path 2023-12-06 22:11:25 -08:00
James Parsons df483457d5 Fix usage of OutputPath 2023-12-06 21:28:31 -08:00
James Parsons 74605a0a5b Convert repo to use compliance template 2023-12-06 21:05:19 -08:00
Bret Johnson 4846209066
Update a11y name for "New" button (#834)
Fixes AB#1871578
2023-09-28 16:17:19 -04:00
Bret Johnson f358a0257c
Fix API not supported on Catalina (#830)
NSTableView.FullWidth is only explicitly supported on Big Sur
and later, so don't set it for older versions of macOS.
For older versions of macOS, FullWidth is apparently the default
so doesn't need to be specified.

This updates the layout UI tweaks included in
https://github.com/xamarin/Xamarin.PropertyEditing/pull/817.

Fixes AB#1776438s
2023-03-28 12:23:26 -04:00
Matt Ward 02f684f5a4
Allow other NuGet feeds when building (#829)
When using the latest internal .NET SDK the build will fail since
Xamarin.PropertyEditing cannot resolve the latest packages since
all internal package sources are cleared. Resulting in a build failure:

 error NU1102: Unable to find package Microsoft.NETCore.App.Ref with version (= 6.0.14)
2023-01-27 15:51:07 -05:00
Bret Johnson 60382c296f
Show proper expanded icon by default (#827)
* Show proper expanded icon by default

Fix so that when a category is expanded by default the UI shows the proper icon (the expanded icon, not collapsed).

There are two main changes here:

Remove the code added in 96561f1 to support custom disclosures for Catalina. That's no longer required in newer versions of macOS. Now we just let AppKit handle setting the right disclosure icon.
Add call to UpdateExpansions in OnPropertiesChanged, so that the default expansion state is correct when the property editor context changes, ensuring that categories are autoexpanded when they are supposed to be.

Fixes AB#1559942
2023-01-26 10:39:06 -05:00
Bret Johnson 503caf2cd7
Fix setting custom values for non-constrained enums (#826)
If a predefined property value is set that doesn't match
one of the standard options, then set it as the valueName,
same as if it was passed in the ValueDescriptor. This fixes
showing the custom value in the property editor UI.
Fixes AB#1600201.

Proppy's intention may have been that custom values like
this should be set in the ValueDescriptor instead of Value -
I'm not sure about that. However the Forms XAML code
doesn't do that. Given that, and the fact that there's no harm
is allowing custom values to be specified in the Value instead
of just ValueDescriptor, we now support both.
2023-01-13 18:24:57 -05:00
Bret Johnson d158defa78
Avoid excess margins on left/right of property editor (#817)
* Avoid excess margins on left/right of property editor

The property editor (for reasons I don't fully understand,
but maybe due to move away from a Gtk wrapper)
has noticably wider margins on the left & right in 17.x
as compared to 8.x. It's especially noticable on the
right hand side.

This change fixes that, setting the property table style to
NSTableViewStyleFullWidth, so rows fill the full width of
the table. It also adjusts the left and right margins and
space between the labels and controls, per design
recommendations.
2022-12-21 13:48:13 -05:00
Bret Johnson d98d19bd47
Hide Name UI unless object is nameable (#825)
* Hide Name UI unless object is nameable

The Name field should only show in the property UI
if the object is nameable - which it normally isn’t.
The Name UI is properly hidden on VS Windows - it
just wasn’t on Mac. That’s fixed now.

Fixes AB#1615257

* Tweak margins
2022-12-13 12:00:07 -05:00
Michael Cummings (MSFT) 8ff816d344
Merge pull request #822 from xamarin/dev/cadsit/update-backport-bot
Update backport-trigger.yml
2022-11-15 10:44:37 -05:00
Sandy Armstrong b5ddd5dd44
Merge pull request #824 from xamarin/dev/sandy/prov-update
Update provisionator-bootstrap.sh
2022-11-10 13:44:24 -08:00
Sandy Armstrong 8ade7d8354
Update provisionator-bootstrap.sh 2022-11-10 10:13:23 -08:00
Connor Adsit 62896c2ce7
Merge pull request #823 from xamarin/dev/msylvia/update-provisionator-bootstrap
Update provisionator bootstrap
2022-11-07 13:22:17 -05:00
cadsit b9621acae9 And here, too 2022-11-02 20:08:44 -04:00
cadsit 1c3f2f3170 Reference github-pat instead of GitHub.Token 2022-11-02 20:05:17 -04:00
Matt Sylvia 3ef0a95d2b Update provisionator bootstrap 2022-11-02 17:29:37 -04:00
Connor Adsit 020d92e8cc
Update backport-trigger.yml 2022-10-24 13:16:17 -04:00
Bret Johnson eab7442066
Use a variable width for the property search filter (#816)
* Use a variable width for the property search filter

Make VSMac have variable width for the property search
area instead of the fixed width of 150. That makes
it behave more like Windows, where the width is also
variable, allowing more space for the user to type.
Also, the left/right/top margins around the search control
are tweaked, per design input from Hylke.

It also fixes AB#1522517.

* Update to use Leading/Trailing instead of Left/Right
* Update margins
* Remove some of the spacing on right of search control
2022-08-15 13:19:46 -04:00
Jose Medrano 6436bb3481
[HistoryLayer] On viewmodel changes we ensure our viewmodel is not null and set default color (#821)
Fix [AB#1569130](https://devdiv.visualstudio.com/0bdbc590-a062-4c3f-b0f6-9383f67865ee/_workitems/edit/1569130)

Due to the issue https://github.com/xamarin/xamarin-macios/issues/15600, when a CGColor is allocated and its native object about to be passed to PInvoke when setting CALayout.BackgroundColor, it's possible for it be GC'ed, which CFReleases the CGColor, before the PInvoke completes and BackgroundColor gets a chance to CFRetain it. In that case, the BackgroundColor can point to a deleted object. Until there's a real fix for that race condition with https://github.com/xamarin/xamarin-macios/issues/15600 fixed, we workaround it here by doing a GC.KeepAlive ensuring that the object lives until the PInvoke completes.

Also, in some scenarios looks like ViewModel is not yet set in OnViewModelChanged event, which could cause a NRE. We now protect against that too.

[<img width="628" alt="CleanShot 2022-07-21 at 17 38 24@2x" src="https://user-images.githubusercontent.com/1587480/180255034-431b16e9-f02e-4e70-93c6-46485e9f5cde.png">]

(https://github.com/xamarin/Xamarin.PropertyEditing/blob/dev/netonjm/fix-1569130/Xamarin.PropertyEditing.Mac/Controls/Custom/SolidColorBrushEditorViewController.cs#L33-L47)

Co-authored-by: Bret Johnson <bret.johnson@microsoft.com>
2022-08-02 12:10:59 -04:00
Jose Medrano 7c2f097d1b
Merge pull request #818 from xamarin/bundle-fallback
Fallback PropertyEditingResource in app bundle resources directory
2022-06-14 18:28:45 +02:00
Jose Medrano d3026c933c Fallback PropertyEditingResource in app bundle resources directory 2022-06-14 17:57:25 +02:00
Sandy Armstrong facd67f222
Merge pull request #815 from xamarin/dev/sandy/macos-rc3
Build: Use a 6.0.300 SDK and macos workload RC3
2022-06-13 07:31:04 -07:00
Sandy Armstrong dbb3f7ab35 Build: Don't use Mono msbuild on Mac 2022-05-17 12:23:28 -07:00
Sandy Armstrong b58ef75d89 Build on macos-12 for Xcode 13.3 2022-05-17 12:16:55 -07:00
Sandy Armstrong d59065ea23 Build: Use a 6.0.300 SDK and macos workload RC3 2022-05-12 12:33:34 -07:00
Sandy Armstrong 3ba685897e
Merge pull request #811 from xamarin/dev/sandy/workloads-again-i-know-1
Update macos workload provisioning
2022-05-10 07:48:41 -07:00
Bret Johnson a6e198c0bd
Merge pull request #813 from xamarin/backport-pr-812-to-main
[main] Remove UpdateExpansions
2022-04-19 12:49:02 -04:00
Bret Johnson 66883f7f31 Remove UpdateExpansions
Remove the call to UpdateExpansions after ReloadData in response to
OnPropertiesChanged (e.g. called when selection changes). This
doesn't seem necessary, as when views are recreated their
expansion status is set correctly originally and AppKit
remembers expansion state after.

Further, this fixes AB#1521131, where the Name and Type rows are
sometimes blank - apparently expanding manually, and doing it
synchronously like that, causes the NSOutlineView
to get confused and not show the top row sometimes.
2022-04-19 16:47:47 +00:00
Sandy Armstrong 71df1f3530
Update macos workload provisioning
Fixes this error that some people are seeing:

    Workload installation failed: microsoft.net.runtime.monoaotcompiler.task::6.0.4 is not found in NuGet feeds https://aka.ms/dotnet6/nuget/index.json;https://devdiv.pkgs.visualstudio.com/DevDiv/_packaging/VSMac/nuget/v3/index.json".

See xamarin/provisionator#455
2022-04-15 15:53:00 -07:00
Bret Johnson 84ffcb6e88
Merge pull request #810 from xamarin/dev/chabiss/remove_system_net_http
Remove system.net.http unused reference
2022-04-15 14:09:05 -04:00