c# - Designing according to various resolution in windows8 -



c# - Designing according to various resolution in windows8 -

in metro application want design pages satisfy resolutions. used viewbox command , set height=768 , width=1366 command within viewbox.in case design satisfied resolution except 1024*768 , 1280*800. how can design pages satisfy every resolution.please help me?

hi heres code piece solve ur issue.

//add event listner on size changed window.current.sizechanged += current_sizechanged;

here's code within event listener or other custom method height , width , stuff :

var height = window.current.bounds.height; var width = window.current.bounds.width;

this give height , width of app. (i write app here because metro can run in snapped mode) ... according can manipulations controls.

c# windows-8 microsoft-metro windows-runtime winrt-xaml

Comments

Popular posts from this blog

javascript - mongodb won't find my schema method in nested container -

Hibernate criteria by a list of natural ids -

ios - Lagging ScrollView with UIWebview inside -