I am not in Xamarin.Forms. In windows desktop apps (win forms and wpf), you can create a user UI component and you can use it in any project. Is it possible to create that kind of small UI elments in Xamarin.Forms?
I will have like a dll and will add to my project and will add to my form and I will give properties that I'll already defined in the UI element.
So, in Xamarin Forms world, we typically create User Controls through use of ContentView.
This can be done with a XAML part and code behind, but you can easily create them just in code too.
There are a series of tutorials available on the web, one that is very clear is this one https://mindofai.github.io/Creating-Custom-Controls-with-Bindable-Properties-in-Xamarin.Forms/
If needed, you can create a separate Xamarin Forms project that encapsulates your controls and reference that in your main app solution.
Related
I want to migrate my xamarin application to the new MAUI project template.
In Xamarin, I have a page view (xaml) with a map control bound to the viewmodel Map property
<ContentView HeightRequest="650" Content="{Binding Map}"/>
Now in MAUI, using BlazorWebView, I am trying to create a new razor page but I do not know how to bind the MAUI Map control to the razor page.
I would appreciate any help.
Thank you in advance.
I want to bind the Map property of type Microsoft.Maui.Maps.Map to the Map.razor page
I want to bind the Map property of type Microsoft.Maui.Maps.Map to the Map.razor page.
In other words, what you mean is to use native MAUI control in Blazor. You can refer to this: How to use Native MAUI Control in .razor pages, Allow Native MAUI Controls to be placed and used from .razor pages in Blazor Hybrid App. It is controversial. The direction provided by one of them is an experimental release.
You can try to use Map directly in Blazor, or use Map in MAUI.
Currently I am working on ibm bpm 8.0 and we are having requirement to angular js in the client side human services.
I have imported jquery.js and angular.js in process app as web files and used those files in my coach view and successfully able to run angular js code in custom html, But how can I use angular js with IBM BPM provided controls like (output text, input, button etc) and can achieve the two way binding?
Already existing coach view are build in and are intended for specific functionalities, I did not get why you want to change this and want two way binding. I don't think we have better way to do this without modifying those existing views. But below might work.
onLoad event of any coach view, you can attached additional programmatically created DOM elements to existing coach view. This way, you can attached AngularJS related html elements to exiting coach view. Also you can attached any event with this newly added DOM elements to react to user actions. on change event of existing coach view you can pass data to newly added DOM elements.
Below should help you on how to use AngularJS which you already have done.
https://www.ibm.com/support/knowledgecenter/en/SSFPJS_8.5.7/com.ibm.wbpm.wle.editor.doc/topics/t_create_lite_control.html
We have requirement in our application to create template pages at run time. For this we need to have a feature like form designer in ASP.NET to be built. Facility to drag the controls from toolbox and drop in the form at runtime should be made available to the user. Solution should be in pure ASP.NET. Silverlight is not being used in the application. Please suggest a best way to achieve this requirement.
Enable draggable functionality on any DOM element. Move the draggable object by clicking on it with the mouse and dragging it anywhere within the viewport.
http://jqueryui.com/draggable/
I have a set of UserControls in a ASP.NET website that I would like to share to multiple website. But it seems we are unable to create a class library with UserControls in it with the ascx file. While MSDN suggest building a Web Control, I Would rather find a way to share the existent controls instead of destroying them to create new web controls.
Is there any way of creating a library of UserControls?
Thanks
Here is one way of doing it:
Creating and Using User Control Libraries.
You can't compile them into a project per se. You can get something close to this by linking the files into the project so there is one master version of the file but each project also has its own copy. You can either:
Using a source control share function to have one location and share it into the other projects
Create one project for the controls and then link them into other project by using "Add Existing Item", clicking the little arrow next to the Add button, and selecting "Add As Link".
You should use instead a Composite control. Here is a comparison between web user controls and composite controls:
http://msdn.microsoft.com/en-us/library/aa719735(VS.71).aspx
I have the need to do some graphing (bar, chart, pie, trend) and instead of using Infragistics or manually drawing the graphs I want to use Silverlight.
My current ASP.NET application was upgraded to 3.5 and I have added a Silverlight Application project. Consuming the output inside of the existing master.page layout or inside of user controls does not seem to be as intuitive as I was hoping for.
Nor is the ability to create a graph from a generics listing of data even a control (like I have seen in several demonstrations at PDC08).
Any ideas?
I would suggest starting with the Silverligt toolkit (released at PDC) which includes a Silverlight chart control. There is an overview of how to use this control post here.
The important difference between Silverlight charting and ASP.Net forum based charting (using a third party control) is that the Silverlight chart will execute on the client while the asp.net chart would execute on the server. So if you want to use this type of control you will need to expose your chart data as a service.
Another option to do Silverlight charting but have your code execute on the client side is to build your Xaml using ASP.Net. In this case you would create your chart Xaml using ASP.Net which instead of generating HTML output would generate Xaml output.
If you want an example let me know...