Sunday, 15 July 2012

Disable hub horizontal scrolling when showing menu flyout in windows and win phone 8.1 -



Disable hub horizontal scrolling when showing menu flyout in windows and win phone 8.1 -

i have hub item many hub sections inside. create user command nowadays item in hub sections.

<grid horizontalalignment="stretch" verticalalignment="stretch" holding="grid_holding"> <grid x:name="flyoutcontainer" background="transparent" flyoutbase.attachedflyout="{staticresource menuflyout}"/> </grid>

when i'm holding item, show menu fly out. problem here when i'm holding item in main page, hub container still can scrolled when move pointer. how can disable scrolling of hub container?..

i have tried turn of scroll viewer of hub container below code it's fire when released pointer:

private void enablehubscrollviewer() { var viewer = findchild<scrollviewer>(parenthub, "scrollviewer"); viewer.horizontalscrollmode = scrollmode.disabled; this.updatelayout(); }

please help me solve problem..thanks

windows-store-apps windows-phone-8.1

No comments:

Post a Comment