|
Normally, we used to update the version of application manually. Why do you want to update the version of Silverlight from code?
|
|
|
|
|
hello ng,
how can i open/show a wpf-contextmenu with the left mouseclick???
byby andy
|
|
|
|
|
hello,
it is so simple:
ContextMenu.isOpend = True
is the solution
byby andy
|
|
|
|
|
I've come across some really unexpected behavior using the OpenFileDialog, WPF, and a PocketPC (physical) device.
I'm trying to let users select a file on their PocketPC using an OpenFileDialog, and when the user selects Open, WPF copies the file into the Temporary Internet Files directory, and then returns that as the path. I'm really confused as to why this happens, but here's the code to reproduce it.
Dim ofd As New Microsoft.Win32.OpenFileDialog
ofd.CheckFileExists = False
ofd.CheckPathExists = True
ofd.AddExtension = False
ofd.Filter = "Folders|*.*"
ofd.Multiselect = False
ofd.InitialDirectory = "C:\"
ofd.ShowDialog()
Console.WriteLine(ofd.FileName)
When I select a file from the My Documents (eg, "\My Documents\Meeting Notes.psw") directory on my PocketPC, this is the output that is written in the console "C:\Users\*****\AppData\Local\Microsoft\Windows\Temporary Internet Files\Content.IE5\82P6MGLK\Meeting_Notes[1].psw" (Note, the astericks are used to hide my user-name). In addition to this, if you try it with a large file, the UI just freezes until the file finishes copying. Windows does not say that the program is "Not Responding", just you can't interact with the UI at all.
Does anyone know why this happens? It certainly is interesting behaviour.
Thanks,
Mitch
modified on Thursday, June 12, 2008 1:11 AM
|
|
|
|
|
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.
|
|
|
|