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 7951377
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T02:32:29+00:00 2026-06-04T02:32:29+00:00

I have created a Button with the following trigger: <Button Content=Test> <i:Interaction.Triggers> <i:EventTrigger EventName=Click>

  • 0

I have created a Button with the following trigger:

                    <Button Content="Test>
                      <i:Interaction.Triggers>
                        <i:EventTrigger EventName="Click">
                            <cal:ActionMessage MethodName="SetViewModelToOpen">
                                <cal:Parameter Value="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type telerik:RadButton}},Path=Content}" />
                            </cal:ActionMessage>
                        </i:EventTrigger>
                      </i:Interaction.Triggers>
                    </Button>

Now I have several button like this one and want this trigger to be applied to every button.
How to do this?

  • 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-06-04T02:32:31+00:00Added an answer on June 4, 2026 at 2:32 am

    You need to use styles, in your case:

    <Style x:Key="ButtonWithTriggers" TargetType="Button">
        <Style.Triggers>
            <Trigger Property="IsPressed" Value="true">
                <[Place your actions here]>
            </Trigger>
         </Style.Triggers>
    </Style>
    

    Then your button declaration:

    <Button Content="Test" Style="{StaticResource ButtonWithTriggers}" />
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have created following activity package com.ali.test; import android.app.Activity; import android.content.Intent; import android.os.Bundle; import
I have created two buttons using the following XAML code. <Button x:Name=Button1 Width=100 Content=Button1
I have created one dynamic button in my application and I call the following
I have created a button. So when I click the button it gives me
I've created the following very simple button style: <ControlTemplate x:Key=SimpleButton TargetType={x:Type ButtonBase}> <ContentPresenter x:Name=content
I have the following markup: <Asp:updatepanel id=up runat=server> <contenttemplate> <asp:Button id=btn runat=server text=test />
How can I achieve the following: I have created a content type called journal,
I have created an alert view with two buttons using the following code: UIAlertView
I have created button 2 below: <input id=Button1 type=button value=Stop onclick=alert('hello world');/> <input id=Button2
I have created a button CSS class that uses background images with different positions

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.