|
The answer to this depends on what you mean by making a 2D image 3D. Strictly speaking, in most cases you can't do this automatically (the obvious exception here being converting a bitmap to a terrain using heightmaps), but you could use a modelling tool such as 3DS Max, Maya, Cinema 4D or Zam3D to create a 3D representation of your image.
Once you have the model created, rotating it is fairly simple. This[^] article should really help you.
|
|
|
|
|
You can use this XAML for rotating a Grid.
<Grid.RenderTransform>
<TransformGroup>
<ScaleTransform ScaleX="1" ScaleY="1"/>
<SkewTransform AngleX="0" AngleY="0"/>
<RotateTransform Angle="-6"/><!-- by changing this property you can rotate the Grid -->
<TranslateTransform X="0" Y="0"/>
</TransformGroup>
</Grid.RenderTransform>
Thus you can write it for an image.
|
|
|
|
|
Hai All
In my silverlight application i am using calendar control , in that if i select a date which have any datas for the particular date ,the color of that date should be changed , how to change the color plz help me
|
|
|
|
|
You can specify your own style in resource. Please let me know if you are still having this problem..
|
|
|
|
|
can you please tell me how the code to do this?
|
|
|
|
|
hi guys
i get the following while creating my wcf instance in my code
"ConfigUnrecognizedElement"
.
any solution or any other reason .
Tauseef A Khan
MCP Dotnet framework 2.0.
|
|
|
|
|
What do you mean by "my wcf instance"? Are you using Silverlight-enabled WCF service?
|
|
|
|
|
Hi
I need to use the Win forms Report Viewer control in a WPF application. I believe that I need to use the WindowsFormsHost control in the WPF application to host the report viewer. Also this would have to be done programmatically.
I have tried the solution on this post but the code does not compile. Not sure if anything is missing.
http://social.microsoft.com/Forums/en-US/vsreportcontrols/thread/4d31a7a3-0b85-4294-888a-fc1206abe08a
Has anyone had a chance to work on this?
Thanks
Nakul Ringshia
|
|
|
|
|
Nakul,
What I've always done, is add a WinForm Window to my project and when the WPF code launches any report, is to Show the WinForm window with the report viewer control. Just pass whatever report information is necessary.
This way, when the Report View Control works in WPF, you just replace the window with the same name.
modified 27-Feb-21 21:01pm.
|
|
|
|
|
Ramble
I've been looking at using the View-ViewModel-Model pattern in WPF & Siverlight for some small apps.
Often I find the ViewModel is very similar to the Model in my simple apps, but maybe just a few more view specific properties.
Wrapping my Model class in a ViewModel is sometimes problematic.
Say we have an Employee Class and we want to add a IsSelected property so it can be used in the View.
If we create a ViewModel Employee class and add the new IsSelected property all is okay, except....
If any other class, say Company.GetEmployees() returns a List<employee>, then I have to write another wrap to enumerate through the results and transform Employee to ViewModelEmployee.
Possible solution?
Use Extension Methods (don't have Extension Properties)
Then I can just add GetIsSelected, SetIsSelected methods to the base Employee class.
Using an ObjectDataProvider (don't think this is in Silverlight) we can access the GetIsSelected method, using Bindings similar to properties.
At least that's what I'm thinking haven't tried this out yet!
/Ramble
|
|
|
|
|
|
Great answer Karl. Like it.
|
|
|
|
|
|
I've got a class library in which I added a service reference to a WCF service. VS automatically added an app.config file into the class lib which is fine with me.
Unfortunately, I always get the following error trying to use the service reference:
"Could not find default endpoint element that references contract 'ServiceReference1.IService1' in the ServiceModel client configuration section. This might be because no configuration file was found for your application, or because no endpoint element matching this contract could be found in the client element."
I've checked all the configuration the endpoint settings are well aligned with the auto generated proxy for the service.
I noticed that if I add the same service reference into a web app and copy the serviceModel config over it just works fine in my web app. So that's why I assumed that there must be some issues with the class lib in conjunction with wcf references?
Am I wrong?
Any help very much appreciated!
Cheers,
M
|
|
|
|
|
Ok I will answer that question by myself... lol
I just realized that it is a stupid idea to have a standard app.config file in a class library since the config file is usually considered for an app domain.
So VS shouldn't allow that option to add a WCF reference to a class library and even worse add an app.config file into the class lib leading the dev believe that everything is going to work out fine.
As soon as I added the ServiceModel config section to the config file of the consuming app (web or win) everything works just fine.
Certainly, people might argue with me and telling me that I could implement my own proxy and config. But in this case I believe MS should give the dev some hints.
Cheers,
M
|
|
|
|
|
I often use an app.config file in class libraries. This allows the class library to be responsible for its own resources, as well as allowing the classes in the library to access those resources in a strongly typed manner.
To make the resources available to the executing assembly that references such a class library, I add a line to the executing assembly's app.config <configsections> element, creating a section to hold the class library's settings. Of course, you must then recreate the class library's sections within the executing assembly's app.config, and keep them synchronized whenever changes are made.
Obviously, this is not optimal because you must maintain the settings in two different files, but I am not sure of a better way to do it if you want to access those resources within the class library (in a strongly typed manner).
I would love to hear how other Devs out there handle this scenario.
Keith
|
|
|
|
|
Well, we normally do something like this[^].
|
|
|
|
|
Hi,
I faced the same error.
But it got fixed when added following references in the client application.
System.Runtime.Serialization
System.ServiceModel .
Cheers,
RumYeah
|
|
|
|
|
i tried to upload my website designed using silverlight. But it wasn't working. although it wasn't shownin ny error msg. does anyone know how to upload that???
|
|
|
|
|
Are you using IIS or Apache? If you are using IIS or some other web server, you need to config MIME ext for xap extension..
|
|
|
|
|
Hi,
I want to start silverlight based website. how can I proceed further.
What can I do for that.
I have silverlight controls(GOA).How can I add the controls in VS.NET IDE.
Thanks
sjs4u
|
|
|
|
|
|
Hello, I don't recommend you to use GOA controls. Those controls are more like window-ish kinda controls. If you are using Silverlight 2, there are a lot of controls that you can use.
|
|
|
|
|
I need to work on WPF. So i need to develop some small projects on WPF? how can I create WPF User control ? Can any one help me in this scenario?
|
|
|
|
|