Chaning the overlap in wp7 panorma control - windows-phone-7

By default the next item in wp7 panorama bleeds into the currently selected panorama item by a few pixels and I would like to show a bit more of the next item.
Is there a way to control the amount of pixels? I tried setting margins and paddings and tried editing the controlTemplate, but had no success.

If you do this, aren't you going to be breaking the design guidelines for the Panorama control, therefore the control is no longer a Panorama control, making your application inconsistant with other applications using the unmodified version of the control?

You can give a panorama item a negative margin:
Margin="-24,0,0,0"

Ok, the way to do this is to wrap the content of the panoramaItem into a WrapPanel and set the orientation of the panoramaItem to horizontal.

Related

Expanding visible page area in Expression Blend

I am using Expression Blend for Windows Phone development. If I insert a layout (grid, stackpanel..) that expands LayoutRoot I cannot see the controls beyond the border. Is there any way to overcome this?
If you look at your PhoneApplicationPage XAML, you should see in the first tag:
d:DesignWidth="480"
and
d:DesignHeight="800"
You can manipulate these to extend the design surface to something that lest you see everything. This will have no effect on the runtime version of the page.
Click on your top level control in the Objects and Timeline panel. Now you should be able to drag the sides/corners to shrink and expand the control's area. This affects just the size of your control on the design surface, not the runtime size (assuming you've set width and height to Auto).

howto make a grid in a WP7 app bigger than the screen size?

i have a problem with my WP7 app. i'm creating a screen where the user can make some input and then generate something.
but i can't fit the whole input into the screen size, so i would need a element which has a scroll bar or something and i can add so many elements as i which and then the user scrolls up and down. how to make this?
There is a ScrollViewer control that you can use. Put the grid in the ScrollViewer and you can then scroll around.
encapsulate your content in a <scrollviewer> That should show a scrollable content.

How to see controls which are below the bottom of screen in designer

I have a StackPanel in ScrollViewer with many TextBlock+TextBox (so on the screen I see same scrolling list view like in phone's standard Settings page).
In VS's or Blend's designer is it any simple way to see controls which are bellow the bottom of screen? (I need some kind of scrolling in designer). It must be something simple. Now I am switching off visibility of upper controls to see lower controls and it is boring.
Change the d:DesignHeight to a larger value, such as 2000 (the maximum height), and Expression Blend will allow you to see content that otherwise would require scrolling.
Example screenshot

WP7 listbox scroll by item

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.

Silverlight 4 Stack panel - animating child when item removed

I want to modify a stack panel, so when an item is removed from it all the items under it slides in animation upwards to fill the missing gap. what is the approach I need to take in order to achieve this ?
Use ListBox instead, and have its ItemsPanel be a StackPanel. Then, modify the style of the items to include an animation in AfterLoaded, BeforeLoaded, and BeforeUnloaded visual states.
http://msdn.microsoft.com/en-us/magazine/ff798276.aspx

Resources