I have a page that contains a CollectionView of images. I want the user to be able to LongPress on an image and then they will have the option to delete or edit the image.
I'm trying to implement LongPress functionality in my .Net Maui project, however I can't find any documentation for this. How do you guys handle LongPress? Am I missing something?
Due to the TouchEffect has not yet been ported from Xamarin Community Toolkit to Maui Community Toolkit, you can add the Xamarin.CommunityToolkit.MauiCompat 2.0.2-preview1013 to your project. It is the .NET MAUI Compatible version of Xamarin.CommunityToolkit.
Here is the codes you can directly run in the package manager console to add this package:
NuGet\Install-Package Xamarin.CommunityToolkit.MauiCompat -Version 2.0.2-preview1013
Related
There's a Xamarin package to implement signing feature in a Xamarin application. For now this repository is archived and there's no .net6.0 implementation for MAUI.
I tried to find a substitute for this package but did not succeed. Unfortunately commercial packages are not an option for my case.
Maybe I am missing something and MAUI has a such package?
There is a package in maui called Maui.CommunityToolkit. You can use the DrawingView as a replacement.
You can refer to this article.
In addition, I found a discussion about SignaturePad package for MAUI on git.
Here is the website: https://github.com/CommunityToolkit/Maui/discussions/270?sort=new
I use WebView 5.1.1 (EdgeHTML) in my WPF project on .NET Framework 4.6.2. When I update to version 6.0.0, I get a error
Must use packagereference.
It happens to the Microsoft.Windows.Sdk.Contracts library, which appears when version 6.0.0 is installed.
How do I fix this?
And then there's the question.
When will WebView 2 (Chromium) be released on .NET C# WinForms or WPF?
Will there be differences from WebView (EdgeHTML)?
I'm trying to find words in image and I found this library using Windows.Media.Ocr.
MS gives really good library using Windows.Media.Ocr but I can't use it in winform or wpf application project.
how can i load using Windows.Media.Ocr; and use it in winform or wpf project?
I got this error when I tried to add it in winform project.
after downloading UWPDesktop from nuget, I got this another error.
I am working at windows 10.
Install the UwpDesktop Nuget package in your WPF application. You should then be able to use the classes in the Windows.Media.Ocr namespace. Please refer to this blog post for more information.
Windows.Media.Ocr was originally limited to UWP applications only. Previously, developers had to install the UwpDesktop package via Nuget. However, there is now an official package from Microsoft that replaces the previous UwpDesktop package. Simply add the Microsoft.Windows.SDK.Contracts NuGet package to your project.
Check out this link for more info.
I was working with Unity and Hololens and tried to establish connection to Azure Iot Hub via MQTT protocol. Microsoft provides a tutorial for getting started with Azure IoT Hub in C#, but unfortunately, I encountered a problem with the tutorial:
In the picture above, I have selected Microsoft.Azure.Device NuGet package for installation. I have tried version 1.0.0 and also the latest one available, 1.2.4. The projects were automatically generated by Unity and that is probably the reason, why I do encounter this problem. Which problem? After I try to install the selected NuGet, I encounter the following error:
Could not install package 'Microsoft.Azure.Devices 1.2.4'. You are
trying to install this package into a project that targets
'.NETFramework,Version=v3.5,Profile=Unity Full v3.5', but the package
does not contain any assembly references or content files that are
compatible with that framework. For more information, contact the
package author.
I was like, "Hmm, I must have wrong .NET framework version. I wonder if I can change that..." I tried to go to project properties like this
Microsoft advises changing .NET framework from Properties context menu item:
https://technet.microsoft.com/fi-fi/library/bb772098(v=vs.90).aspx (4.24.2017)
https://msdn.microsoft.com/en-us/library/bb398202(v=vs.100).aspx (4.24.2017)
However, this feature must be blocked by something, because the view that is supposed to open flashes white and disappears immediately. I suppose Unity doesn't like people tinkering with project properties, but what else can I do? Incompatible .NET framework issue needs to be resolved, so that the NuGet package can be installed, but how do I do that?
In short, how to install Microsoft.Azure.Devices NuGet package for Unity?
Sorry, this isn't possible due Unity's restriction to .net 3.5.
To be exactly, they use a custom version of mono-2.
You could try the new (experimental) .net 4.6 settings in Unity 5.6.
https://forum.unity3d.com/threads/upgraded-mono-net-in-editor-on-5-5-0b4.433541/
I am new to windows app development. I want to use OxyPlot in UWAP C++/Xaml project. I am able to use it in C# based project but not in C++/Xaml project. First I tried to add it using Nuget package manager but it didn't install. Then I followed this (https://social.msdn.microsoft.com/Forums/en-US/8b77c775-21e0-4b43-b9f3-fb3777c43212/adding-libraries-and-use-them?forum=winappswithnativecode). In this Windows runtime component (with OxyPlot) is created in C# and used in C++ project. Here I am able to build the project but app crashes saying OxyPlot (added in C# project) not found.
Can someone please guide me. Regards
This may not 100% apply but it should. I was not trying to do this: "Use OxyPlot in Windows Universal app c++/xaml project". But I was tyring to use OxyPlot in a C++ .Net class so that it could do somethings fast, and eventually pass things back to a C# Class or WPF form. The idea I needed to know was could I create an OxyPlot.DataPoint array in C++ then put it into a C# Double array or an List in C# fast. And I can do that now fast! I hope this approach might help someone here doing this. I don't know how easy it is to use this technique to be able to use the opti chart in a C++ app or not. But if the GUI is done in C# this approach works.
I was getting the error: "You are trying to install this package into a project that targets 'native,Version=v0.0', but the package does not contain
any assembly references or content files that are compatible with that framework." when I tried to install OptiPlot.WPF or the NuGet.Commandline.
This may not be a complete solution for everyone's needs, but it worked for me. I found a "cheatin" way of getting OptiPlot.WPF into a sample C++.Net project. I had a C# main program project in my solution - I installed the package there:
Install-Package OxyPlot.Wpf -Version 2.0.0
Then I copied the packages.config file and the packages folder from there to my C++ .Net Class Library Project. Then I edited the packages.config file and took something out that didn't apply, and I probably took out a package in packages that wasn't needed. Then I added my references in the C++ .Net Class Library Project to packages/OxyPlot.Wpf.2.0.0 folder.
Now I could use the OxyPlot inside of C++! Cool!