Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 382417
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T15:10:50+00:00 2026-05-12T15:10:50+00:00

I have a user permissions screen and I would like to have a number

  • 0

I have a user permissions screen and I would like to have a number of images that represent each permission for the user i.e. a tick for enabled and a cross for disabled.

The permissions will be shown in a grid with View, Add, Edit and Delete along the top and the category along the left-hand side.

           View | Add | Edit | Delete
            y   |  n  |   y  |   y

I want the user to be able to click the image and toggle between a tick and cross. I have the trigger to set the correct image type based on the property value, but I’m not sure how to (or if I can) bind the image to the object property.

    <Image Grid.Column="1" Grid.Row="1" Width="24" Height="24">
        <Image.Style>
            <Style>
                <Style.Triggers>
                    <DataTrigger Binding="{Binding Path=PermissionViewModel.IsEmployeeView}" Value="True">
                        <Setter Property="Image.Source" Value="Check.png"/>
                    </DataTrigger>
                    <DataTrigger Binding="{Binding Path=PermissionViewModel.IsEmployeeView}" Value="False">
                        <Setter Property="Image.Source" Value="Delete.png"/>
                    </DataTrigger>
                </Style.Triggers>
            </Style>
        </Image.Style>
    </Image>

I can see that the image has no binding to the object property so, how do set the property when they click the image?

Or is there another way to do this? I would like to do as much in XAML as I can.

Thanks in advance

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T15:10:51+00:00Added an answer on May 12, 2026 at 3:10 pm

    It looks like you want to implement a checkbox that looks different from the standard checkbox. In this case you could restyle the checkbox to have the look you’re after. Then you could just bind the restyled checkbox to the underlying boolean value.

    See also: this Stackoverflow question

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We have an ASP.NET application that manages it's own User, Roles and Permission database
In a ModelForm, i have to test user permissions to let them filling the
I have a few questions about Core Location. 1) Should the user refuse permission
I have set permission to allow anonymous user to create page. but when the
I have user generated podcasts, each with their own RSS feed. Is there a
I have implemented Facebook authentication on my website. I have asked for user permissions
I want to establish and ENFORCE user permissions on my website. I have two
I want to implement a panel to set user permissions. So i have a
Suppose I have a website that wants to access a Facebook's user account information.
I have a list of user permissions. I'm thinking of pulling all the data

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.