I am building a demo for a client using the Bingmaps WPF Control. I got a dev-license and used one of the basic examples.
The program compiles and I am able to use the map the same way I'd do via a browser. The problem is that something is going wrong when rendering because the map data is shuffled and thus the map tiles do not overlap neatly as seen in the picture below.
This does not seem to be a widespread problem as I found only one similar question asked on the Microsoft Support Forums, which unfortunately went (pretty much) unanswered. Any ideas?
I am using .NET Framework 4, Visual Studio 2013.
It was a proxy/firewall issue at work. When I tried the demo at home it worked just fine.
Related
Edit: Maps was not the problem, it's the forms itself as well.
In our app we are using Xamarin.Forms, and we used to use version 2.3.4.270 which was working fine. However, after updating to the current latest version 2.4.0.18342 and cleaning the solution, we just see a white screen without any exception. Note that not even a part of the actual layout is rendered at all. No code is changed.
This problem is on an Android device, iOS is working properly.
According to the release notes, there is nothing actually changed a lot in the Forms itself:
https://developer.xamarin.com/releases/xamarin-forms/xamarin-forms-2.4/2.4.0-stable/
Did Xamarin change something important in their switch from 2.3 to 2.4 that I am missing out here?
The white screen appears if you did not provide an API key, or if it not valid. Since your iOS project is working fine, my suggestion will be to check your declaration of API key for android.
https://developer.xamarin.com/guides/xamarin-forms/user-interface/map/#Android
Well the problem was that we were using MvvmCross, this caused several problems in our project so we decided to switch to another framework.
I'm beginner developer of cordova/phonegap.
I created a simple app and added wp8 platform. This created a Visual Studio project.
Opening this project, I can change orientation for all screens of the app (on MainPage.xaml file). Then, I changed this line, portrait only:
SupportedOrientations="Portrait" Orientation="Portrait"
Works fine, but I need force landscape orientation for a specific page. Before import to Visual Studio, I tried all imaginable plugins (phonegap), but don't work for me.
The question is: how force screen orientation (only specific page)?
Unfortunately, there is currently no way to do it dynamically without writing the plugin by yourself. There is though quite a ready plugin by GitHub user yoik which you can extend to include the Windows Phone 8. The code to include support for WP8 isn't probably that difficult to code and here seems to instructions for that.
Just to conclude this case
To use static locking for certain orientation, you can add
SupportedOrientations="Landscape" Orientation="Landscape"
to mainPage.xaml in case you are using CLI and if you are using PhoneGap Build you need to add
<preference name="orientation" value="landscape" />
To dynamically lock certain orientation, you need to have a plugin to do that. This plugin already exists for iOS and Android but it is missing port for Windows Phone 8 for some reason.
Even though this doesn't solve your problem exactly, it is the best answer you probably can get to this problem.
Update
As I already told in my monolog on comments, I decided to try to port it for WP8. I forked it on GitHub and it now compiles successfully. Unfortunately I don't have the opportunity to test it's correct functioning instantly but I'll do that ASAP. The fork can be found here.
Update 2
After spending few days on this topic. I finally got to test the implementation and it seemed somewhat promising. I created a pull request for the original project. Until it is merged, feel free to use the forked version. In case you find any problems, don't hesitate to contact me!
i'm totally new to SlimDX and WPF, but i need to create a multiple images in my application and one of them need to be a 3d visualizator of a point render, something like this:
http://img600.imageshack.us/img600/5879/6a00d83452464869e2017ee.gif
I found i can use SlimDX to use DirectX by C# instruction in my application, writing the result in a D3DImage component.
After some tries i made visual studio 2012 to recoignize that D3DImage (for some reason i needed to restart windows to made it work) but i don't know a few things:
How i can initialize a DirectX window inside that D3DImage? I really can't find any example or source code. All the examples i can find (like the 3 litte examples on SlimDX) are out of the WPF context
Where i can find some good documentation about SlimDX? The GameDev community seems some kinda bugged and i can't post anything (maybe because i'm not paying) and i can't find anything anywhere! How i'm supposed to learn that?
Not a single one of the SlimDX examples from the SVN can compile. I always got some reference error with the SlimDX library (empty path) and even re-importing from the correct path doesn't solve it
This is driving my crazy D:
I feel your pain. I haven't be working to much with the D3D stuff in SlimDX for lack of a reason to do so, But I have been playing around with DirectSound and DirectInput, So i'll tell you what i've figured out.
First Bullet:
I'm not sure initializing a D3D Window inside of an image is going to work. If you're using Windows Forms as your base, SlimDX includes a RenderForm or some such thing that subclasses Windows.Forms, and provides a decent amount of functionality. I still haven't figured it out for WPF, even though there's supposed to be a sample for that.
Second Bullet: Documentation is difficult to come by. There's some stuff on the site, and some stuff here, but what's really been helpful is the MSDN Reference for DirectX. SlimDX Mirrors the structures pretty well, and you can find out a lot by reading it. It DOES take a bit of conversion, because the DirectX reference is C++.
Third Bullet: Same problem. Never was able to figure out why.
Hope that helps a bit.
I've never done this before. I don't know which control or what class I can use to solve it, can you give me some advice? I am using C#, and my platform is visual studio 2010.
Years ago for 2D CAD like program I used piccolo2d with a great success. It's a good writtent 2D library, completely written in C#. We should by the way a customize it a little bit for our own needs in order to run it faster in our specific contest, but I repeat I got a very good feeling form it.
Good luck.
I am transitioning from WinForms/XNA to WPF/SlimDX because:
a) all of the benefits of WPF over
WinForms (but learning curve = ouch!)
b) I would like to have multiple
SlimDX viewports attached to Panels.
XNA has 1 "game" screen.
c, last and least) DirectX 10 support
All of my previous XNA code is in C#. I am having trouble figuring out how to port this over to SlimDX and WPF on a high level. I have searched like crazy. The closest I have found are:
1) http://www.gamedev.net/community/forums/topic.asp?topic_id=507941
Many articles point to this discussion, however it is incomplete and I can't figure out the XAML, and I get device errors after attaching all of the _slimDXDevice and Window1 events that were left out.
2) http://www.codeproject.com/KB/WPF/D3DImage.aspx
This article assumes the user is porting C++. I am porting XNA code which is very close to MDX code.
If I could get to the point where I have a WPF form with a custom SlimDX driven viewport that was just a blue box, I could go from there. In XNA I rendered many separate RenderTargets and placed them all over the screen, now I want to attach them to controls. But first, just 1 blue box! :D
Any ideas? I feel that this is either simple or that there's some "cookie cutter" code that I'm missing. Greatly appreciated!
You can look at the sample now. It's just been checked in to our repository, so you'll need to use SVN to get it (or wait until we ship the Feb 2010 release):
http://code.google.com/p/slimdx/source/detail?r=1356
D3DImage is the class you want to use. Even though the codeproject tutorial is C++, it is very applicable to SlimDX and WPF.
All you have to do with your SlimDX, is run your code normally, but DO NOT run a Present(...) on your device or swap chain. At the point where you would put a Present(...), do a D3DImage.SetBackBuffer(...) and send your SlimDX surface's ComPointer property to it. Then do D3DImage.AddDirect(...) and you now have D3D composited in WPF.
Also, make sure you create a IDirect3DDevice9Ex or else your performance will be terrible in anything but XP!
I recently was messing around with D3DImage and SlimDX and didn't find it too difficult to get it working (with DirextX9). I have some code at my home pc that I'll post later, but it's pretty similar to the code in the links provided.
I was never able to get it working with a higher version of directx though. Jeremiah has a nice blog post about using a directx9 device as a link between directx 10/11/d2d and the D3DImage, but I couldn't get it working with Slimdx. I didn't put a whole lot of effort into though as directx9 did what I needed it to do and I kind of wanted it to work on XP.