Change layer of UI object UWP

Tags: c# xaml uwp
By : SmiLe
Source: Stackoverflow.com
Question!

I have some pics on the Page that I can move and I need change layer on the selected image(e.g. double tap or long press)

<Image x:Name="CollageImg1" Margin="1076,464,959,805" Source="{Binding CollageImg1}" ManipulationDelta="CollageImgage1_Manipulation">
    <Image.RenderTransform>
         <CompositeTransform/>
    </Image.RenderTransform>
</Image>

All images have similar code

By : SmiLe


Answers

I resolved.

I need change 'ZIndex'. Example: 'Canvas.SetZIndex(xamlImage,(int)layerNumber);'

By : SmiLe


Make a Listview and then in its adapter add your table data. Make adapter's layout like this:

 <LinearLayout
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:orientation="horizontal">
    <TextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="2"            />
    <TextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="*" />
   <TextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="2" />
    <TextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="=" />
    <TextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="4" />

By : VNS


If you are not going to be moving columns around (Friday will always be in whichever cell it is at present and days just continue in sequence to the right) it might be easier to select the entire range to be subject to formatting and HOME > Styles - Conditional Formatting, New Rule..., Use a formula to determine which cells to format and Format values where this formula is true::

=OR(MOD(COLUMN(),7)=3,MOD(COLUMN(),7)=4)  

Format..., select your choice of Fill, OK, OK.

Adjust 3 and 4 to match whichever day you choose to start the sequence with wherever your selected range starts.

Given information you have withheld of what is where the above might be simplified.

By : pnuts


This video can help you solving your question :)
By: admin