|
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());
}
}
|
|
|
|
|
You need to set the Background propery of the Window to Transparent.
Look at the XAML the example has.
modified 27-Feb-21 21:01pm.
|
|
|
|
|
Thanks , following your answer and I ended up with an frame-extended window , but the client area became black , I think it's supposed to be transparent
|
|
|
|
|
I've been using that code since version 3.0 and never had a problem.
I would suggest getting the demo to work first on your system, then build your program like the demo, then move to a code only solution once you digest all the pieces.
Dumb quesion: You are using VISTA and have Aero turned on, right?
modified 27-Feb-21 21:01pm.
|
|
|
|
|
Yes , I'm using Vista with Aero turned on , and I also checked DwmCompositionIsEnable(). According to the book I'm reading (Pro WPF in 2008 by Matthew Donald) the client area should be transparent , I have confirmed it on my friend's PC , but on my own machine , the client area became black , I don't know what's wrong here , I can't follow the tutorial correctly
|
|
|
|
|
|
That is the tutorial I was talking about , I followed it line by line but the result was different from the tutorial , my client area became black , I want it to be transparent
|
|
|
|
|
Not really sure what the issue could be. I assume that you can't get the demo application to work, right? But the demo application works on other machines?
If so, step though the code on both systems and see where things get off track.
Are the EXACT builds and service packs applied?
modified 27-Feb-21 21:01pm.
|
|
|
|
|
|
We are developing a DVD application with the help of D3DInterop, DirectShow API and WPF. In this application we are trying to add all the functionalities that can be carried out with a normal DVD player. We have faced some problem during the development stage. The problems we faced are listed below for your kind information:
1. Audio is not functioning. Did we miss any audio filters?
2. The navigation menus of DVD disc (Eg: language selection, scene selection, song selection) are working through keydown event. But the same are not working with mouse events (Like, mouse move, mouse down etc.).
We couldn’t find out any solution for this problem. We hope there will be a solution this. Looking for a positive response to the earliest.
|
|
|
|
|
Tell me...
What on God's green earth does this have to do with Windows Presentation Foundation, Windows Communication Foundation or Windows Workflow Foundation?
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
|
|
|
|