|
That was nicely explained That example on MSDN is pathetic and is more misleading than helping. When you read the explanation you somewhat get the picture but when you reach the example, it totally leaves you guessing into the behavior as of a normal event.
|
|
|
|
|
ABitSmart wrote: That was nicely explained
Thanks.
ABitSmart wrote: That example on MSDN is pathetic and is more misleading than helping.
Isn't it just? I really wish they'd up the quality of samples on MSDN. I used to rely heavily on MSDN - now, I tend to ignore it.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys
|
|
|
|
|
It doesn't matter anymore. My MSDN is Josh, Sacha, Karl, Dr.WPF and Pete[^] The WPF disciples are fabulous!
|
|
|
|
|
Thanks - it's an honour to be among such giants, and the Disciples are as fine a bunch as you'll ever meet.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys
|
|
|
|
|
Pete gave a nice explanation. Just to highlight, the Tap event of your example could be handled by any other UI element in the Element tree instead of your Element. Also, could be used as an EventTrigger to start an animations when the event is fired. You can derive the analogy on similar lines as a CLR property and a Dependency Property.
|
|
|
|
|
Now I'm much more clear. As you said, I was totally confused by the example in MSDN. It appears that MSDN just offer a example which can be perfectly debug, but you can not learn the characteristic. Well, Especially in China, little company is using WPF. And you could not find many resources about WPF. Anyway, specail thanks for ABitSmart and Pete.
|
|
|
|
|
Hi,
What is Web Service Software Factory and Web Client Software Factory?
|
|
|
|
|
Kamal Gurnani wrote: What is Web Service Software Factory and Web Client Software Factory?
This isn't Jeapordy. Here's one for you - what is Google?
"WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys
|
|
|
|
|
Hi everybody,
We are using Composite WPF for our new project, and I'm looking for UI process library for it. For WinForm applications, there is UIPAB, while for WPF, I can't find anything like that. I looked into the Workflow Foundation, but it lacks the features in UIPAB. Any suggestions for UI process design and development for Composite WPF?
Thanks,
Jie
|
|
|
|
|
I do not see any reply.But as far as i know we can customize the UIP App block for WPF.
|
|
|
|
|
Hi,
I was really happy to see the NearestNeighbor rendering added in SP1. I thought this would solve the blurry images and such, but what I see is that it's rendering my images incorrectly. It seems to omit rows or pixels if the image is at certain locations. This is easily reproducible by aligning an image to the center of the window, and slowly resizing the window.
I don't think this is supposed to happen with NearestNeighbor rendering since the image has the same resolution as my display.
Here is Sparpness.PNG from the Microsoft PixelsSnapping tutorial for example:
http://img5.imageshack.us/img5/4061/sharpnessfail.png[^]
Is there any way to make this work?
|
|
|
|
|
I'm curious...
What if you try four side-by-side renders (similar to the
code at Pixel Snapping in WPF Applications[^])...
1) SnapsToDevicePixels=False, RenderOptions.BitmapScalingMode=Unspecified
2) SnapsToDevicePixels=True, RenderOptions.BitmapScalingMode=Unspecified
3) SnapsToDevicePixels=False, RenderOptions.BitmapScalingMode=NearestNeighbor
4) SnapsToDevicePixels=True, RenderOptions.BitmapScalingMode=NearestNeighbor
Do any of those combinations render the way you'd like?
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
None of them is correct. Looks like snapstodevicepoxels has no effect in images at all.
NearestNeighbor always, and it's always blurry without nearestneighbor.
|
|
|
|
|
Hi,
I am new to Silverlight Applications. I created one media player control to play video in asp.net website.I want to drag and drop that media player control to desired place when we run the application but there are no events to drag and drop the video. I tried media element control its working fine for drag and drop functionality but i want that feature in media player control. Is there any other alternatives to drag and drop videos to desired place when we execute the application.
Thanks in Advance
Pavani
|
|
|
|
|
pavanip wrote: I tried media element control its working fine for drag and drop functionality but i want that feature in media player control.
Isn't the MediaPlayer an ASP.NET control?
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
I used Media Player control in Asp.Net but i am not getting how to Drag and Drop Video to desired location using that media Player control.
|
|
|
|
|
Maybe try posting on the ASP.NET board since it's not a silverlight control.
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
ok. thank you i posted it in asp.net,dotnet spider,c# corner forums but i didn't get any reply from those forums. And I tried in another way. I added new silverlight project in sasp.net website and I created media element control in xaml file for drag and drop functionlaity and I used that .XAP file in my aspx page when i run in my local system that page running and i am trying to host it in my iis server and there is no silverlight when i open that link it is showing blank space in place of that xaml content. If you know the reason please suggest me how to host my application in server.
|
|
|
|
|
pavanip wrote: in my iis server and there is no silverlight when i open that link it is showing blank space
Make sure the xap is getting published to your site folder.
Also make sure the appropriate MIME types are configured in IIS:
Configuring IIS for Silverlight Applications[^]
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Sir,
i have visual studio 2005. Should i jump to 2008 version to work with wpf..
|
|
|
|
|
I would highly recommend it. You'll get much better designer support
and the .NET 3.5 framework!
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
I would suggest to even upgrade to .Net 3.5 SP 1 and take advantage of the performance improvements to WPF and goodies like LINQ, Extension methods etc.
modified on Sunday, March 22, 2009 9:17 AM
|
|
|
|
|
Yes... You need to install VS 2008 because VS 2005 does not support WPF...
|
|
|
|
|
OK, I've asked this 6 times on the MSDN forums (they have a lot more WPF traffic ) and got not one reply. So, CPians, here's your chance to shine.
Why does the MediaElement suck ? Am I doing something wrong, because I can't get even a smallish video to play smoothly with sound. Are there settings that improve the performance, because what I get with the default is a joke. I created a simple form with a MediaElement and a button, and got the button to choose a file to play, and even then, the result is choppy ( the video freezes from time to time, the sound is fine ).
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Christian - it's possible that it's trying to perform software rendering. Try using the WPF profiler to see if that's what's happening here[^]. You might also want to look at hosting the Media Player as an ActiveX control (not an attractive option, but it may be the way to go).
"WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys
|
|
|
|