Click here to Skip to main content
15,942,703 members
Home / Discussions / WPF
   

WPF

 
QuestionUsing WPF C# dll in vc++ Pin
Anu_Bala3-Dec-09 18:30
Anu_Bala3-Dec-09 18:30 
AnswerRe: Using WPF C# dll in vc++ Pin
dan!sh 3-Dec-09 19:21
professional dan!sh 3-Dec-09 19:21 
QuestionAccess to a public object on a mainpage from a navigation page Pin
javi.ys2-Dec-09 12:24
javi.ys2-Dec-09 12:24 
AnswerRe: Access to a public object on a mainpage from a navigation page Pin
Mark Salsbery2-Dec-09 17:53
Mark Salsbery2-Dec-09 17:53 
GeneralRe: Access to a public object on a mainpage from a navigation page Pin
javi.ys2-Dec-09 21:37
javi.ys2-Dec-09 21:37 
GeneralRe: Access to a public object on a mainpage from a navigation page Pin
Mark Salsbery3-Dec-09 6:38
Mark Salsbery3-Dec-09 6:38 
QuestionMessage Removed Pin
2-Dec-09 3:56
professionalN_tro_P2-Dec-09 3:56 
QuestionHttpWebRequest in Silverlight Application Pin
Thi**012-Dec-09 3:20
Thi**012-Dec-09 3:20 
Hi, this is my first post in this forum. Codeproject is a good source for nearly everything i need. Big Grin | :-D

I use Visual Studio 2008 SP1 and have Silverlight 3.
I made: new project -> C# -> Silverlight Application

I have to read a xml-file and i wanted to use the XmlReader-class:

XmlReader xmlReader = XmlReader.Create(@"C:\Dokumente und Einstellungen\THI\Desktop\stage2.xml");

An Exception occured: file is not in the xap-package try to use fetching the file with HttpWebRequest. (something like this)

I tryed to make this example work:
http://msdn.microsoft.com/en-us/library/system.net.httpwebrequest(VS.95).aspx#Mtps_DropDownFilterText[^]

I dont understand how to write the RequestState class and i dont understand what is: allDone.WaitOne() or allDone.Set()

Is here anybody who can explain this?

I tried to write RequestState class:
public class RequestState : IAsyncResult
    {

        private HttpWebRequest myRequest = null;

        public HttpWebRequest Request
        {
            get { return myRequest; }
            set { myRequest = value; }
        }


        private HttpWebResponse myResponse = null;

        public HttpWebResponse Response
        {
            get { return myResponse; }
            set { myResponse = value; }
        }


        private Stream myStream = null;

        public Stream StreamResponse
        {
            get { return myStream; }
            set { myStream = value; }
        }

        private byte[] ReadBuffer = new byte[1024];

        public byte[] ReBuffer
        {
            get { return ReadBuffer; }
            set { ReadBuffer = value; }
        }

        private StringBuilder myStringBuilder = new StringBuilder();

        public StringBuilder RequestData
        {
            get { return myStringBuilder; }
            set { myStringBuilder = value; }
        
        }
    }


Greetings
Thi
AnswerRe: HttpWebRequest in Silverlight Application Pin
Mark Salsbery2-Dec-09 8:51
Mark Salsbery2-Dec-09 8:51 
AnswerRe: HttpWebRequest in Silverlight Application Pin
Abhinav S2-Dec-09 23:44
Abhinav S2-Dec-09 23:44 
GeneralRe: HttpWebRequest in Silverlight Application Pin
Thi**013-Dec-09 1:29
Thi**013-Dec-09 1:29 
GeneralRE: Re: HttpWebRequest in Silverlight Application [Solved] Pin
Thi**013-Dec-09 6:53
Thi**013-Dec-09 6:53 
QuestionExecutes a delegate on the thread that owns the control's underlying window handle Pin
cppwxwidgetsss2-Dec-09 2:41
cppwxwidgetsss2-Dec-09 2:41 
AnswerRe: Executes a delegate on the thread that owns the control's underlying window handle Pin
Ian Shlasko2-Dec-09 5:06
Ian Shlasko2-Dec-09 5:06 
GeneralRe: Executes a delegate on the thread that owns the control's underlying window handle Pin
cppwxwidgetsss2-Dec-09 18:23
cppwxwidgetsss2-Dec-09 18:23 
QuestionMenuItem like the Sort menuitem in Firefox 3's Organize Bookmarks ... ? Pin
Mohammad Dayyan1-Dec-09 23:01
Mohammad Dayyan1-Dec-09 23:01 
AnswerRe: MenuItem like the Sort menuitem in Firefox 3's Organize Bookmarks ... ? Pin
Ashfield2-Dec-09 1:32
Ashfield2-Dec-09 1:32 
QuestionShould I use Silverlight Pin
Mycroft Holmes1-Dec-09 19:26
professionalMycroft Holmes1-Dec-09 19:26 
AnswerRe: Should I use Silverlight Pin
Mark Salsbery2-Dec-09 8:28
Mark Salsbery2-Dec-09 8:28 
GeneralRe: Should I use Silverlight Pin
Mycroft Holmes2-Dec-09 12:05
professionalMycroft Holmes2-Dec-09 12:05 
QuestionWPF Data Grid Auto Height problem Pin
wasimsharp30-Nov-09 21:44
wasimsharp30-Nov-09 21:44 
AnswerRe: WPF Data Grid Auto Height problem Pin
Super Lloyd2-Dec-09 14:43
Super Lloyd2-Dec-09 14:43 
Question[Message Deleted] Pin
noufal200930-Nov-09 21:05
noufal200930-Nov-09 21:05 
AnswerRe: textbox validation in silverlight Pin
Abhinav S30-Nov-09 21:57
Abhinav S30-Nov-09 21:57 
GeneralRe: textbox validation in silverlight Pin
noufal200930-Nov-09 23:08
noufal200930-Nov-09 23:08 

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.