Click here to Skip to main content
15,882,114 members
Home / Discussions / WPF
   

WPF

 
GeneralRe: WPF Webbrowser bot releasing PDF file -- Help Needed Pin
pal2ashish12-Sep-11 19:16
pal2ashish12-Sep-11 19:16 
QuestionVector editor Pin
transoft11-Aug-11 5:05
transoft11-Aug-11 5:05 
QuestionOnApplyTemplate & designer mode Pin
SledgeHammer0110-Aug-11 6:50
SledgeHammer0110-Aug-11 6:50 
AnswerRe: OnApplyTemplate & designer mode Pin
SledgeHammer0110-Aug-11 6:55
SledgeHammer0110-Aug-11 6:55 
AnswerRe: OnApplyTemplate & designer mode Pin
Pete O'Hanlon10-Aug-11 7:06
mvePete O'Hanlon10-Aug-11 7:06 
GeneralRe: OnApplyTemplate & designer mode Pin
SledgeHammer0110-Aug-11 7:17
SledgeHammer0110-Aug-11 7:17 
QuestionChanging domain host for silverlight and WCF Pin
Anele Ngqandu10-Aug-11 4:28
Anele Ngqandu10-Aug-11 4:28 
QuestionDispatcher.BeginInvoke getting wrong properties Pin
_Madmatt10-Aug-11 1:05
_Madmatt10-Aug-11 1:05 
Hello all,

I'm building an app for WP7 (but because my problem seems related to Silverlight/WPF things, I'm asking here). I have a slider wich values are updated every x milliseconds. This leads to unwanted behaviour when the user is dragging the slider to another position. Therefor, I created a new class that inherits from the Slider class, named BusySlider (see below). The problem is now, that my SliderBusy property always seems to be false, even when I'm actually dragging the slider... Any suggestions?

The BusySlider.cs
C#
public class BusySlider : Slider
{
    public bool SliderBusy
    {
        get;
        private set;
    }

    protected override void OnMouseLeftButtonDown(System.Windows.Input.MouseButtonEventArgs e)
    {
        this.SliderBusy = true;

        base.OnMouseLeftButtonDown(e);
    }

    protected override void OnMouseLeftButtonUp(System.Windows.Input.MouseButtonEventArgs e)
    {
        base.OnMouseLeftButtonUp(e);

        this.SliderBusy = false;
    }
}


And here is a frangment of my Dispatcher.BeginInvoke where the slider gets updated;
C#
Dispatcher.BeginInvoke(new Action(delegate()
                { 
                    ...
  
                    //Slider position
                    if (!slidePosition.SliderBusy)
                    {
                        slidePosition.Maximum = (double)state.CurrentTrack.Length;
                        slidePosition.Value = (double)state.CurrentTrack.Position;
                    }
                }));


Thanks in advance,
MadMatt
QuestionWPF event manager Pin
columbos149279-Aug-11 21:00
columbos149279-Aug-11 21:00 
AnswerRe: WPF event manager Pin
Simon Bang Terkildsen9-Aug-11 22:31
Simon Bang Terkildsen9-Aug-11 22:31 
AnswerRe: WPF event manager Pin
Pete O'Hanlon9-Aug-11 22:40
mvePete O'Hanlon9-Aug-11 22:40 
QuestionDirectory.GetAccessControl Fails in XBAP web client Pin
pal2ashish9-Aug-11 20:21
pal2ashish9-Aug-11 20:21 
QuestionSo, is binding to private / internal properties allowed or not? Pin
SledgeHammer019-Aug-11 6:31
SledgeHammer019-Aug-11 6:31 
AnswerRe: So, is binding to private / internal properties allowed or not? Pin
Mycroft Holmes9-Aug-11 13:09
professionalMycroft Holmes9-Aug-11 13:09 
GeneralRe: So, is binding to private / internal properties allowed or not? Pin
SledgeHammer019-Aug-11 14:03
SledgeHammer019-Aug-11 14:03 
JokeRe: So, is binding to private / internal properties allowed or not? Pin
Mycroft Holmes9-Aug-11 14:19
professionalMycroft Holmes9-Aug-11 14:19 
QuestionRich text Box Content into Outlook mail Pin
Narender Singh Thakur8-Aug-11 4:27
Narender Singh Thakur8-Aug-11 4:27 
AnswerRe: Rich text Box Content into Outlook mail Pin
Pete O'Hanlon8-Aug-11 4:45
mvePete O'Hanlon8-Aug-11 4:45 
GeneralRe: Rich text Box Content into Outlook mail Pin
Narender Singh Thakur8-Aug-11 5:13
Narender Singh Thakur8-Aug-11 5:13 
GeneralRe: Rich text Box Content into Outlook mail Pin
Pete O'Hanlon8-Aug-11 5:22
mvePete O'Hanlon8-Aug-11 5:22 
GeneralRe: Rich text Box Content into Outlook mail Pin
Narender Singh Thakur8-Aug-11 5:24
Narender Singh Thakur8-Aug-11 5:24 
QuestionUpdate TreeView's ItemsSource during runtime Pin
Mc_Topaz8-Aug-11 4:05
Mc_Topaz8-Aug-11 4:05 
AnswerRe: Update TreeView's ItemsSource during runtime Pin
Pete O'Hanlon8-Aug-11 4:26
mvePete O'Hanlon8-Aug-11 4:26 
GeneralRe: Update TreeView's ItemsSource during runtime Pin
Mc_Topaz8-Aug-11 5:02
Mc_Topaz8-Aug-11 5:02 
GeneralRe: Update TreeView's ItemsSource during runtime [modified] Pin
SledgeHammer018-Aug-11 6:17
SledgeHammer018-Aug-11 6:17 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.