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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T11:04:34+00:00 2026-06-16T11:04:34+00:00

Now I custom a control like slider, and I want to custom a ValueChanged

  • 0

Now I custom a control like slider, and I want to custom a ValueChanged event handle like the slider’s ValueChanged event handle.

the event as follow:

public delegate void ValueChangedEventHandle(object sender, RangeBaseValueChangedEventArgs e);
public event ValueChangedEventHandle ValueChanged;

When the value changed, I call the event ValueChanged, like this

    private void Changed(double value)
    {
      `enter code here`if (ValueChanged != null)
      {
           rangeBaseValueChangedEventArgs.NewValue = newValue;
           rangeBaseValueChangedEventArgs.OldValue = oldValue;
           ValueChanged(this, RangeBaseValueChangedEventArgs);
      }
}

But the class RangeBaseValueChangedEventArgs is a sealed class and have no constructor, so I cann’t create a new instance.

Anyone know how to do it, I just want to define an event argument like the slider’s RangeBaseValueChangedEventArgs , so I can use it like the slider.

Thank you in advance for.

-Alen

  • 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-16T11:04:35+00:00Added an answer on June 16, 2026 at 11:04 am

    Just create your own EventArgs class inheriting from RoutedEventArgs and make it have the same properties.

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

Sidebar

Related Questions

My friend done this below coding for custom control <a href=javascript:__doPostBack('id','msg');>click</a> now i want
i want to control my tab pages with custom buttons...now i want to hide
I have a custom control's library. Now there's a control which looks like a
I have one image button in the custom control like below. public string SearchTableName
Let's say in a custom control I defined some custom event myEvent. Now when
Which one is better from performance view user control or custom control? Right now
I have a custom asp.net server control to display images.What I need now is
I have made a custom control in my application. It is like a combo
In Xaml page I reference my custom control this way: <MyNamespace:CustControl x:Name=Cust1 /> Now
I have custom control with following: <TextBox Grid.Column=3 Text={TemplateBinding SampleValue} /> public static readonly

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.