How can I create a new Xamarin Element based on a Frame with a StackLayout inside of it?












5















I have a Frame with a StackLayout inside of it:





<Frame CornerRadius="1" HasShadow="false" Margin="10" 
BackgroundColor="White" BorderColor="Silver" Padding="0" >
<StackLayout Orientation="Vertical" Spacing="0" Padding="0" >
<xaml:PtiXaml />
<template:LineTemplate />
<xaml:AtiXaml />
<template:LineTemplate />
<xaml:StiXaml />
</StackLayout>
</Frame>


Can I create a new object called NewFrame that is the same as the Frame with the StackLayout inside?



<template:NewFrame>
<xaml:PtiXaml />
<template:LineTemplate />
<xaml:AtiXaml />
<template:LineTemplate />
<xaml:StiXaml />
</template:NewFrame>


or



<template:NewFrame>
<xaml:ABCXaml />
</template:NewFrame>


or



<template:NewFrame>
<Label Text="X" />
</template:NewFrame>


It was suggested I use a Custom View but I have looked and can not find an example of this where it contains other elements inside.










share|improve this question

























  • Have you looked at the ContentProperty attribute?

    – Tom
    Dec 14 '18 at 11:41
















5















I have a Frame with a StackLayout inside of it:





<Frame CornerRadius="1" HasShadow="false" Margin="10" 
BackgroundColor="White" BorderColor="Silver" Padding="0" >
<StackLayout Orientation="Vertical" Spacing="0" Padding="0" >
<xaml:PtiXaml />
<template:LineTemplate />
<xaml:AtiXaml />
<template:LineTemplate />
<xaml:StiXaml />
</StackLayout>
</Frame>


Can I create a new object called NewFrame that is the same as the Frame with the StackLayout inside?



<template:NewFrame>
<xaml:PtiXaml />
<template:LineTemplate />
<xaml:AtiXaml />
<template:LineTemplate />
<xaml:StiXaml />
</template:NewFrame>


or



<template:NewFrame>
<xaml:ABCXaml />
</template:NewFrame>


or



<template:NewFrame>
<Label Text="X" />
</template:NewFrame>


It was suggested I use a Custom View but I have looked and can not find an example of this where it contains other elements inside.










share|improve this question

























  • Have you looked at the ContentProperty attribute?

    – Tom
    Dec 14 '18 at 11:41














5












5








5








I have a Frame with a StackLayout inside of it:





<Frame CornerRadius="1" HasShadow="false" Margin="10" 
BackgroundColor="White" BorderColor="Silver" Padding="0" >
<StackLayout Orientation="Vertical" Spacing="0" Padding="0" >
<xaml:PtiXaml />
<template:LineTemplate />
<xaml:AtiXaml />
<template:LineTemplate />
<xaml:StiXaml />
</StackLayout>
</Frame>


Can I create a new object called NewFrame that is the same as the Frame with the StackLayout inside?



<template:NewFrame>
<xaml:PtiXaml />
<template:LineTemplate />
<xaml:AtiXaml />
<template:LineTemplate />
<xaml:StiXaml />
</template:NewFrame>


or



<template:NewFrame>
<xaml:ABCXaml />
</template:NewFrame>


or



<template:NewFrame>
<Label Text="X" />
</template:NewFrame>


It was suggested I use a Custom View but I have looked and can not find an example of this where it contains other elements inside.










share|improve this question
















I have a Frame with a StackLayout inside of it:





<Frame CornerRadius="1" HasShadow="false" Margin="10" 
BackgroundColor="White" BorderColor="Silver" Padding="0" >
<StackLayout Orientation="Vertical" Spacing="0" Padding="0" >
<xaml:PtiXaml />
<template:LineTemplate />
<xaml:AtiXaml />
<template:LineTemplate />
<xaml:StiXaml />
</StackLayout>
</Frame>


Can I create a new object called NewFrame that is the same as the Frame with the StackLayout inside?



