Answer the question
In order to leave comments, you need to log in
How to make a component with subsequent reuse in XAML?
I want to make, for example, my own picker, but so that I can reuse a la directives, now the components are like in angular.
But only reached the announcement
namespace Chainhub.Forms.UI.Controls
{
public partial class BoxPickerControl : ContentView
{
public BoxPickerControl()
{
InitializeComponent();
}
}
}
<?xml version="1.0" encoding="utf-8" ?>
<ContentView xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="Chainhub.Forms.UI.Controls.BoxPickerControl">
<StackLayout>
<StackLayout>
<StackLayout BackgroundColor="#383940" Padding="5,5,5,5" Orientation="Horizontal">
<StackLayout HorizontalOptions="StartAndExpand">
<Label Text="Categories" TextColor="White"></Label>
</StackLayout>
...
</ContentView>
xmlns:controls="clr-namespace:Chainhub.Forms.UI.Controls;assebmly=Chainhub.Forms"
<controls:BoxPickerControl>
</controls:BoxPickerControl>
target invocation exception
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question