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

WPF

 
GeneralRe: Merge DataGrid Header in WPF Pin
SoverWhud21-Sep-10 23:01
SoverWhud21-Sep-10 23:01 
QuestionHow do I draw a Line with no parent in WPF Pin
jeeve17-Sep-10 4:19
jeeve17-Sep-10 4:19 
AnswerRe: How do I draw a Line with no parent in WPF Pin
Mycroft Holmes18-Sep-10 17:10
professionalMycroft Holmes18-Sep-10 17:10 
QuestionXamlParseException showing a custom control Pin
RugbyLeague17-Sep-10 2:32
RugbyLeague17-Sep-10 2:32 
AnswerRe: XamlParseException showing a custom control Pin
Ian Shlasko17-Sep-10 3:35
Ian Shlasko17-Sep-10 3:35 
GeneralRe: XamlParseException showing a custom control Pin
RugbyLeague17-Sep-10 3:37
RugbyLeague17-Sep-10 3:37 
GeneralRe: XamlParseException showing a custom control Pin
Ian Shlasko17-Sep-10 3:37
Ian Shlasko17-Sep-10 3:37 
QuestionAsync threading with Silver-light Pin
1 316-Sep-10 18:34
1 316-Sep-10 18:34 
Hi
I am trying to implement Async threading in SilverLight but getting an error
I tried to simplify the code for your better understanding,
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.Threading;

namespace SilverlightApplication1
{
    public partial class MainPage : UserControl
    {
        delegate void GetData();
        public MainPage()
        {
            GetData gd = new GetData(CallData);
            gd.BeginInvoke(afterCallData, null);
            InitializeComponent();
        }
        void CallData()
        {
            // do something
        }
        void afterCallData( IAsyncResult result)
        {
            // do some thing after completion
        }
    }
}




I am getting this error :-
{System.NotSupportedException: Specified method is not supported.
   at SilverlightApplication1.MainPage.GetData.BeginInvoke(AsyncCallback callback, Object object)
   at SilverlightApplication1.MainPage..ctor()
   at SilverlightApplication1.App.Application_Startup(Object sender, StartupEventArgs e)
   at MS.Internal.CoreInvokeHandler.InvokeEventHandler(Int32 typeIndex, Delegate handlerDelegate, Object sender, Object args)
   at MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, Int32 actualArgsTypeIndex, String eventName)}

The error does not have any inner exceptions....

Thanks Smile | :)

EDIT --------------------------------
Error is at line gd.BeginInvoke(afterCallData, null);
and it throws even if I do gd.BeginInvoke(null, null);
AnswerRe: Async threading with Silver-light [modified] Pin
#realJSOP16-Sep-10 23:43
mve#realJSOP16-Sep-10 23:43 
GeneralRe: Async threading with Silver-light Pin
1 317-Sep-10 2:04
1 317-Sep-10 2:04 
GeneralRe: Async threading with Silver-light Pin
1 317-Sep-10 2:10
1 317-Sep-10 2:10 
GeneralRe: Async threading with Silver-light Pin
#realJSOP17-Sep-10 2:42
mve#realJSOP17-Sep-10 2:42 
QuestionMoving control should stay within the bounds of the form? [modified] Pin
Jibrohni16-Sep-10 4:13
Jibrohni16-Sep-10 4:13 
QuestionHow do I tell why events aren't firing Pin
RugbyLeague16-Sep-10 2:49
RugbyLeague16-Sep-10 2:49 
AnswerRe: How do I tell why events aren't firing Pin
RugbyLeague16-Sep-10 5:42
RugbyLeague16-Sep-10 5:42 
GeneralRe: How do I tell why events aren't firing Pin
Pete O'Hanlon16-Sep-10 6:44
mvePete O'Hanlon16-Sep-10 6:44 
GeneralRe: How do I tell why events aren't firing Pin
RugbyLeague16-Sep-10 10:10
RugbyLeague16-Sep-10 10:10 
GeneralRe: How do I tell why events aren't firing Pin
Pete O'Hanlon16-Sep-10 10:13
mvePete O'Hanlon16-Sep-10 10:13 
QuestionRibbon Control - Workspace areas Pin
Sevententh14-Sep-10 23:16
Sevententh14-Sep-10 23:16 
QuestionRe: Ribbon Control - Workspace areas Pin
Sevententh15-Sep-10 0:25
Sevententh15-Sep-10 0:25 
QuestionWire up an event from a helper class Pin
Mycroft Holmes14-Sep-10 16:43
professionalMycroft Holmes14-Sep-10 16:43 
GeneralRe: Wire up an event from a helper class Pin
Mycroft Holmes15-Sep-10 12:08
professionalMycroft Holmes15-Sep-10 12:08 
QuestionEvents between user controls Pin
David_ml_G14-Sep-10 9:35
David_ml_G14-Sep-10 9:35 
AnswerRe: Events between user controls Pin
AspDotNetDev14-Sep-10 10:18
protectorAspDotNetDev14-Sep-10 10:18 
QuestionRe VS2003 error Pin
Ajay Kale New13-Sep-10 17:32
Ajay Kale New13-Sep-10 17:32 

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.