<template:NewFrame>
<xaml:PtiXaml />
<template:LineTemplate />
<xaml:AtiXaml />
<template:LineTemplate />
<xaml:StiXaml />
</template:NewFrame>


or



<template:NewFrame>
<xaml:ABCXaml />
</template:NewFrame>


or



<template:NewFrame>
<Label Text="X" />
</template:NewFrame>


It was suggested I use a Custom View but I have looked and can not find an example of this where it contains other elements inside.







xamarin xamarin.forms






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Dec 13 '18 at 17:41









Brandon Minnick

6,150122973




6,150122973










asked Nov 22 '18 at 0:10









Alan2Alan2

1,60155133255




1,60155133255













  • Have you looked at the ContentProperty attribute?

    – Tom
    Dec 14 '18 at 11:41



















  • Have you looked at the ContentProperty attribute?

    – Tom
    Dec 14 '18 at 11:41

















Have you looked at the ContentProperty attribute?

– Tom
Dec 14 '18 at 11:41





Have you looked at the ContentProperty attribute?

– Tom
Dec 14 '18 at 11:41












2 Answers
2






active

oldest

votes


















0














Right-Click at the desired position in your Shared Project (or PCL) in your Solution Explorer (I would recommend adding a folder named "Views" or "CustomViews" and creating the item inside that folder), select "Add new item" and choose "Content View" (without (C#) behind it. The filename should be something like "View1.xaml", you can change that due to your liking, however the important thing is that the xaml extension is there.



This will create a new ContentView with a xaml and xaml.cs file.
Inside the xaml file you can declare your xaml code posted above and write any code necessary into the xaml.cs file.



Now you can add a namespace declaration to the page you want to put your view into:



<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
...
xmlns:customs="clr-namespace:YourNamespace.Views;assembly=YourNamespace"


and declare the element in that Page's or any layout's content:



<customs:CustomViewName ... />


If you want to be able to control the element's behaviour you can add BindableProperties in the codebehind.



For more in-depth information on that, you might want to take a look into this article: https://visualstudiomagazine.com/articles/2017/10/01/add-custom-controls.aspx






share|improve this answer
























  • The problem for me is that it's just a Frame and there are different XAML codes inside the frame. Not just one same set of XAML. Do you know how I can deal with that?

    – Alan2
    Nov 22 '18 at 11:23











  • No, I don't see any good way to do that. You could create multiple classes, each for every variation

    – Markus Michel
    Nov 22 '18 at 11:25



















0














Use a ContentView along with a ControlTemplate to create a Custom Control. This way you can create a new control called NewFrame, write the XAML for your control and then use the <ContentPresenter> tag inside your <ControlTemplate> to assign where you'd like your content to be.



Like so:



.
└── NewFrame
├── NewFrame.cs
└── NewFrame.xaml -> Is a ResourceDictionary


NewFrame.cs:



namespace TestApp.Controls
{
public partial class NewFrame : ContentView
{
}
}


NewFrame.xaml:



<ResourceDictionary 
xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:newFrame="clr-namespace:TestApp.Controls"
x:Class="Namespace.For.A.ResourceDictionary">


<Style TargetType="newFrame:NewFrame">
<Setter Property="ControlTemplate">
<Setter.Value>
<ControlTemplate>
<ContentView BackgroundColor="Transparent">
<Frame CornerRadius="1" HasShadow="false" Margin="10" BackgroundColor="White" BorderColor="Silver" Padding="0" >
<StackLayout Orientation="Vertical" Spacing="0" Padding="0">
<ContentPresenter/>
</StackLayout>
</Frame>
</ContentView>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>

</ResourceDictionary>


ConsumingYourControl.xaml:



 <template:NewFrame>
<template:NewFrame.Content>
<xaml:PtiXaml />
<template:LineTemplate />
<xaml:AtiXaml />
<template:LineTemplate />
<xaml:StiXaml />
</template:NewFrame.Content>
</template:NewFrame>

<template:NewFrame>
<template:NewFrame.Content>
<xaml:ABCXaml />
</template:NewFrame.Content>
</template:NewFrame>

<template:NewFrame>
<template:NewFrame.Content>
<Label Text=""/>
</template:NewFrame.Content>
</template:NewFrame>





share|improve this answer























    Your Answer






    StackExchange.ifUsing("editor", function () {
    StackExchange.using("externalEditor", function () {
    StackExchange.using("snippets", function () {
    StackExchange.snippets.init();
    });
    });
    }, "code-snippets");

    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "1"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53422182%2fhow-can-i-create-a-new-xamarin-element-based-on-a-frame-with-a-stacklayout-insid%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    Right-Click at the desired position in your Shared Project (or PCL) in your Solution Explorer (I would recommend adding a folder named "Views" or "CustomViews" and creating the item inside that folder), select "Add new item" and choose "Content View" (without (C#) behind it. The filename should be something like "View1.xaml", you can change that due to your liking, however the important thing is that the xaml extension is there.



    This will create a new ContentView with a xaml and xaml.cs file.
    Inside the xaml file you can declare your xaml code posted above and write any code necessary into the xaml.cs file.



    Now you can add a namespace declaration to the page you want to put your view into:



    <ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
    ...
    xmlns:customs="clr-namespace:YourNamespace.Views;assembly=YourNamespace"


    and declare the element in that Page's or any layout's content:



    <customs:CustomViewName ... />


    If you want to be able to control the element's behaviour you can add BindableProperties in the codebehind.



    For more in-depth information on that, you might want to take a look into this article: https://visualstudiomagazine.com/articles/2017/10/01/add-custom-controls.aspx






    share|improve this answer
























    • The problem for me is that it's just a Frame and there are different XAML codes inside the frame. Not just one same set of XAML. Do you know how I can deal with that?

      – Alan2
      Nov 22 '18 at 11:23











    • No, I don't see any good way to do that. You could create multiple classes, each for every variation

      – Markus Michel
      Nov 22 '18 at 11:25
















    0














    Right-Click at the desired position in your Shared Project (or PCL) in your Solution Explorer (I would recommend adding a folder named "Views" or "CustomViews" and creating the item inside that folder), select "Add new item" and choose "Content View" (without (C#) behind it. The filename should be something like "View1.xaml", you can change that due to your liking, however the important thing is that the xaml extension is there.



    This will create a new ContentView with a xaml and xaml.cs file.
    Inside the xaml file you can declare your xaml code posted above and write any code necessary into the xaml.cs file.



    Now you can add a namespace declaration to the page you want to put your view into:



    <ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
    ...
    xmlns:customs="clr-namespace:YourNamespace.Views;assembly=YourNamespace"


    and declare the element in that Page's or any layout's content:



    <customs:CustomViewName ... />


    If you want to be able to control the element's behaviour you can add BindableProperties in the codebehind.



    For more in-depth information on that, you might want to take a look into this article: https://visualstudiomagazine.com/articles/2017/10/01/add-custom-controls.aspx






    share|improve this answer
























    • The problem for me is that it's just a Frame and there are different XAML codes inside the frame. Not just one same set of XAML. Do you know how I can deal with that?

      – Alan2
      Nov 22 '18 at 11:23











    • No, I don't see any good way to do that. You could create multiple classes, each for every variation

      – Markus Michel
      Nov 22 '18 at 11:25














    0












    0








    0







    Right-Click at the desired position in your Shared Project (or PCL) in your Solution Explorer (I would recommend adding a folder named "Views" or "CustomViews" and creating the item inside that folder), select "Add new item" and choose "Content View" (without (C#) behind it. The filename should be something like "View1.xaml", you can change that due to your liking, however the important thing is that the xaml extension is there.



    This will create a new ContentView with a xaml and xaml.cs file.
    Inside the xaml file you can declare your xaml code posted above and write any code necessary into the xaml.cs file.



    Now you can add a namespace declaration to the page you want to put your view into:



    <ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
    ...
    xmlns:customs="clr-namespace:YourNamespace.Views;assembly=YourNamespace"


    and declare the element in that Page's or any layout's content:



    <customs:CustomViewName ... />


    If you want to be able to control the element's behaviour you can add BindableProperties in the codebehind.



    For more in-depth information on that, you might want to take a look into this article: https://visualstudiomagazine.com/articles/2017/10/01/add-custom-controls.aspx






    share|improve this answer













    Right-Click at the desired position in your Shared Project (or PCL) in your Solution Explorer (I would recommend adding a folder named "Views" or "CustomViews" and creating the item inside that folder), select "Add new item" and choose "Content View" (without (C#) behind it. The filename should be something like "View1.xaml", you can change that due to your liking, however the important thing is that the xaml extension is there.



    This will create a new ContentView with a xaml and xaml.cs file.
    Inside the xaml file you can declare your xaml code posted above and write any code necessary into the xaml.cs file.



    Now you can add a namespace declaration to the page you want to put your view into:



    <ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
    ...
    xmlns:customs="clr-namespace:YourNamespace.Views;assembly=YourNamespace"


    and declare the element in that Page's or any layout's content:



    <customs:CustomViewName ... />


    If you want to be able to control the element's behaviour you can add BindableProperties in the codebehind.



    For more in-depth information on that, you might want to take a look into this article: https://visualstudiomagazine.com/articles/2017/10/01/add-custom-controls.aspx







    share|improve this answer












    share|improve this answer



    share|improve this answer










    answered Nov 22 '18 at 11:05









    Markus MichelMarkus Michel

    1,447314




    1,447314













    • The problem for me is that it's just a Frame and there are different XAML codes inside the frame. Not just one same set of XAML. Do you know how I can deal with that?

      – Alan2
      Nov 22 '18 at 11:23











    • No, I don't see any good way to do that. You could create multiple classes, each for every variation

      – Markus Michel
      Nov 22 '18 at 11:25



















    • The problem for me is that it's just a Frame and there are different XAML codes inside the frame. Not just one same set of XAML. Do you know how I can deal with that?

      – Alan2
      Nov 22 '18 at 11:23











    • No, I don't see any good way to do that. You could create multiple classes, each for every variation

      – Markus Michel
      Nov 22 '18 at 11:25

















    The problem for me is that it's just a Frame and there are different XAML codes inside the frame. Not just one same set of XAML. Do you know how I can deal with that?

    – Alan2
    Nov 22 '18 at 11:23





    The problem for me is that it's just a Frame and there are different XAML codes inside the frame. Not just one same set of XAML. Do you know how I can deal with that?

    – Alan2
    Nov 22 '18 at 11:23













    No, I don't see any good way to do that. You could create multiple classes, each for every variation

    – Markus Michel
    Nov 22 '18 at 11:25





    No, I don't see any good way to do that. You could create multiple classes, each for every variation

    – Markus Michel
    Nov 22 '18 at 11:25













    0














    Use a ContentView along with a ControlTemplate to create a Custom Control. This way you can create a new control called NewFrame, write the XAML for your control and then use the <ContentPresenter> tag inside your <ControlTemplate> to assign where you'd like your content to be.



    Like so:



    .
    └── NewFrame
    ├── NewFrame.cs
    └── NewFrame.xaml -> Is a ResourceDictionary


    NewFrame.cs:



    namespace TestApp.Controls
    {
    public partial class NewFrame : ContentView
    {
    }
    }


    NewFrame.xaml:



    <ResourceDictionary 
    xmlns="http://xamarin.com/schemas/2014/forms"
    xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
    xmlns:newFrame="clr-namespace:TestApp.Controls"
    x:Class="Namespace.For.A.ResourceDictionary">


    <Style TargetType="newFrame:NewFrame">
    <Setter Property="ControlTemplate">
    <Setter.Value>
    <ControlTemplate>
    <ContentView BackgroundColor="Transparent">
    <Frame CornerRadius="1" HasShadow="false" Margin="10" BackgroundColor="White" BorderColor="Silver" Padding="0" >
    <StackLayout Orientation="Vertical" Spacing="0" Padding="0">
    <ContentPresenter/>
    </StackLayout>
    </Frame>
    </ContentView>
    </ControlTemplate>
    </Setter.Value>
    </Setter>
    </Style>

    </ResourceDictionary>


    ConsumingYourControl.xaml:



     <template:NewFrame>
    <template:NewFrame.Content>
    <xaml:PtiXaml />
    <template:LineTemplate />
    <xaml:AtiXaml />
    <template:LineTemplate />
    <xaml:StiXaml />
    </template:NewFrame.Content>
    </template:NewFrame>

    <template:NewFrame>
    <template:NewFrame.Content>
    <xaml:ABCXaml />
    </template:NewFrame.Content>
    </template:NewFrame>

    <template:NewFrame>
    <template:NewFrame.Content>
    <Label Text=""/>
    </template:NewFrame.Content>
    </template:NewFrame>





    share|improve this answer




























      0














      Use a ContentView along with a ControlTemplate to create a Custom Control. This way you can create a new control called NewFrame, write the XAML for your control and then use the <ContentPresenter> tag inside your <ControlTemplate> to assign where you'd like your content to be.



      Like so:



      .
      └── NewFrame
      ├── NewFrame.cs
      └── NewFrame.xaml -> Is a ResourceDictionary


      NewFrame.cs:



      namespace TestApp.Controls
      {
      public partial class NewFrame : ContentView
      {
      }
      }


      NewFrame.xaml:



      <ResourceDictionary 
      xmlns="http://xamarin.com/schemas/2014/forms"
      xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
      xmlns:newFrame="clr-namespace:TestApp.Controls"
      x:Class="Namespace.For.A.ResourceDictionary">


      <Style TargetType="newFrame:NewFrame">
      <Setter Property="ControlTemplate">
      <Setter.Value>
      <ControlTemplate>
      <ContentView BackgroundColor="Transparent">
      <Frame CornerRadius="1" HasShadow="false" Margin="10" BackgroundColor="White" BorderColor="Silver" Padding="0" >
      <StackLayout Orientation="Vertical" Spacing="0" Padding="0">
      <ContentPresenter/>
      </StackLayout>
      </Frame>
      </ContentView>
      </ControlTemplate>
      </Setter.Value>
      </Setter>
      </Style>

      </ResourceDictionary>


      ConsumingYourControl.xaml:



       <template:NewFrame>
      <template:NewFrame.Content>
      <xaml:PtiXaml />
      <template:LineTemplate />
      <xaml:AtiXaml />
      <template:LineTemplate />
      <xaml:StiXaml />
      </template:NewFrame.Content>
      </template:NewFrame>

      <template:NewFrame>
      <template:NewFrame.Content>
      <xaml:ABCXaml />
      </template:NewFrame.Content>
      </template:NewFrame>

      <template:NewFrame>
      <template:NewFrame.Content>
      <Label Text=""/>
      </template:NewFrame.Content>
      </template:NewFrame>





      share|improve this answer


























        0












        0








        0







        Use a ContentView along with a ControlTemplate to create a Custom Control. This way you can create a new control called NewFrame, write the XAML for your control and then use the <ContentPresenter> tag inside your <ControlTemplate> to assign where you'd like your content to be.



        Like so:



        .
        └── NewFrame
        ├── NewFrame.cs
        └── NewFrame.xaml -> Is a ResourceDictionary


        NewFrame.cs:



        namespace TestApp.Controls
        {
        public partial class NewFrame : ContentView
        {
        }
        }


        NewFrame.xaml:



        <ResourceDictionary 
        xmlns="http://xamarin.com/schemas/2014/forms"
        xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
        xmlns:newFrame="clr-namespace:TestApp.Controls"
        x:Class="Namespace.For.A.ResourceDictionary">


        <Style TargetType="newFrame:NewFrame">
        <Setter Property="ControlTemplate">
        <Setter.Value>
        <ControlTemplate>
        <ContentView BackgroundColor="Transparent">
        <Frame CornerRadius="1" HasShadow="false" Margin="10" BackgroundColor="White" BorderColor="Silver" Padding="0" >
        <StackLayout Orientation="Vertical" Spacing="0" Padding="0">
        <ContentPresenter/>
        </StackLayout>
        </Frame>
        </ContentView>
        </ControlTemplate>
        </Setter.Value>
        </Setter>
        </Style>

        </ResourceDictionary>


        ConsumingYourControl.xaml:



         <template:NewFrame>
        <template:NewFrame.Content>
        <xaml:PtiXaml />
        <template:LineTemplate />
        <xaml:AtiXaml />
        <template:LineTemplate />
        <xaml:StiXaml />
        </template:NewFrame.Content>
        </template:NewFrame>

        <template:NewFrame>
        <template:NewFrame.Content>
        <xaml:ABCXaml />
        </template:NewFrame.Content>
        </template:NewFrame>

        <template:NewFrame>
        <template:NewFrame.Content>
        <Label Text=""/>
        </template:NewFrame.Content>
        </template:NewFrame>





        share|improve this answer













        Use a ContentView along with a ControlTemplate to create a Custom Control. This way you can create a new control called NewFrame, write the XAML for your control and then use the <ContentPresenter> tag inside your <ControlTemplate> to assign where you'd like your content to be.



        Like so:



        .
        └── NewFrame
        ├── NewFrame.cs
        └── NewFrame.xaml -> Is a ResourceDictionary


        NewFrame.cs:



        namespace TestApp.Controls
        {
        public partial class NewFrame : ContentView
        {
        }
        }


        NewFrame.xaml:



        <ResourceDictionary 
        xmlns="http://xamarin.com/schemas/2014/forms"
        xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
        xmlns:newFrame="clr-namespace:TestApp.Controls"
        x:Class="Namespace.For.A.ResourceDictionary">


        <Style TargetType="newFrame:NewFrame">
        <Setter Property="ControlTemplate">
        <Setter.Value>
        <ControlTemplate>
        <ContentView BackgroundColor="Transparent">
        <Frame CornerRadius="1" HasShadow="false" Margin="10" BackgroundColor="White" BorderColor="Silver" Padding="0" >
        <StackLayout Orientation="Vertical" Spacing="0" Padding="0">
        <ContentPresenter/>
        </StackLayout>
        </Frame>
        </ContentView>
        </ControlTemplate>
        </Setter.Value>
        </Setter>
        </Style>

        </ResourceDictionary>


        ConsumingYourControl.xaml:



         <template:NewFrame>
        <template:NewFrame.Content>
        <xaml:PtiXaml />
        <template:LineTemplate />
        <xaml:AtiXaml />
        <template:LineTemplate />
        <xaml:StiXaml />
        </template:NewFrame.Content>
        </template:NewFrame>

        <template:NewFrame>
        <template:NewFrame.Content>
        <xaml:ABCXaml />
        </template:NewFrame.Content>
        </template:NewFrame>

        <template:NewFrame>
        <template:NewFrame.Content>
        <Label Text=""/>
        </template:NewFrame.Content>
        </template:NewFrame>






        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Dec 18 '18 at 11:31









        Juansero29Juansero29

        214




        214






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Stack Overflow!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53422182%2fhow-can-i-create-a-new-xamarin-element-based-on-a-frame-with-a-stacklayout-insid%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            404 Error Contact Form 7 ajax form submitting

            How to know if a Active Directory user can login interactively

            TypeError: fit_transform() missing 1 required positional argument: 'X'