xaml - How to Clip content with rounded corners in Windows Store App -


i've attempted have <grid/> (with interactive stuff inside, not image) clipped rounded corners (a <border/> or <rectangle/>, whatever works).

i've attempted multiple solutions, none of them compatible windows store app.

no brush:

  • radialgradientbrush not supported in windows app project.
  • drawingbrush not supported in windows app project.
  • the type 'visualbrush' not found. verify not missing assembly reference , referenced assemblies have been built.

no mask:

  • the attachable property 'opacitymask' not found in type 'image'.
  • the attachable property 'opacitymask' not found in type 'stackpanel'.
  • the attachable property 'opacitymask' not found in type 'grid'.

no rounded geometry:

  • the property 'radiusx' not found in type 'rectanglegeometry'.
  • multibinding not supported in windows app project.

is technically impossible in c#/xaml windows store app?

have tried putting control inside border? set border's corner radius 150 , have round control. here's example button.

    <border borderbrush="black" borderthickness="1" horizontalalignment="center"  height="200" margin="0,0,0,0" verticalalignment="center" width="200" cornerradius="150">          <button x:name="btnplayback" content="play" horizontalalignment="center" height="200" margin="0,0,0,0" verticalalignment="center" width=" 200" borderthickness="0"  click="btnplayback_click_1"/>      </border> 

Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -