Following MVVM Example - Droptargets get disabled after docking in some direction - avalondock

I am following an Avalondock-example on github:
https://github.com/8/AvalonDockMVVM
It works well, but I want the possibility to dock in more than one direction. Can anyone explain how this can be done?
I'll add a couple of images as an example of what I mean:
What I want is to let the user place windows both in the left/right-direction and in the up/down-direction. Can anybody please point me in the right direction? Any ideas are appreciated!

Have you tried setting the AllowMixedOrientation Property ?
<xcad:DockingManager
Grid.Row="1“
MaxHeight="425"
AllowMixedOrientation="True"
BorderBrush="Black"
BorderThickness="1">
<!--your Code-->
</xcad:DockingManager
Found here: Wpf Toolkit on Codeplex

Related

[Cocos2dx - TiledMap]Get black vertical lines when move map

I make a game with cocos2d-x and tilemap follow tutorial Cocos2D-X Tile Map Tutorial
It working fine but when i move map, i get black vertical lines on screen.
http://i689.photobucket.com/albums/vv255/thansaulove/error2.png
Anyone have solution to fix it?
Many thanks in advance.
There is a way to fix this. It worked for me.
Find the ccCongig.h file and change the value of CC_FIX_ARTIFACTS_BY_STRECHING_TEXEL to 1

Swiping through photo stack like Tinder - Cross-platform (Hybrid / HTML5 is OK)

I'm looking to create an app like Tinder where users swipe through a photo stack. Does anyone know of a way to reproduce this effect cross-platform?
So far, I'm thinking of building a web app using jQuery Mobile with
TouchSwipe for swipe detection;
see: http://labs.rampinteractive.co.uk/touchSwipe/demos/
and jStack to display the images;
see: http://lab.hisasann.com/jStack/
Are there any suggestions of a better way to do this?
Here is a jQuery Plugin for that:
jTinder
I've finally found a hack that does something like what I described in the question:
Using the touchpunch library (http://touchpunch.furf.com) for drag and drop, full-screen images, and drop zones to the right and to the left seems to do the trick.
Check out Swing JS : https://github.com/gajus/swing
and for angular: https://github.com/gajus/angular-swing
see this thread also:
Tinder style drag gesture and drop with Javascript?
Hope it isn't too late to post a suggestion. So, hammerjs allows to listen to multitouch and gesture events. And supports Android, iOS and Windows Phone.
http://eightmedia.github.io/hammer.js/
Can try calling the photostack control's next/previous step based on the gesture event?

Away3D 4.0 TextureMaterial activateForDepth()

I am new to Away3D, and I’m using version 4.1.1b.
I am having trouble with the rendering order of Meshes added to the scene.
(Objects in the distance are rendering infront of Objects closer to the Camera)
I found that in version 4.0 you could call activateForDepth() on a TextureMaterial.
It seems as though this method has been removed.
Can someone please point me towards how to fix this in 4.1.1.
I have also tried,
_view.renderer = new DepthRenderer( true, true );
This seems to fix the depth/distance problem, but everything is bright blue with circles instead of textures.
Thanks
Matt
This has now been solved, for anyone looking for the answer see this other post.
http://away3d.com/forum/viewthread/4673/

Application closes when device is rotated

I'm testing via USB debugging on my Galaxy Tab 8.9 and whenver I rotate the device the application closes itself.
How can i fix this?
Android 4.x orientation with phonegap
add this line your activity in the manifest
android:configChanges="orientation|screenSize|keyboardHidden"
For me I found out, that the android:configChanges-Entry must be the first in the list. I had it in the third after "name" and "label" and it didn't work.
I was having the same problem but Yaron Uliel's comment helped me out.
Just make sure that on yout "AndroidManifest.xml", the 'activity' node has the attribute:
android:configChanges="orientation|keyboardHidden"
Like this:
<activity
android:configChanges="orientation|keyboardHidden"
android:name=".FirstAppActivity"
android:label="#string/app_name" >
In my particlar case, I was missing "android:" part before "configChanges=" (it's an error on Adobe's tutorial I believe)
Hope it helps!

How to place one object (image) on top of the other(video) in Flex 4

I'm looking to place an image (object) on top of the other object (default video player in Flex 4), any suggestions are most welcome. Do we've to use canvas? can I do it without using canvas? An example would be greatly appreciated, thanks.
Regards
You can have a look at this tutorial for more info:
http://www.republicofcode.com/tutorials/flash/as3displaylist/
but adding an object on top of another one , is as simple as this
addChild(child1);
addChild(child2);
basically the first object added is at the bottom of your stack. now if the object you want placed under was added after the first one. you still can do this:
addChild(child2);
addChildAt(child1, 0 );
there are, of course ,more options to manipulate the children positions but you should find what you need in the tutorial above.
Oops , sorry the word Canvas , got me confused. I thought you were trying to do this within Flex. Do you mean to say you want to do that in HTML. If you do, please retag your question, because it wouldn't really be a flash issue .
Hope it helps ;)