Click here to Skip to main content
15,886,652 members
Home / Discussions / WPF
   

WPF

 
Questionform loads on build Pin
bryce3-Jun-14 15:17
bryce3-Jun-14 15:17 
AnswerRe: form loads on build Pin
Pete O'Hanlon4-Jun-14 5:51
mvePete O'Hanlon4-Jun-14 5:51 
GeneralRe: form loads on build Pin
Kevin Marois9-Jun-14 8:39
professionalKevin Marois9-Jun-14 8:39 
QuestionWPF ListBox - Select ListItem From DataTemplate Pin
Kevin Marois2-Jun-14 13:02
professionalKevin Marois2-Jun-14 13:02 
QuestionDetection of physical keyboard on Windows 7 in a desktop WPF application Pin
Jenny D30-May-14 12:04
Jenny D30-May-14 12:04 
AnswerRe: Detection of physical keyboard on Windows 7 in a desktop WPF application Pin
Bernhard Hiller2-Jun-14 0:20
Bernhard Hiller2-Jun-14 0:20 
GeneralRe: Detection of physical keyboard on Windows 7 in a desktop WPF application Pin
Jenny D4-Jun-14 11:49
Jenny D4-Jun-14 11:49 
QuestionMediaElement not releasing the file on its Close() method in WPF Pin
Praveen Raghuvanshi28-May-14 17:59
professionalPraveen Raghuvanshi28-May-14 17:59 
Hello,

I need to play multiple instances of a same media file on a system and delete the file whenever last instance is deleted/closed.
There is no UI involved in it and media is played/stopped on some triggers.
I have been able to play the file using MediaElement and I am able to listen to same song in parallel and stop them individually.

The issue occured while deletion of the media file.
MediaElement doesn't release the filestream on MediaElement.Close() and the file is not deleted. It gets deleted only after application is closed.
I feel it to be a timing issue between MediaElement.Close() and File.Delete() as it happens intermittently.
I wanted to delete the file in order to create memory by deleting unused file(s).
It can be reporduced by creating atleast 2 MediaElement whose Source(Uri) refer to same media file.
After playing both the MediaElement, we close the media and delete the file(s). Sometimes it deletes the file, sometime doesn't.

Appreciate any thoughts on this issue of file being locked by the MediaElement and unable to delete instantly.

Thanks in advance!
Praveen Raghuvanshi
Software Developer

AnswerRe: MediaElement not releasing the file on its Close() method in WPF Pin
Gerry Schmitz29-May-14 10:40
mveGerry Schmitz29-May-14 10:40 
GeneralRe: MediaElement not releasing the file on its Close() method in WPF Pin
Praveen Raghuvanshi3-Jun-14 23:55
professionalPraveen Raghuvanshi3-Jun-14 23:55 
QuestionCombobox - Highlights first letter typed after gained focus Pin
Clint Dow27-May-14 7:49
Clint Dow27-May-14 7:49 
QuestionDisplay Alternative images based on AlternationCount=2 in listbox in wpf application ..its not Displaying Pin
Member 785476927-May-14 0:46
Member 785476927-May-14 0:46 
QuestionMake a 3D casino spin wheel in Silverlight. Pin
Vishal Kumar Singh26-May-14 23:17
Vishal Kumar Singh26-May-14 23:17 
AnswerRe: Make a 3D casino spin wheel in Silverlight. Pin
amigoface27-May-14 2:16
amigoface27-May-14 2:16 
Questionhow to drag and drop with image preview in wpf using c# Pin
kalsa23-May-14 21:20
kalsa23-May-14 21:20 
QuestionBest Practice for using WPF Resources Pin
hari111r19-May-14 19:14
hari111r19-May-14 19:14 
AnswerRe: Best Practice for using WPF Resources Pin
Mycroft Holmes19-May-14 21:22
professionalMycroft Holmes19-May-14 21:22 
GeneralRe: Best Practice for using WPF Resources Pin
hari111r19-May-14 23:52
hari111r19-May-14 23:52 
GeneralRe: Best Practice for using WPF Resources Pin
Mycroft Holmes20-May-14 13:02
professionalMycroft Holmes20-May-14 13:02 
QuestionTwo questions about the TreeView control Pin
Mc_Topaz16-May-14 1:45
Mc_Topaz16-May-14 1:45 
AnswerRe: Two questions about the TreeView control Pin
SledgeHammer0116-May-14 6:45
SledgeHammer0116-May-14 6:45 
QuestionRe: Two questions about the TreeView control Pin
Mc_Topaz16-May-14 7:40
Mc_Topaz16-May-14 7:40 
AnswerRe: Two questions about the TreeView control Pin
SledgeHammer0116-May-14 8:16
SledgeHammer0116-May-14 8:16 
GeneralRe: Two questions about the TreeView control Pin
Mc_Topaz16-May-14 9:08
Mc_Topaz16-May-14 9:08 
QuestionOCR using Microsoft Office Document Imaging 12.0 Type Library in WPF application Pin
Member 785476914-May-14 20:20
Member 785476914-May-14 20:20 

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.