|
Moonlight 2.0 doesn't exist yet unless you're talking about alpha.
|
|
|
|
|
Yes, sorry, I should have been more clear.. I am referring to the Alpha.
-Stuart
appSynergy.com - blur the boundaries of your devices
Capture public beta now open! Assisting our users to Get Things Done
Sign-up here
|
|
|
|
|
I wish to disable particcular listbox items from a listbox binding with a list,How can i get the ListBoxitem?
|
|
|
|
|
You will have to databind the IsEnabled Property of ListBox item to a CLR property in the databound object. The Visual tree is not accessible easily once you use Data binding. Once you databind the IsEnabled property to a CLR property then setting the CLR property will automatically enable\disable the ListBox item.
Hope I made sense
|
|
|
|
|
hello
i need to load a 3d model from file and show it in viewport3d.
how do it?
thanks
[AmirHossein.MOjvar@yahoo.Com]
|
|
|
|
|
Hello evveryone,
I am trying to add my WPF controller to a winform dynamically. Could anyone please help me?
This is what I tried so fare
MyWinForm myForm = new MyWinForm();
WpfUserControl uc = new WpfUserControl();
if (ListBox.SelectedItem != null)
{
WPFObject selObject = Listbox.SelectedItem as WPFObject;
uc.GetObjects(selObject);
myForm.Controls.Add(uc);
myForm.Visible = true;
}
it throws an error. cannot convert WpfUsercontrol to System.Windows.Forms.Control. Is there a way to add WPF controller dynamic to a winform??
many thanks in advance!
|
|
|
|
|
You cannot directly use a WPF control in WinForms. You will need to use an ElementHost[^]
e.g.
ElementHost elhost = new ElementHost();<br />
elhost.Size = new Size(110, 60);<br />
elhost.Location = new Point(45,35);<br />
<br />
MyWPFControl wpfctl = new MyWPFControl();<br />
elhost.Child = wpfctl;<br />
<br />
myForm.Controls.Add(elhost);
See here[^]
|
|
|
|
|
Thank you very much, It was very heplfull
|
|
|
|
|
|
Prajeesh wrote: double NewY = ImageOffset.Y - (.5 * ImageScale.ScaleY);
because you are sending it upwards only.
I don't think the logic you are using will work for Pan. I might be wrong.See This[^] and this[^].
And yes, please remember this[^]
|
|
|
|
|
Hi,
i wish create a WindowLogin(username, password)WPF that after authenticate to access in the software the WindowLogin disappear instead to to be visible.
Do you have any advice ho work out that?
Have a happy day
Bye
|
|
|
|
|
Is there any source code for customized Folderbrowser Dialog for WPF?
|
|
|
|
|
|
It supports only for Windows Vista,Want a Custom control for any OS
|
|
|
|
|
Jeena S wrote: for any OS
WPF is supported from Win XP onwards. . From the site,
"When the classes are used on Windows XP, they will automatically fall back to the old style dialog; this is also true for the VistaFolderBrowserDialog on WPF; that class provides a complete implementation of a folder browser dialog for WPF, old as well as new style."
|
|
|
|
|
|
Thanks Mark!! Sorry, I never came across that post of yours else I would have recommended it, no doubts. 5 for that
|
|
|
|
|
Ah this is where you're hiding out. So you're a WPFer now eh?
|
|
|
|
|
Busted!
Yeah, WPF and Silverlight. I scrapped and converted ALL my MFC UI stuff
to C#/WPF starting about a year ago.
I still use C++ but only for device I/O and occasionally performance-critical
native code.
I spend most of my newsgroup time in the MS Silverlight forums these days.
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
|
Prajeesh wrote: I have a viewbox like this.
<viewbox name="PhotoBox">
How can I Zoom the image in viewbox on a button click?
A simple google search would have turned up this[^] article. If you want to be a professional developer, you have to have the ability to do your own research first - that way you don't waste time waiting for somebody to answer your question.
|
|
|
|
|
Pete O'Hanlon wrote: If you want to be a professional developer, you have to have the ability to do your own research first - that way you don't waste time waiting for somebody to answer your question.
I agree. But sometimes for a person who isn't English , "what he should search (key words)" it's an issue
|
|
|
|
|
I searched for zoom image wpf. The keywords were all in his question, so this shouldn't have been a problem.
"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,
I am new to Silverlight application.I want to display video using Mediaelement tag and I used the below code to play video.
<canvas>
<mediaelement x:name="mPlayer" width="640" height="480" source="a_video.avi" xmlns:x="#unknown" />
<button x:name="bPlay" background="Green" width="100" height="45" canvas.left="8" canvas.top="497" content="Play" xmlns:x="#unknown" />
<button x:name="bPause" background="Yellow" width="100" height="45" canvas.left="112" canvas.top="497" content="Pause" xmlns:x="#unknown" />
<button x:name="bStop" background="Red" width="100" height="45" canvas.left="216" canvas.top="497" content="Stop" xmlns:x="#unknown" />
</canvas>
And I placed that video file in Xaml folder but when i run the application i am not getting any results to play video. The steps I followed are correct or anything missed.
Please help me how to play video using silverlight mediaelement and mention the steps to play video and where i have to place video to use it in mediaelement source property.
Thanks in advance
Pavani
|
|
|
|
|
AVI files aren't currently supported for MediaElement AFAIK.
Try converting the AVI to WMV
Also, if you're going to use a relative URI like that, make sure the
media file is in the same folder as the contents of the Silverlight app's
XAP.
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|