How to programmatically scroll a SurfaceScatterView - scroll

The SurfaceScatterView is an ItemControl,
I want to scroll it into a position that I choose,
Can any one help ,
Thanks

Problem resolved ,
ScrollToHorizontalOffset(double d)
ScrollToVerticalOffset(double d)

Related

Position Buttons inside UIStackView

This sounds like a really simple issue but somehow I do not know how to easily solve it. Inside one row (UIStackView horizontal), I am trying to place two buttons (Cancel and OK) so that Cancel button will be at 1/4 (of the whole length) from left and Ok will be at the 3/4 (of the whole length) from left. I would like the buttons to be fixed length and not stretching to occupy the whole row.
Is there a way to solve it with just one UIStackView with 2 buttons? I am sure there a lots of alternatives (programing a view / use 3 UIStackViews).
Thanks.
hope you can find an easy way using equalWidthconstraints instead for UIStackView.
ie.
1. You should place both buttons in a sam line.and make sure both button's width are same .
2.then you select both buttons and put EqualWidthConstraint.
3.After that pin the left button with top,left and right .
4.pin the right button with right,top spaces,
5.then you double click on the equalwidthconstraints and give Multiplier as you needed ; like 1:4,3:4 something like that. Thank you

Issue when moving up down in a THorzScrollBox to scroll it's parent TVertScrollBox

I'm facing a problem with this 2 ScrollBox, one is TVertScrollBox which display whole screen and it have a THorzScrollBox in it, my problem is if i want to touch to the HorzScrollbox item and move up and down, my VertScrollBox have to scroll same as. Are there any ways to solve this issue? Thanks in advance
//Edit 1 : I'm using a gesture and ScrollBy(x,y) function to do with this issue. But it seem a bit laggy(not smooth) and still the HorzitonScrollBox scroll it own. A image for this(http://i.imgur.com/weOqW0R.gifv). Still watting another solution to do this
You can do it using UICollectionView as given in below example project.
http://damir.me/implementing-uicollectionview-layout
Source code link: http://bascarsija.s3.amazonaws.com/CollectionView.zip
After downloading this source code, In build settings change the value of the "Compiler for C/C++/Objective-C" to Default Compiler and run the app.
OK, I have found a simple answer.
When you have a THorzScrollBox inside of a TVertScrollBox, set THorzScrollBox.Touch.InteractiveGestures.Pan to False.

Sliding bottomsheet like redbus

I want to implement a search feature similar to the redbus app. The screenshots are shown below. When I click on editbox, it should slide the sheet(from bottom) with the name of the cities as shown in screenshot2 and when I select any one of them, it should dismiss and fill the selected details in edit box. I have already tried working with bottomsheet, but could not find a way. Please help.
This is an angular material directive called bottom sheet:
https://material.angularjs.org/latest/demo/bottomSheet
You can use
startactivityforresult(my intent,1)
In your app. Let me know if you want any further help. Hope this helps u nuf.

Windows Phone: find the VerticalOffset of a button

In Windows phone, how do I find the VerticalOffset of a button? I have a ScrollView with a bunch of content. I want to use ScrollViewer.ScrollToVerticalOffset to get to a specific point (a button), but don't know how to get the position of that point.
if you have both items, you should be able to use TransformToVisual to get the location of one control relative to another, then use that to scroll
see http://msdn.microsoft.com/en-us/library/system.windows.media.visual.transformtovisual.aspx
This is how I get the x and y coordinates of two buttons in my app and move them. Maybe you can do something similar:
Canvas.SetLeft(imUp, Canvas.GetLeft(imUp) + offsetX);
Canvas.SetLeft(imDown, Canvas.GetLeft(imDown) + offsetX);

jqgrid edit dialog align to center

I am using jqgrid in my application.
I need the edit dialog should be center aligned.
I tried to search a way but failed. If any one have the solution please let me know.
thanks in advance.
Look at the demo from the answer.
One more way to solve the same problem you can find here. In the case the position of the dialog will be based on the current selected row.

Resources