Click here to Skip to main content
15,912,082 members
Home / Discussions / WPF
   

WPF

 
AnswerRe: Playing a *.MP3 file in WPF ? Pin
Paul Conrad2-Dec-08 6:59
professionalPaul Conrad2-Dec-08 6:59 
AnswerRe: Playing a *.MP3 file in WPF ? Pin
Pete O'Hanlon2-Dec-08 9:01
mvePete O'Hanlon2-Dec-08 9:01 
GeneralRe: Playing a *.MP3 file in WPF ? Pin
Jammer2-Dec-08 22:55
Jammer2-Dec-08 22:55 
GeneralRe: Playing a *.MP3 file in WPF ? Pin
Mohammad Dayyan3-Dec-08 8:18
Mohammad Dayyan3-Dec-08 8:18 
QuestionSending dll Pin
Dushan1232-Dec-08 1:57
Dushan1232-Dec-08 1:57 
AnswerRe: Sending dll Pin
Pete O'Hanlon2-Dec-08 3:40
mvePete O'Hanlon2-Dec-08 3:40 
GeneralRe: Sending dll Pin
Dushan1232-Dec-08 9:00
Dushan1232-Dec-08 9:00 
GeneralRe: Sending dll Pin
Pete O'Hanlon3-Dec-08 4:13
mvePete O'Hanlon3-Dec-08 4:13 
Off the top of my head, it might look something like this:
public class DllFile
{
  [DataMember]
  public string FileName;
  [DataMember]
  public byte[] File;
}

[ServiceContract]
public interface IDownload
{
  [OperationContract]
  DllFile DownloadFile();
}

public class Download : IDownload
{
  public DllFile DownloadFile()
  {
    DllFile dllFile = new DllFile();
    dllFile.FileName = <<fullyqualified filename.dll>>
    using (FileStream fs = new FileStream(dllFile.FileName, FileMode.Open, FileAccess.Read))
    {
      dllFile.File = new byte[(int)fs.Length];
      fs.Read(dllFile.File, 0, (int)fs.Length);
      return dllFile;
    }
  }
}


"WPF has many lovers. It's a veritable porn star!" - Josh Smith

My blog | My articles | MoXAML PowerToys



GeneralRe: Sending dll Pin
Dushan1233-Dec-08 16:26
Dushan1233-Dec-08 16:26 
GeneralRe: Sending dll Pin
Dushan1233-Dec-08 17:55
Dushan1233-Dec-08 17:55 
GeneralRe: Sending dll Pin
Pete O'Hanlon3-Dec-08 22:19
mvePete O'Hanlon3-Dec-08 22:19 
QuestionTimeSpan? Pin
Mohammad Dayyan2-Dec-08 1:35
Mohammad Dayyan2-Dec-08 1:35 
AnswerRe: TimeSpan? Pin
Pete O'Hanlon2-Dec-08 3:36
mvePete O'Hanlon2-Dec-08 3:36 
QuestionSilverlight and DeepZoom intergrate Pin
Vimalsoft(Pty) Ltd1-Dec-08 20:59
professionalVimalsoft(Pty) Ltd1-Dec-08 20:59 
QuestionWPF: how to send RoutedEvent to be triggered inside a DataTemplate ? Pin
christoph brändle1-Dec-08 12:55
christoph brändle1-Dec-08 12:55 
AnswerRe: WPF: how to send RoutedEvent to be triggered inside a DataTemplate ? Pin
Sacha Barber1-Dec-08 22:00
Sacha Barber1-Dec-08 22:00 
GeneralRe: WPF: how to send RoutedEvent to be triggered inside a DataTemplate ? Pin
christoph brändle2-Dec-08 0:14
christoph brändle2-Dec-08 0:14 
GeneralRe: WPF: how to send RoutedEvent to be triggered inside a DataTemplate ? Pin
Sacha Barber2-Dec-08 1:32
Sacha Barber2-Dec-08 1:32 
GeneralRe: WPF: how to send RoutedEvent to be triggered inside a DataTemplate ? Pin
christoph brändle2-Dec-08 14:35
christoph brändle2-Dec-08 14:35 
GeneralRe: WPF: how to send RoutedEvent to be triggered inside a DataTemplate ? Pin
Sacha Barber2-Dec-08 21:50
Sacha Barber2-Dec-08 21:50 
GeneralRe: WPF: how to send RoutedEvent to be triggered inside a DataTemplate ? Pin
christoph brändle3-Dec-08 10:45
christoph brändle3-Dec-08 10:45 
GeneralRe: WPF: how to send RoutedEvent to be triggered inside a DataTemplate ? [modified] Pin
jp chow9-Jan-09 8:28
jp chow9-Jan-09 8:28 
QuestionIs there a memoryleak in Brushes? Pin
ezazazel1-Dec-08 10:15
ezazazel1-Dec-08 10:15 
AnswerRe: Is there a memoryleak in Brushes? Pin
Pete O'Hanlon1-Dec-08 10:28
mvePete O'Hanlon1-Dec-08 10:28 
GeneralRe: Is there a memoryleak in Brushes? Pin
ezazazel1-Dec-08 10:32
ezazazel1-Dec-08 10: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.