I want to make right to left language(Hebrew) in panorama window(So the scroll will be to left instead of right), how can I do that?
Thank you.
Set the flow direction property of your listboxes, textboxes etc. to right to left. The panorama control itself also has this property.
Related
I am laying out a calculator using Interface Builder and I ran into some issues with the layout of buttons.
I have 3 columns of number buttons, similar to most calculators, and I had no problem placing the left and right columns as the auto-layout feature of Xcode snapped them in the correct distance away from the edge of the window on the left and the operator buttons on the right; however, there was no automatic help for centering the middle column of buttons between those two.
I can eyeball it pretty well but I really prefer to have everything perfectly aligned. Is there any way to center a button between two other UI objects like this? here is a picture of the layout:
You can place all the buttons in their own View. Place the view where you want the buttons. Then you could align the left buttons to the left of the view, align the right buttons to the right of the view, and finally center the middle buttons. Then adjust your view you made accordingly. I did something very similar. Hope this helps.
I'm new to windows-phone. I have one doubt?
I'm having a stackpanel with Image and textblock as its children. Surrounding this stackpanel, a lot of stackpanels with different Image and textblock content. One of the surrounding stackpanel has no children. I want to swipe the any of the stackpanel with children in right, left, top and bottom directions. The work, is to check the stackpanel in the swiped direction, whether it contains any children or not. If it does not contain any children, then, change the children of the main clicked stackpanel to the empty stackpanel..
And then clear the children in the main stackpanel. How to do it?
Please explain me with some coding parts. Thank You for All....
If you check the Google, you could find this WPF realization of Fifteen Puzzel Game in WPF.
You just need to "translate" it to Windows Phone 7.
I have a weird experience when using a panorama control on 7.1... I'm trying to toggle the visibility of a PanoramaItem programmatically. But while it works fine and the PanoramaItem toggles (i.e. PanItemA is hidden, while PanItemB is shown) , the hidden PanoramaItem reappears briefly while swiping right (from first item to last).
I have no clue how to solve it.
Any help is much appreciated.
Thanks!
It's not good idea show/hide Items for Panorama.
Try remove/add them instead.
I was wondering how one would align the items in the toolbar to the right of the interface instead of the default alignment of the left.
Add a flexible spacer item left of your button to push it to the right side.
I have listbox in WP7 where i need to scroll to certain items according to user choice and i use scrolltoview for that. Problem is that i need listbox to scroll listbox enough so that selected item appears aligned to top edge. Right now scrolled item is positioned at bottom.
Assuming that you have fixed (and known) size items and a fixed (and known) size of listbox, can't you just account for the number of items between the top and bottom of the visible space and adjust your offset accordingly?
Unfortunately Matt solution was unusable in this case because listbox items were too big taking almost whole screen per item. But i was able to solve this problem by getting scrollviewer of listbox and use its scroll method to scroll into listbox SelectedIndex. Item is still not positioned perfectly after scrolling but height difference is minimal and acceptable for me.