How to add Parameters in ControlTemplate xamarin forms












0















I have a template for HeaderItem with the imageSource in it, so all tabs have the same image. How can I bring an additional parameter to use different images?



Template



        <ControlTemplate x:Key="HeaderControlTemplate">
<Grid HorizontalOptions="FillAndExpand">

<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<Image Source="{converters:ImageResource Media.logo-pp.png}" Grid.Row="0" WidthRequest="25" />
<Label Grid.Row="1" Text="{TemplateBinding Text}" HorizontalTextAlignment="Center" StyleClass="tabViewHeaderTextColor"/>
<BoxView Grid.Row="2" IsVisible="{TemplateBinding IsSelected}"
StyleClass="tabViewHeaderBgColor"
HorizontalOptions="Fill"
HeightRequest="2" />
</Grid>
</ControlTemplate>


Tabs



 <telerikPrimitives:RadTabView>
<telerikPrimitives:RadTabView.Items>
<telerikPrimitives:TabViewItem>
<telerikPrimitives:TabViewItem.Header>
<telerikPrimitives:TabViewHeaderItem Text="1" ControlTemplate="{StaticResource HeaderControlTemplate}"/>
</telerikPrimitives:TabViewItem.Header>
<telerikPrimitives:TabViewItem.Content>
//SomeContent
</telerikPrimitives:TabViewItem.Content>
</telerikPrimitives:TabViewItem>

<telerikPrimitives:TabViewItem>
<telerikPrimitives:TabViewItem.Header>
<telerikPrimitives:TabViewHeaderItem Text="2" ControlTemplate="{StaticResource HeaderControlTemplate}"/>
</telerikPrimitives:TabViewItem.Header>
<telerikPrimitives:TabViewItem.Content>
//SomeContent
</telerikPrimitives:TabViewItem.Content>
</telerikPrimitives:TabViewItem>

<telerikPrimitives:TabViewItem>
<telerikPrimitives:TabViewItem.Header>
<telerikPrimitives:TabViewHeaderItem Text="3" ControlTemplate="{StaticResource HeaderControlTemplate}"/>
</telerikPrimitives:TabViewItem.Header>
<telerikPrimitives:TabViewItem.Content>
//SomeContent
</telerikPrimitives:TabViewItem.Content>
</telerikPrimitives:TabViewItem>
<telerikPrimitives:RadTabView>




TabViewHeaderItem also doesn't include the Image Source. So I don't know how to solve this. Sure I can do 3 templates, but it's not what i want.










