|
It'll be the same behaviour as with a Windows Forms app. It sounds like you are performing the copy on the primary thread, which blocks the UI until it completes the operation. Try moving the copy onto a background thread instead - this should help.
|
|
|
|
|
Pete O'Hanlon wrote: It'll be the same behaviour as with a Windows Forms app.
I just tried the same block of code in .Net 2.0, and that's correct; it copied the file to my hard drive as well.
Pete O'Hanlon wrote: It sounds like you are performing the copy on the primary thread, which blocks the UI until it completes the operation.
The only thing that confuses me is that I don't have any code to perform the copy in my project; when the user presses the Open button on the OpenFileDialog, it is copied over automatically without any extra code.
Thanks,
Mitch
|
|
|
|
|
Hi all
I am developing an Voice Chat Application in WPF.....
I used DirectSound For Capturing the Audio.
Using WaveFormat I am capturing the audio bytes and sending it over the client.....
My client is receiving the Audio Byte...But it is not playing.......
Can anyone tell me what will be the reason.......
I have written the code for audio capturing in the seperate class, let us say voicechat.cs
in that device.SetCooperativeLevel is creating problem...
so i have inherited System.windows.forms.Form and used....
the way i used to set cooperative level is correct or not....
if it is not please give me a solution to fix both problems i am facing
Thanks in Advance
Vayanan
|
|
|
|
|
Most application of this ilk actually use ASIO not DirectSound, Skype for instance. Its a much better solution than DirectSound.
Also you may want to look into XAudio2 as its replacing DirectSound.
Not really a lot we can say without seeing your code. When it comes to audio there are SO SO many things that can go wrong, without seeing code its more or less impossible to help.
What audio format are you using? Does the client machine have the neccessary codecs to decode the audio bytes. If I remember correctly during my brief look at DirectSound using window handles was slightlf different than windows forms ...
Jammer
Going where everyone here has gone before!
My Blog
|
|
|
|
|
public class RecordUtil
{
public IntPtr _IntPtr;
public RecordUtil(IntPtr iptr)
{
_IntPtr=iptr;
}
}
in main window use this--
{
IntPtr source = new WindowInteropHelper(this).Handle;
recorder = new RecordUtil(source);
}
|
|
|
|
|
Hi All,
There is a requirement in our VS 2008 WPF application to take the screen shot of a scrollable XAML window and save it in a pdf. The window includes numerous controls such as Textboxes, images, comboboxes, etc.
Currently we are able to capture whatever is visible on the screen. The parts of the scrollable window outside the visible screen is not captured.
Can anyone suggest a way to do this?
Thanks in Advance...
|
|
|
|
|
Can't you use the scrollable window data source as the data source for the pdf?
Cheers,
Jammer
Going where everyone here has gone before!
My Blog
|
|
|
|
|
If every control is nicely tucked into a panel or canvas, the layout control can be embedded into a FlowDocument control.
Look into the following components (I tried to have proper heirarchy of control embedding).
1)FlowDocumentReader.Document
2)FixedDocument
3)FixedPage
4)PageContent
5)Inside of the page content you would add a child WPF control (your controls you want screen captured).
Regards,
Thomas Stockwell
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
Visit my homepage Oracle Studios
Discounted or Free Software for Students:
DreamSpark - downloads.channel8.msdn.com
MSDN Academic Alliance - www.msdnaa.com
|
|
|
|
|
|
Hi Michael. I want create my blog on http://www.bartelme.at/. Please help me.
|
|
|
|
|
2489128 wrote: Hi Michael. I want create my blog on http://www.bartelme.at/. Please help me.
Hi, I'm sorry. I'm not the owner of that site so I can't help.
|
|
|
|
|
Hi,
Am new to WPF environment and i need to load Directx file in XAML.How should i load it?Do i necessarily need to convert Directx file to XAML format?or can i directly load through some other way?Any help is greatly appreciated.Thanks in Advance.
Regards,
Priya
|
|
|
|
|
What's a DirectX file???
Jammer
Going where everyone here has gone before!
My Blog
|
|
|
|
|
If you are talking about importing a .x file, then you can do the following
<MeshPrimitive3D>
<MeshPrimitive3D.Mesh>
<Mesh3D X3DFileSource="myfile.x" />
</MeshPrimitive3D.Mesh>
</MeshPrimitive3D>
|
|
|
|
|
suggest you translate it to XAML
|
|
|
|
|
Hi All,
I'm having a bit of a problem with some app styling, specifically loading an image using a DynamicResource I have this in my application window xaml:
<ImageBrush x:Name="imgLogoSmall" TileMode="None" ImageSource="{DynamicResource Logo.Default.Small}"/>
Then in my skin.dll I have:
<ImageSource x:Key="Logo.Default.Small" Source="Utils.WPFThemes.Default;component/BinaryResources/Logo/Logo_gray_orange_150x26.png"/>
ImageSouce doesn't have anything related to a uri property to set so this aboe code doesn't work at the moment ... hence this email ... I'm a bit lost on this at the moment and can't figure it out.
EDIT: Ahhh a BitMapImage instead of ImageSource might be the trick!
Any Ideas?
Jammer
Going where everyone here has gone before!
My Blog
modified on Monday, June 9, 2008 11:12 AM
|
|
|
|
|
Hi.
I am a beginner in Silverlight. I am getting this error when i test my SilverLight Application.
System.componentModal.Win32Exception System can't load the file specified.
at System.Diagnstic.process.StartwithshellExecuteEx(ProcessStartInfo info)
etc.
I have used media element.
|
|
|
|
|
Can you show us the code?
|
|
|
|
|
Here is Page.Xaml
mediaelement source="1.mp3" width="354" height="265" canvas.left="10" canvas.top="174" >
|
|
|
|
|
Hello Bilal,
Your XAML tag is unreadable. Please check "Ignore HTML tags in this message (good for code snippets)" when you are posting the code.
|
|
|
|
|
Hi i am a beginner in WPF.
I am getting following error when i run the application
A"ppname.exe encounterd a problem and need to be closed" i have set the size of media element but still getting the error.
There iz only one control on the WPF form.
|
|
|
|
|
|
Thank You Jam for posting the Solution.
When i opened the solution in Expression Blend It again gives same error.
Either it is a windows media player error or i shold open it with VS220.
thanks.
|
|
|
|
|
I don't get any errors here opening my solution in either VS2008 / VCSharp Express 2008 / Expression Blend ... can you play the file normally through WMP?
Jammer
Going where everyone here has gone before!
My Blog
|
|
|
|
|
Hi All'
I am Using A flow Document Control in My Application.So Whenever I add Text Its Scroll Going to up and I cannot see last item I added.I HAve to scroll and See the last item added.Any Solution
Thanks in Advance.
|
|
|
|