Click here to Skip to main content
15,891,316 members
Home / Discussions / WPF
   

WPF

 
AnswerRe: Fixing an Image/Drawing so it doesn't auto-size Pin
chaiguy133718-Sep-08 18:17
chaiguy133718-Sep-08 18:17 
QuestionHow to draw an vector on top of an Image? Pin
Suehana Saidin18-Sep-08 14:45
Suehana Saidin18-Sep-08 14:45 
AnswerRe: How to draw an vector on top of an Image? Pin
chaiguy133718-Sep-08 16:36
chaiguy133718-Sep-08 16:36 
GeneralRe: How to draw an vector on top of an Image? Pin
Suehana Saidin18-Sep-08 18:55
Suehana Saidin18-Sep-08 18:55 
GeneralRe: How to draw an vector on top of an Image? Pin
chaiguy133718-Sep-08 19:05
chaiguy133718-Sep-08 19:05 
QuestionNewbie Needs Help with using Blend in my VS 2005 applications Pin
GDMFSOB18-Sep-08 3:45
GDMFSOB18-Sep-08 3:45 
AnswerRe: Newbie Needs Help with using Blend in my VS 2005 applications Pin
Michael Sync18-Oct-08 21:57
Michael Sync18-Oct-08 21:57 
QuestionHow can I access to an element of App with Timer in WPF ? Pin
Mohammad Dayyan18-Sep-08 3:00
Mohammad Dayyan18-Sep-08 3:00 
Hi everybody.
this is my code :
System.Timers.Timer aTimer = new 
                   System.Timers.Timer(1000);
public Window1()
{
    InitializeComponent();

    aTimer.Elapsed += new 
         System.Timers.ElapsedEventHandler
                        (aTimer_Elapsed);            
    aTimer.Enabled = true;
}

void aTimer_Elapsed(object sender, 
          System.Timers.ElapsedEventArgs e)
{
    secondHand.Angle = DateTime.Now.Second * 6;
}

and this is my XAML code :
XML
<Rectangle Margin="150,0,149,150" 
Name="rectangleSecond" Stroke="White" 
Height="120" VerticalAlignment="Bottom"
><Rectangle.RenderTransform>
<RotateTransform x:Name="secondHand" 
CenterX="0" CenterY="120" 
Angle="0" />
</Rectangle.RenderTransform>
</Rectangle>

But there is an exception in it !
The calling thread cannot access this object because a different 
thread owns it.

How can I solve it ?

Thanks in advance.
AnswerRe: How can I access to an element of App with Timer in WPF ? Pin
Insincere Dave18-Sep-08 6:59
Insincere Dave18-Sep-08 6:59 
GeneralRe: How can I access to an element of App with Timer in WPF ? Pin
Mohammad Dayyan18-Sep-08 9:09
Mohammad Dayyan18-Sep-08 9:09 
QuestionHow to show multiple attribute values in tree view from XML file in WPF? Pin
sachinss198617-Sep-08 23:29
sachinss198617-Sep-08 23:29 
AnswerRe: How to show multiple attribute values in tree view from XML file in WPF? Pin
Pete O'Hanlon18-Sep-08 3:50
mvePete O'Hanlon18-Sep-08 3:50 
QuestionError:Assembly '' was not found in Custom Control(WPF) Pin
bruze17-Sep-08 3:54
bruze17-Sep-08 3:54 
AnswerRe: Error:Assembly '' was not found in Custom Control(WPF) Pin
Pete O'Hanlon17-Sep-08 4:36
mvePete O'Hanlon17-Sep-08 4:36 
QuestionIs animated masking possible in WPF? Pin
azwethinkheiz17-Sep-08 0:48
azwethinkheiz17-Sep-08 0:48 
AnswerRe: Is animated masking possible in WPF? Pin
Insincere Dave18-Sep-08 7:05
Insincere Dave18-Sep-08 7:05 
GeneralRe: Is animated masking possible in WPF? Pin
azwethinkheiz18-Sep-08 22:30
azwethinkheiz18-Sep-08 22:30 
QuestionMatrixAnimationUsingPath Pin
rednaw15-Sep-08 11:10
rednaw15-Sep-08 11:10 
QuestionBlend 2, 2.5 etc Pin
stevio15-Sep-08 3:50
stevio15-Sep-08 3:50 
AnswerRe: Blend 2, 2.5 etc Pin
Jared Bienz [MSFT]17-Sep-08 6:13
Jared Bienz [MSFT]17-Sep-08 6:13 
GeneralRe: Blend 2, 2.5 etc Pin
stevio17-Sep-08 7:09
stevio17-Sep-08 7:09 
GeneralRe: Blend 2, 2.5 etc Pin
Jared Bienz [MSFT]17-Sep-08 8:07
Jared Bienz [MSFT]17-Sep-08 8:07 
GeneralRe: Blend 2, 2.5 etc Pin
stevio17-Sep-08 8:17
stevio17-Sep-08 8:17 
QuestionWPF: Access from a class to the Main-Form Pin
der_tankwart14-Sep-08 10:39
der_tankwart14-Sep-08 10:39 
AnswerRe: WPF: Access from a class to the Main-Form Pin
Pete O'Hanlon14-Sep-08 10:50
mvePete O'Hanlon14-Sep-08 10:50 

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.