Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FastCell ContextAction #23

Open
schmidan opened this issue Oct 8, 2015 · 0 comments
Open

FastCell ContextAction #23

schmidan opened this issue Oct 8, 2015 · 0 comments
Labels

Comments

@schmidan
Copy link

schmidan commented Oct 8, 2015

We are trying to switch to your Fastcell implementation. So far we are pretty impressed.
I did stumble over Context Actions so far. Taken from a working ListView implementation, they don't show up under iOS (Android not tested yet)

I hope it might be a "simple" change in the renderer. Could you point me in the right direction ?

<?xml version="1.0" encoding="UTF-8"?>
<controls:FastCell
    xmlns="http://xamarin.com/schemas/2014/forms"
    xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
    xmlns:controls="clr-namespace:TwinTechs.Controls;assembly=TwinTechsForms"
    xmlns:i18n="clr-namespace:I18n.Extension;assembly=I18n"
    x:Class="Controls.PasswordSafeCell">

    <ViewCell.ContextActions>
        <MenuItem   Command="{Binding Source={x:Reference passwordsListView}, Path=BindingContext.CopyPasswordCommand}}" 
                    CommandParameter="{Binding .}" Text="{i18n:TranslateExtension Text=LABEL_COPY}" />
        <MenuItem   Command="{Binding Source={x:Reference passwordsListView}, Path=BindingContext.EditPasswordCommand}}" 
                    CommandParameter="{Binding .}" Text="{i18n:TranslateExtension Text=LABEL_EDIT}" />
        <MenuItem   Command="{Binding Source={x:Reference passwordsListView}, Path=BindingContext.DeletePasswordCommand}}" 
                    CommandParameter="{Binding .}" Text="{i18n:TranslateExtension Text=LABEL_DELETE}" IsDestructive="true" />
    </ViewCell.ContextActions>
<!--    <ContentView>-->
        <StackLayout HorizontalOptions="StartAndExpand" Orientation="Horizontal">
            <StackLayout Padding="15,10,15,10" VerticalOptions="StartAndExpand" Orientation="Vertical" Spacing="0">
                <Label x:Name="LabelTitle" Text="TTT" YAlign="Center" FontSize="Medium" FontAttributes="Bold" />
                <Label x:Name="LabelUrl" Text="UUU" YAlign="Center" FontSize="Small" />
            </StackLayout>
        </StackLayout>
<!--    </ContentView>-->

</controls:FastCell>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants