Replies: 5 comments 6 replies
-
Not sure specifically about detecting a Xamarin Forms solution (I assume you mean a solution that contains a Xamarin Forms project, as it could contain many other business logic, data access and other projects, as well as the native platform 'head' projects). |
Beta Was this translation helpful? Give feedback.
-
I have some code that identifies if a project is WPF, UWP, WinUI, Xamarin.Forms, or MAUI at https://github.com/mrlacey/Rapid-XAML-Toolkit/blob/main/VSIX/RapidXaml.Shared/VisualStudioIntegration/VisualStudioAbstraction.cs#L47 It's not the prettiest and will need some modification for your needs but may be a starting point for you |
Beta Was this translation helpful? Give feedback.
-
Thank you for the reply!
Maybe I'm confused about Solution / Project.
When you start a xamarin forms Solution / Project you go into
File -> New -> Project
and select
Mobile App (Xamarin.Forms)
And then a Solution is created with up to 3 Projects (Android, iOS and UWP) and more projects can be added later.
I thought that it might later be possible to detect that this is the kind of Solution / Project.
…--
Eigil
|
Beta Was this translation helpful? Give feedback.
-
You can do this with a custom UI rule and VisibilityConstraints. I've got videos on it on the YouTube Playlist. Sorry, out on leave and not by PC |
Beta Was this translation helpful? Give feedback.
-
FYI: Here is my solution: The Package class is decorated like this:
|
Beta Was this translation helpful? Give feedback.
-
Hi
I’m creating an extension that (so far) only works on xamarin forms solutions. It is activated via the Solution Explorer Context Menu for the solution.
Is it possible to only show the menu button when the solution is xamarin forms ? E.i. are the any visibility constraints I can set on the menu button for my extension that allow it to be only shown if it is a xamarin forms solution ?
—
Eigil
Beta Was this translation helpful? Give feedback.
All reactions