|
Hi,
Can we use DirectX in silevrlight as in WPF?
If it is possible, can anybody help me by giving simple sample
Thanks in advance
Soni
|
|
|
|
|
Member 4694627 wrote: Can we use DirectX in silevrlight as in WPF?
You can't. Silverlight has been designed to be cross platform, and DirectX is platform specific.
|
|
|
|
|
|
Hi,
Im using framework3.5 WPF using C#,i have designed with three main menus namely client,product and order this menu is designed in mainform and im having client.xaml,product.xaml and order.xaml. in main form im having stackpanel.when im clicking the client menu the client.xaml form it should be open within the mainform stackpanel and product,order correspondigly..how can i achieve this??
Rgrds
kanna
|
|
|
|
|
If I understand you correctly, you have 3 "windows" in your application, 1 of which is a container. The container should then open 1 of the other windows in the stackpanel. If this is the case, the best way to do this is to make the other 2 windows UserControl s instead. These can then be hosted in your stackpanel, 1 with its Visibilty set to Visible and 1 set to Collapsed - this means you'll only see 1 item in the stackpanel at a time. Then, use a trigger to change the Visibility of the items based on the menu click.
|
|
|
|
|
Hi,
During uploading Progress indication is while reading the file ( with STreamWithProgress )
not while writing into the file. So the progress bar shows uploading is finished. But the file is still getting created. Please anybody help me understand this.
thanks
Rajani
|
|
|
|
|
Uploading to what? You need to provide far more information before we can help. Is this a WPF issue?
|
|
|
|
|
Sorry for not providing enough info.
I have WCF web service to upload files. Windows application calls upload file method on the web service. I have used the sample given in the below link
http://www.codeproject.com/KB/WCF/WCF_FileTransfer_Progress.aspx
I have seen that while reading the file the progress events are sent .
Hence after progress bar value reaches max, writing to the output file starts. Please clarify.
Thanks
Rajani
|
|
|
|
|
Don't you think you should ask this question on that article? I don't have time to download the sample, and debug it to find out what's going wrong with the progress bar - but I would say that the progress bar is probably tied to the upload operation rather than to the upload and write operation.
|
|
|
|
|
Its a mistake. Sorry. Anyway thanks for the info.
Thanks
|
|
|
|
|
No worries, and any other questions - feel free to ask.
|
|
|
|
|
Hi.
Does WPF create own images real time ?
I mean when we draw an image with xaml in wpf and we run it, wpf creates its image Real Time.
Thanks in advance
|
|
|
|
|
I'm sorry Mohammad, but I'm not sure what you are trying to get at here. Could you rephrase your question a bit and I'll do my best to answer? What type of image are you talking about - a gif, or a XAML vector image? What do you mean by real time? Do you mean at runtime?
|
|
|
|
|
Thank you very much Pete. I'm sorry, I couldn't say my purpose correctly.
Pete O'Hanlon wrote: What type of image are you talking about - a gif, or a XAML vector image?
XAML vector image
Pete O'Hanlon wrote: What do you mean by real time? Do you mean at runtime?
Yes, at run time.
|
|
|
|
|
Well, XAML images will be displayed at runtime, and will also be displayed in the designer. You can try the sample I posted image here[^] to see it's effect.
|
|
|
|
|
Hi.
How can we show a gif animation image in WPF ?
Thanks in advance.
|
|
|
|
|
You can use this[^] control.
|
|
|
|
|
Hey Pete .
I saw it, but I don't know how can we use it .
There is no sample in it.
|
|
|
|
|
It's simple enough. Add a reference to it in your project, and put a reference in your window declaration (or page or usercontrol),
xmlns:image="clr-namespace:ReissSoftware;assembly=ImageAnim" then add it in like this:
<image:ImageAnim Source="Image/ajax-loader.gif" />
modified on Wednesday, September 24, 2008 10:35 AM
|
|
|
|
|
Thank you Pete.
I have another question please !
How can I create something like above image with C# :
Is this correct :
System.Windows.Controls.Image myImage = new Image();
|
|
|
|
|
Are you asking how to do the above operation in code rather than XAML? If so, you would do
ReissSoftware.ImageAdmin img = new ReissSoftware.ImageAdmin{Source = "Image/ajax-loader.gif"}; Then you would add it into the relevant container on the page.
|
|
|
|
|
|
No problem. Always glad to help.
|
|
|
|
|
Hey guys
I wrote a WPF control that is hosted on a WinForms app via an ElementHost...
The control works perfectly in the WinForms environment, but now i need to access the control's properties. How do i get hold of the properties from the WinForms side? the ElementHost is in the way and i cant see anything that might point to the WPF control, unless im missing it?
Any ideas?
Thanks
[edit]
The WPF control is a seperate project in the same solution as my WinForms app, after adding the using MyWpfProjectName; statement i could access the control's members
[/edit]
Harvey Saayman - South Africa
Junior Developer
.Net, C#, SQL
you.suck = (you.Passion != Programming & you.Occupation == jobTitles.Programmer)
1000100 1101111 1100101 1110011 100000 1110100 1101000 1101001 1110011 100000 1101101 1100101 1100001 1101110 100000 1101001 1101101 100000 1100001 100000 1100111 1100101 1100101 1101011 111111
|
|
|
|
|
I follow this MSDN tutorial to extend the frame into WPF client area
http://msdn.microsoft.com/en-us/library/ms748975.aspx[^]
I create an empty window , put the code from the tutorial in Loaded event handler , trying to modify the frame before the window show up . But after compiling it , I just see an ordinary window form , no extended frame as I expected . I don't know why ???
namespace WPFExample
{
class Program : Window
{
public Program()
{
this.Width = 300;
this.Height = 400;
this.Loaded += new RoutedEventHandler(OnLoaded);
}
void OnLoaded(object sender, RoutedEventArgs e)
{
....source code from the tutorial....
}
[STAThread]
static void Main()
{
new Application().Run(new Program());
}
}
|
|
|
|