My app is progressing nicely, but I am stuck on a few small UI issues, hopefully someone knows:
1) Gallery, focus border
I have this code for the button in the gallery
Code: Select all
<Panel Name="Background">
<Layout>
<FlowLayout Orientation="Vertical" ItemAlignment="Near" />
</Layout>
<!--Margins="2,2,2,2"MinimumSize="[ButtonMinimumSize]"
MaximumSize="[ButtonMaximumSize]"-->
<Animations>
<Animation Animation="animation://me:Focus"/>
<Animation Animation="animation://me:NoFocus"/>
</Animations>
<Children>
<Text Name="Label" Visible="false" />
<Graphic MaximumSize="300,300" Name="Image" MaintainAspectRatio="true" />
</Children>
</Panel>
2) Gallery items Z order.
Is there a way to make the selected teim in a gallery on top of the other ones? Apparently when I render my gallery items, they are rendered with different z order, meaning when I scale one item when in focus, it gets on top of the following, but under the one behind. How can I make the selected item on top of everyone? SOmething like "topmostonfocus" or "makeontop" or "bringtofront" would do the trick, but can't find anything that works.
3) I have a scroller and a repeater for teh gallery, how can I tweak it so that the "cursor", the point where an item is selected, cant go any further right than the center? I have tried to set the "beginpaddingrelativeto" on the scrollerdata, but I can only select near and far, I want it like "center". Check the picture gallery in WMC for example.
4) In my gallery I load pictures with source as http, meaning every image displayes when loaded. This is a problem for the focus, because if I load the page and not all images have been loaded, I can't step nto the gallery, because no item is selected. I can only step "into" the gallery using the mouse. I can't access it with the arrow buttons. Next time when I enter the gallery, images are cached and the first item in gallery get focus and I can step on from there... but how to handle it when items are loading? One option I guess is to save the image in the data object, and load everything before I enter the gallery...
/H