Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 77050

Xaml Data Binding

$
0
0

Hi. There is way to call a view method from xaml. For example:

        public class MyLabel : Label
        {

            public MyMethod(String pParameter)
            {
                ...
            }
        }   



<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             ....


    <local:MyLabel 
        HERE call my method, from this instance -> MyMethod("addMe")
     />

</ContentPage>

I was looking in https://developer.xamarin.com/guides/cross-platform/xamarin-forms/user-interface/xaml-basics/data_binding_basics/, but nothing yet.


Viewing all articles
Browse latest Browse all 77050

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>