|
The tools you need to develop Silverlight apps only work on VS 2008.
There's a free version if you don't have it: Visual Web Developer 2008 Express[^]
Silverlight itself does NOT require the .NET framework 3.5 SP1, as
indicated by another reply here, although the tools probably require it.
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Hi,
I just need to create a UserControl, combining two standard controls and add this new one to the ToolBox. I often do this in the WinForms world without any problem, but in WPF-land????
Just as I had created a new Tab in the toolbox and starting to use 'Choose items' my VS2008 immediately closes down without any message. This behavior is best described by the term 'sudden death'.
I try this not only once and I try this at a fresh booted machine, doesnt work. No way out.
Any workaround?
Or is this the wrong way to do things in WPF-land?
Thanks for helping
Gerhard ( )
|
|
|
|
|
I am using VS 2008 and it works fine. I made a new tab then went to choose items, selected the 'WPF components' tab and broswed for my assembly. It showed me all the user controls in the new tab.
Did you check your event viewer for the error it logs for the crash ?
|
|
|
|
|
No, good hint, will do soon.
Ok, thanks for the description, I knew now, what dialog I expect to see next. I dont do this in WPF, so I dont know what should come next.
Maybe ist an issue after installing der SP1. I will step back and try to do it with WinForms again, maybe its more general.
I stopped developing WinForms, si I dont know the very last state exactly. Hope I can go further.
Thanks again
Gerhard
|
|
|
|
|
I too am using SP1. The first time i tried opening the Choose itesm dialog, it just took its time (around 2 minutes). You might want to wait for some time after selecting choose item. Good luck :>
|
|
|
|
|
Sorry,
the VS exits with sudden death. No chance.
But, after checking the TaskManager I found devenv still running and as I want to reboot the machine, I get a system dialog telling me, that I have to close some open dialogs first. It looks like, that a dialog should open but doesnt for what reason ever and .....
Ok, will check the event log, and dont guess SP1 is the problem.
Thanks
Gerhard
|
|
|
|
|
You may want to download the VS hotfix from here[^]. See if this helps at all.
"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 | Onyx
|
|
|
|
|
Thanks Pete,
this hotfix is really hot, it works now!!!!
I get a dialog, which informs me, that Microsoft.Ink.dll and Microsoft.ReportingServices.Interfaces.dll is missing for what reason ever, but it works in principle.
I found my controls and I placed one of them on an other, no problems. So I can try to fix the two dll's in a very relaxed scenario.
Thanks a lot.
Gerhard ( )
|
|
|
|
|
No probs. Glad it helped.
"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 | Onyx
|
|
|
|
|
Hi Gerhard,
I was having the same problem with vs2008 and the "Choose Items" command in the toolbox. Any chance you have Power Commands 2008 installed? I had it installed because it offered functionality to collapse all projects among other things. Well apparently there is some sort of comflict between vs 2008 and power commands 2008.
For more info visit: http://www.imaginativeuniversal.com/blog/VisualStudio2008SP1ToolboxCrash.aspx
Hope this helps,
proganon
|
|
|
|
|
Hi proganon,
no, there is a hot fix available, please read the older conversation items, and after applying this fix, the toolbox works fine.
With best regards
Gerhard
|
|
|
|
|
Ah, I missed that reply when I was reading through them...must've been a different problem or a different reason for the problem.
Thanks
|
|
|
|
|
Hi!
I need a small 3D feature for a WPF window and I don't know where to start.
I need a series of Pictures in a row like a carousel, but in a kind of theatre view. On Channel 9 is a Flickr viewer, but that is way tooo complex and uses mouse interaction (not what I need) and several rows (I just need ONE row) with a maximum number of 9 images.
The more "lightweight" the solution is, the better.
Any ideas?
Greetings,
Stephan Eberle
hawke@deltacity.org
|
|
|
|
|
Stephen - you may want to take a look at the options that Pavan has put together in Fluidkit[^]. This is probably what you want.
"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 | Onyx
|
|
|
|
|
Thank you for pointing out fluid! Looks promising.
Actually I was looking for a XAML snippet like handling two / three images in a Viewport3D view. Maybe any other documents/HowTos?
Best regards and thank's again!
Stevie
|
|
|
|
|
|
You could always use a method like this:
private void ChangeRowHeight(Grid grid, int row, int height)
{
grid.RowDefinitions[row].Height = new GridLength(height);
} So, to hide the 2nd row, you'd use
ChangeRowHeight(Details, 1, 0);
"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 | Onyx
|
|
|
|
|
I've got a 3D Control which based On Direct3D. And I found something interesting. In my window, I have a Grid as a root element which holds two children, the first one is my 3D contorl and another one is a rectangle.
<grid>
<mycontrol:3dcontrol xmlns:mycontrol="#unknown" />
<rectangle width="50">
Height="50"
Fill="Red"/>
</rectangle></grid>
I hope, as well as it seems to be,the Rectangle is on top of my 3DControl. But on the opposite, 3DControl is on the top of my rectangle.
Then I tried to set the Panel.ZIndex neither it work. Since many ways I've tried it still doesn't work, I started to judge the way of wpf d3d control mechainsm.
In some articles I learned Direct3D has two modes windowed and exclusive. Windowed needs back buffer bu Exclusive calls graphic driver directly. Is the Exclusive mode make my 3DControl always on the top? Oh by the way, mycontrol is inherited from WindowsFormHost class, is it caused the promblem either? Anyway so confused!!!!
modified on Tuesday, March 31, 2009 1:20 AM
|
|
|
|
|
I'm using MVVM in which WPF controls are data bound to propertied in a "ViewModel". This all works fine. One of our main controls is an XY chart and it can only be update via code because it requires looping and other logic. i.e it's not adaptable to data binding.
Since I cannot bind the chart to data, I was forced to add a method to the XAML code behind that knows how to update the chart. To further muddy the MVVM design pattern, I had to pass the View down to the ViewModel, so that the ViewModel could explicitly call the UpdateChart method that is in the View code behind.
Instead of binding between the ViewModel and UI control, I would like to bind between the ViewModel and a method in the code behind. Then the method in the code behind could go thru its complex logic to update the chart control.
Thanks for any suggestions. I appreciate the benfits of DataBinding and MVVM, but I can't make it work with my WinForms control that is embedded in a WindowsFormsHost control.
Mitch
|
|
|
|
|
barker770 wrote: pass the View down to the ViewModel
why would you do that ? You could bind in the view to change notification and update whenever there is a change?
|
|
|
|
|
ABitSmart wrote: why would you do that ? You could bind in the view to change notification and update whenever there is a change?
The view is bound to the view model, and I have implemented INotifyChange. This works for binding to WPF controls, but not for binding to my chart control that is in the WinFormsHost.
So the question remains, can I bind a method in my View to the ViewModel without explicitly passing the view object down to the viewModel object.
Mitch
|
|
|
|
|
barker770 wrote: Since I cannot bind the chart to data, I was forced to add a method to the XAML code behind that knows how to update the chart. To further muddy the MVVM design pattern, I had to pass the View down to the ViewModel, so that the ViewModel could explicitly call the UpdateChart method that is in the View code behind.
Why is this method not part of the ViewModel? If it's updating data, then it has no place in the view - the view should only be a visual representation.
"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 | Onyx
|
|
|
|
|
> Why is this method not part of the ViewModel? If it's updating data,
> then it has no place in the view - the view should only be a visual
> representation.
Agreed. And the procedural code in the View.xaml.cs code is really just to help transfer the data into the winforms control.
Yes, I would prefer to bind a chart property directly to a method in the ViewModel, but I need this procedural code to be somewhere. And it makes sense to make it part of the View. Just as somewhere in the standard WPF binding code there is some procedural code that does the actual display of the data.
It would be perfect if I could bind a method in the View.xaml.cs to my ViewModel In effect, encapsulating the logic needed to bind to the chart control inside the View (albeit the code behind for the View.
Mitch
|
|
|
|
|
If you just need to use the host because you have a none WPF chart, why not take a look at this[^]?
"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 | Onyx
|
|
|
|
|
A native chart is of course the best solution. However, we have a lot of expertise with this third party chart control (ChartFx) that it would be too costly in terms of time to abandon it now. We have several WinForms products and we have layered on many custom interactive chart features. We're starting a new product and want to use WPF for all but the chart.
ChartFx is developing a WPF native chart, but it may not have the same feature set nor does it's release schedule match ours.
Anyway, I did find the "PropertyMap" property of the WinFormsHost, but it only maps to properties of the winForms host class. Is there some way to add a new property? For example, I would map a new property named "DataSeries" to a method in the xaml.cs code. Then I would bind the "DataSeries" property to my ViewModel. Any tips on doing this?
Thanks,
Mitch
|
|
|
|