share|improve this question



























    0















    I have a template for HeaderItem with the imageSource in it, so all tabs have the same image. How can I bring an additional parameter to use different images?



    Template



            <ControlTemplate x:Key="HeaderControlTemplate">
    <Grid HorizontalOptions="FillAndExpand">

    <Grid.RowDefinitions>
    <RowDefinition Height="Auto"/>
    <RowDefinition Height="Auto"/>
    <RowDefinition Height="Auto"/>
    </Grid.RowDefinitions>
    <Image Source="{converters:ImageResource Media.logo-pp.png}" Grid.Row="0" WidthRequest="25" />
    <Label Grid.Row="1" Text="{TemplateBinding Text}" HorizontalTextAlignment="Center" StyleClass="tabViewHeaderTextColor"/>
    <BoxView Grid.Row="2" IsVisible="{TemplateBinding IsSelected}"
    StyleClass="tabViewHeaderBgColor"
    HorizontalOptions="Fill"
    HeightRequest="2" />
    </Grid>
    </ControlTemplate>


    Tabs



     <telerikPrimitives:RadTabView>
    <telerikPrimitives:RadTabView.Items>
    <telerikPrimitives:TabViewItem>
    <telerikPrimitives:TabViewItem.Header>
    <telerikPrimitives:TabViewHeaderItem Text="1" ControlTemplate="{StaticResource HeaderControlTemplate}"/>
    </telerikPrimitives:TabViewItem.Header>
    <telerikPrimitives:TabViewItem.Content>
    //SomeContent
    </telerikPrimitives:TabViewItem.Content>
    </telerikPrimitives:TabViewItem>

    <telerikPrimitives:TabViewItem>
    <telerikPrimitives:TabViewItem.Header>
    <telerikPrimitives:TabViewHeaderItem Text="2" ControlTemplate="{StaticResource HeaderControlTemplate}"/>
    </telerikPrimitives:TabViewItem.Header>
    <telerikPrimitives:TabViewItem.Content>
    //SomeContent
    </telerikPrimitives:TabViewItem.Content>
    </telerikPrimitives:TabViewItem>

    <telerikPrimitives:TabViewItem>
    <telerikPrimitives:TabViewItem.Header>
    <telerikPrimitives:TabViewHeaderItem Text="3" ControlTemplate="{StaticResource HeaderControlTemplate}"/>
    </telerikPrimitives:TabViewItem.Header>
    <telerikPrimitives:TabViewItem.Content>
    //SomeContent
    </telerikPrimitives:TabViewItem.Content>
    </telerikPrimitives:TabViewItem>
    <telerikPrimitives:RadTabView>




    TabViewHeaderItem also doesn't include the Image Source. So I don't know how to solve this. Sure I can do 3 templates, but it's not what i want.










    share|improve this question

























      0












      0








      0








      I have a template for HeaderItem with the imageSource in it, so all tabs have the same image. How can I bring an additional parameter to use different images?



      Template



              <ControlTemplate x:Key="HeaderControlTemplate">
      <Grid HorizontalOptions="FillAndExpand">

      <Grid.RowDefinitions>
      <RowDefinition Height="Auto"/>
      <RowDefinition Height="Auto"/>
      <RowDefinition Height="Auto"/>
      </Grid.RowDefinitions>
      <Image Source="{converters:ImageResource Media.logo-pp.png}" Grid.Row="0" WidthRequest="25" />
      <Label Grid.Row="1" Text="{TemplateBinding Text}" HorizontalTextAlignment="Center" StyleClass="tabViewHeaderTextColor"/>
      <BoxView Grid.Row="2" IsVisible="{TemplateBinding IsSelected}"
      StyleClass="tabViewHeaderBgColor"
      HorizontalOptions="Fill"
      HeightRequest="2" />
      </Grid>
      </ControlTemplate>


      Tabs



       <telerikPrimitives:RadTabView>
      <telerikPrimitives:RadTabView.Items>
      <telerikPrimitives:TabViewItem>
      <telerikPrimitives:TabViewItem.Header>
      <telerikPrimitives:TabViewHeaderItem Text="1" ControlTemplate="{StaticResource HeaderControlTemplate}"/>
      </telerikPrimitives:TabViewItem.Header>
      <telerikPrimitives:TabViewItem.Content>
      //SomeContent
      </telerikPrimitives:TabViewItem.Content>
      </telerikPrimitives:TabViewItem>

      <telerikPrimitives:TabViewItem>
      <telerikPrimitives:TabViewItem.Header>
      <telerikPrimitives:TabViewHeaderItem Text="2" ControlTemplate="{StaticResource HeaderControlTemplate}"/>
      </telerikPrimitives:TabViewItem.Header>
      <telerikPrimitives:TabViewItem.Content>
      //SomeContent
      </telerikPrimitives:TabViewItem.Content>
      </telerikPrimitives:TabViewItem>

      <telerikPrimitives:TabViewItem>
      <telerikPrimitives:TabViewItem.Header>
      <telerikPrimitives:TabViewHeaderItem Text="3" ControlTemplate="{StaticResource HeaderControlTemplate}"/>
      </telerikPrimitives:TabViewItem.Header>
      <telerikPrimitives:TabViewItem.Content>
      //SomeContent
      </telerikPrimitives:TabViewItem.Content>
      </telerikPrimitives:TabViewItem>
      <telerikPrimitives:RadTabView>




      TabViewHeaderItem also doesn't include the Image Source. So I don't know how to solve this. Sure I can do 3 templates, but it's not what i want.










      share|improve this question














      I have a template for HeaderItem with the imageSource in it, so all tabs have the same image. How can I bring an additional parameter to use different images?



      Template



              <ControlTemplate x:Key="HeaderControlTemplate">
      <Grid HorizontalOptions="FillAndExpand">

      <Grid.RowDefinitions>
      <RowDefinition Height="Auto"/>
      <RowDefinition Height="Auto"/>
      <RowDefinition Height="Auto"/>
      </Grid.RowDefinitions>
      <Image Source="{converters:ImageResource Media.logo-pp.png}" Grid.Row="0" WidthRequest="25" />
      <Label Grid.Row="1" Text="{TemplateBinding Text}" HorizontalTextAlignment="Center" StyleClass="tabViewHeaderTextColor"/>
      <BoxView Grid.Row="2" IsVisible="{TemplateBinding IsSelected}"
      StyleClass="tabViewHeaderBgColor"
      HorizontalOptions="Fill"
      HeightRequest="2" />
      </Grid>
      </ControlTemplate>


      Tabs



       <telerikPrimitives:RadTabView>
      <telerikPrimitives:RadTabView.Items>
      <telerikPrimitives:TabViewItem>
      <telerikPrimitives:TabViewItem.Header>
      <telerikPrimitives:TabViewHeaderItem Text="1" ControlTemplate="{StaticResource HeaderControlTemplate}"/>
      </telerikPrimitives:TabViewItem.Header>
      <telerikPrimitives:TabViewItem.Content>
      //SomeContent
      </telerikPrimitives:TabViewItem.Content>
      </telerikPrimitives:TabViewItem>

      <telerikPrimitives:TabViewItem>
      <telerikPrimitives:TabViewItem.Header>
      <telerikPrimitives:TabViewHeaderItem Text="2" ControlTemplate="{StaticResource HeaderControlTemplate}"/>
      </telerikPrimitives:TabViewItem.Header>
      <telerikPrimitives:TabViewItem.Content>
      //SomeContent
      </telerikPrimitives:TabViewItem.Content>
      </telerikPrimitives:TabViewItem>

      <telerikPrimitives:TabViewItem>
      <telerikPrimitives:TabViewItem.Header>
      <telerikPrimitives:TabViewHeaderItem Text="3" ControlTemplate="{StaticResource HeaderControlTemplate}"/>
      </telerikPrimitives:TabViewItem.Header>
      <telerikPrimitives:TabViewItem.Content>
      //SomeContent
      </telerikPrimitives:TabViewItem.Content>
      </telerikPrimitives:TabViewItem>
      <telerikPrimitives:RadTabView>




      TabViewHeaderItem also doesn't include the Image Source. So I don't know how to solve this. Sure I can do 3 templates, but it's not what i want.







      c# xaml xamarin xamarin.forms telerik






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 21 '18 at 14:36









      ViacheslavViacheslav

      31




      31
























          1 Answer
          1






          active

          oldest

          votes


















          0














          I assume that Media.logo-pp.png is one of the 3 images you want to show. You could use the following trick to avoid duplicating templates:



          First of all create a converter that will convert the tab name into the target image.



          public class TabToImageConverter : IValueConverter
          {
          public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
          {
          string imageName;
          switch (value.ToString())
          {
          case "1":
          imageName= "logo-pp.png"
          break;
          case "2":
          imageName= "logo-pp2.png"
          break;
          case "3":
          imageName= "logo-pp3.png"
          break;
          default:
          imageName= "logo-pp.png"
          break;
          }
          return ImageSource.FromResource($"Media.{imageName}", this.GetType().GetTypeInfo().Assembly);
          }

          public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
          {
          throw new NotImplementedException();
          }
          }


          Then change your template definition as follow:




          1. add a new namespace for your converter class:


          xmlns:converters="clr-namespace:Metadia.Converters"




          1. add a static resource and reference the above converter


          <ResourceDictionary>
          <converters:TabToImageConverter x:Key="TabToImage" />




          1. add a name to the label so it can be referenced



          2. add binding to image source using the label's Text property and the converter






                <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            </Grid.RowDefinitions>
            <Image Source="{TemplateBinding Source={x:Reference tabTitle}, Path=Text, Converter={StaticResource {TabToImage}}" Grid.Row="0" WidthRequest="25" />
            <Label x:Name="tabTitle" Grid.Row="1" Text="{TemplateBinding Text}" HorizontalTextAlignment="Center" StyleClass="tabViewHeaderTextColor"/>
            <BoxView Grid.Row="2" IsVisible="{TemplateBinding IsSelected}"
            StyleClass="tabViewHeaderBgColor"
            HorizontalOptions="Fill"
            HeightRequest="2" />
            </Grid>





          Et voilà!



          Note that if you rename the images the same as the tabs text, the converter could simply return (if not null):



          return ImageSource.FromResource($"Media.{value.ToString()}", this.GetType().GetTypeInfo().Assembly);


          Hope this helps & happy coding!






          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%2f53414420%2fhow-to-add-parameters-in-controltemplate-xamarin-forms%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            I assume that Media.logo-pp.png is one of the 3 images you want to show. You could use the following trick to avoid duplicating templates:



            First of all create a converter that will convert the tab name into the target image.



            public class TabToImageConverter : IValueConverter
            {
            public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
            {
            string imageName;
            switch (value.ToString())
            {
            case "1":
            imageName= "logo-pp.png"
            break;
            case "2":
            imageName= "logo-pp2.png"
            break;
            case "3":
            imageName= "logo-pp3.png"
            break;
            default:
            imageName= "logo-pp.png"
            break;
            }
            return ImageSource.FromResource($"Media.{imageName}", this.GetType().GetTypeInfo().Assembly);
            }

            public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
            {
            throw new NotImplementedException();
            }
            }


            Then change your template definition as follow:




            1. add a new namespace for your converter class:


            xmlns:converters="clr-namespace:Metadia.Converters"




            1. add a static resource and reference the above converter


            <ResourceDictionary>
            <converters:TabToImageConverter x:Key="TabToImage" />




            1. add a name to the label so it can be referenced



            2. add binding to image source using the label's Text property and the converter






                  <Grid.RowDefinitions>
              <RowDefinition Height="Auto"/>
              <RowDefinition Height="Auto"/>
              <RowDefinition Height="Auto"/>
              </Grid.RowDefinitions>
              <Image Source="{TemplateBinding Source={x:Reference tabTitle}, Path=Text, Converter={StaticResource {TabToImage}}" Grid.Row="0" WidthRequest="25" />
              <Label x:Name="tabTitle" Grid.Row="1" Text="{TemplateBinding Text}" HorizontalTextAlignment="Center" StyleClass="tabViewHeaderTextColor"/>
              <BoxView Grid.Row="2" IsVisible="{TemplateBinding IsSelected}"
              StyleClass="tabViewHeaderBgColor"
              HorizontalOptions="Fill"
              HeightRequest="2" />
              </Grid>





            Et voilà!



            Note that if you rename the images the same as the tabs text, the converter could simply return (if not null):



            return ImageSource.FromResource($"Media.{value.ToString()}", this.GetType().GetTypeInfo().Assembly);


            Hope this helps & happy coding!






            share|improve this answer




























              0














              I assume that Media.logo-pp.png is one of the 3 images you want to show. You could use the following trick to avoid duplicating templates:



              First of all create a converter that will convert the tab name into the target image.



              public class TabToImageConverter : IValueConverter
              {
              public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
              {
              string imageName;
              switch (value.ToString())
              {
              case "1":
              imageName= "logo-pp.png"
              break;
              case "2":
              imageName= "logo-pp2.png"
              break;
              case "3":
              imageName= "logo-pp3.png"
              break;
              default:
              imageName= "logo-pp.png"
              break;
              }
              return ImageSource.FromResource($"Media.{imageName}", this.GetType().GetTypeInfo().Assembly);
              }

              public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
              {
              throw new NotImplementedException();
              }
              }


              Then change your template definition as follow:




              1. add a new namespace for your converter class:


              xmlns:converters="clr-namespace:Metadia.Converters"




              1. add a static resource and reference the above converter


              <ResourceDictionary>
              <converters:TabToImageConverter x:Key="TabToImage" />




              1. add a name to the label so it can be referenced



              2. add binding to image source using the label's Text property and the converter






                    <Grid.RowDefinitions>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                </Grid.RowDefinitions>
                <Image Source="{TemplateBinding Source={x:Reference tabTitle}, Path=Text, Converter={StaticResource {TabToImage}}" Grid.Row="0" WidthRequest="25" />
                <Label x:Name="tabTitle" Grid.Row="1" Text="{TemplateBinding Text}" HorizontalTextAlignment="Center" StyleClass="tabViewHeaderTextColor"/>
                <BoxView Grid.Row="2" IsVisible="{TemplateBinding IsSelected}"
                StyleClass="tabViewHeaderBgColor"
                HorizontalOptions="Fill"
                HeightRequest="2" />
                </Grid>





              Et voilà!



              Note that if you rename the images the same as the tabs text, the converter could simply return (if not null):



              return ImageSource.FromResource($"Media.{value.ToString()}", this.GetType().GetTypeInfo().Assembly);


              Hope this helps & happy coding!






              share|improve this answer


























                0












                0








                0







                I assume that Media.logo-pp.png is one of the 3 images you want to show. You could use the following trick to avoid duplicating templates:



                First of all create a converter that will convert the tab name into the target image.



                public class TabToImageConverter : IValueConverter
                {
                public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
                {
                string imageName;
                switch (value.ToString())
                {
                case "1":
                imageName= "logo-pp.png"
                break;
                case "2":
                imageName= "logo-pp2.png"
                break;
                case "3":
                imageName= "logo-pp3.png"
                break;
                default:
                imageName= "logo-pp.png"
                break;
                }
                return ImageSource.FromResource($"Media.{imageName}", this.GetType().GetTypeInfo().Assembly);
                }

                public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
                {
                throw new NotImplementedException();
                }
                }


                Then change your template definition as follow:




                1. add a new namespace for your converter class:


                xmlns:converters="clr-namespace:Metadia.Converters"




                1. add a static resource and reference the above converter


                <ResourceDictionary>
                <converters:TabToImageConverter x:Key="TabToImage" />




                1. add a name to the label so it can be referenced



                2. add binding to image source using the label's Text property and the converter






                      <Grid.RowDefinitions>
                  <RowDefinition Height="Auto"/>
                  <RowDefinition Height="Auto"/>
                  <RowDefinition Height="Auto"/>
                  </Grid.RowDefinitions>
                  <Image Source="{TemplateBinding Source={x:Reference tabTitle}, Path=Text, Converter={StaticResource {TabToImage}}" Grid.Row="0" WidthRequest="25" />
                  <Label x:Name="tabTitle" Grid.Row="1" Text="{TemplateBinding Text}" HorizontalTextAlignment="Center" StyleClass="tabViewHeaderTextColor"/>
                  <BoxView Grid.Row="2" IsVisible="{TemplateBinding IsSelected}"
                  StyleClass="tabViewHeaderBgColor"
                  HorizontalOptions="Fill"
                  HeightRequest="2" />
                  </Grid>





                Et voilà!



                Note that if you rename the images the same as the tabs text, the converter could simply return (if not null):



                return ImageSource.FromResource($"Media.{value.ToString()}", this.GetType().GetTypeInfo().Assembly);


                Hope this helps & happy coding!






                share|improve this answer













                I assume that Media.logo-pp.png is one of the 3 images you want to show. You could use the following trick to avoid duplicating templates:



                First of all create a converter that will convert the tab name into the target image.



                public class TabToImageConverter : IValueConverter
                {
                public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
                {
                string imageName;
                switch (value.ToString())
                {
                case "1":
                imageName= "logo-pp.png"
                break;
                case "2":
                imageName= "logo-pp2.png"
                break;
                case "3":
                imageName= "logo-pp3.png"
                break;
                default:
                imageName= "logo-pp.png"
                break;
                }
                return ImageSource.FromResource($"Media.{imageName}", this.GetType().GetTypeInfo().Assembly);
                }

                public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
                {
                throw new NotImplementedException();
                }
                }


                Then change your template definition as follow:




                1. add a new namespace for your converter class:


                xmlns:converters="clr-namespace:Metadia.Converters"




                1. add a static resource and reference the above converter


                <ResourceDictionary>
                <converters:TabToImageConverter x:Key="TabToImage" />




                1. add a name to the label so it can be referenced



                2. add binding to image source using the label's Text property and the converter






                      <Grid.RowDefinitions>
                  <RowDefinition Height="Auto"/>
                  <RowDefinition Height="Auto"/>
                  <RowDefinition Height="Auto"/>
                  </Grid.RowDefinitions>
                  <Image Source="{TemplateBinding Source={x:Reference tabTitle}, Path=Text, Converter={StaticResource {TabToImage}}" Grid.Row="0" WidthRequest="25" />
                  <Label x:Name="tabTitle" Grid.Row="1" Text="{TemplateBinding Text}" HorizontalTextAlignment="Center" StyleClass="tabViewHeaderTextColor"/>
                  <BoxView Grid.Row="2" IsVisible="{TemplateBinding IsSelected}"
                  StyleClass="tabViewHeaderBgColor"
                  HorizontalOptions="Fill"
                  HeightRequest="2" />
                  </Grid>





                Et voilà!



                Note that if you rename the images the same as the tabs text, the converter could simply return (if not null):



                return ImageSource.FromResource($"Media.{value.ToString()}", this.GetType().GetTypeInfo().Assembly);


                Hope this helps & happy coding!







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Nov 21 '18 at 23:54









                TaiT'sTaiT's

                1,157816




                1,157816
































                    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%2f53414420%2fhow-to-add-parameters-in-controltemplate-xamarin-forms%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

                    android studio warns about leanback feature tag usage required on manifest while using Unity exported app?

                    SQL update select statement

                    'app-layout' is not a known element: how to share Component with different Modules