How to find an item inside a Grid inside a StackLayout inside a Template

JassimRahmaJassimRahma USMember ✭✭✭✭

Hi,

I have below ImageEditorMyPhoto

I'd like to know how can I reach it using FindByName?

It's placed inside a Grid inside a StackLayout inside a Template

<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
    xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
    xmlns:SyncfusionBorder="clr-namespace:Syncfusion.XForms.Border;assembly=Syncfusion.Core.XForms"
    xmlns:SyncfusionPopup="clr-namespace:Syncfusion.XForms.PopupLayout;assembly=Syncfusion.SfPopupLayout.XForms"
    xmlns:SyncfusionImageEditor="clr-namespace:Syncfusion.SfImageEditor.XForms;assembly=Syncfusion.SfImageEditor.XForms"
    x:Class="Zeera.MyProfile">
    <ContentPage.Resources>
        <ResourceDictionary>
            <DataTemplate x:Key="MyPhotoTemplate">
                <ContentView BackgroundColor="White" x:Name="MyPhotoContentView">
                    <StackLayout x:Name="StackLayoutMyProfile">
                        <Grid x:Name="GridMyProfile" HorizontalOptions="FillAndExpand" VerticalOptions="FillAndExpand" Padding="15">
                            <SyncfusionImageEditor:SfImageEditor x:Name="ImageEditorMyPhoto" Source="{Binding Image}">
                                <SyncfusionImageEditor:SfImageEditor.ToolbarSettings>
                                    <SyncfusionImageEditor:ToolbarSettings IsVisible="false" />
                                </SyncfusionImageEditor:SfImageEditor.ToolbarSettings>
                            </SyncfusionImageEditor:SfImageEditor>
                        </Grid>
                    </StackLayout>
                </ContentView>
            </DataTemplate>
        </ResourceDictionary>
    </ContentPage.Resources>
.......................
.......................
.......................
.......................

Thanks,
Jassim

Answers

Sign In or Register to comment.