开发者

Windows Phone 7 Add PivotItem to Pivot with code in real time, how?

How can I add Pivot Items in runtim开发者_Go百科e, and add some content to it?


You can create PivotItems at runtime just like you would create any UIelement. For example like this:

PivotItem pitem = new PivotItem(); //create pivotitem                
pitem.Content =  //set pivotitem content
MyPivot.Items.Add(pitem);//Add pivotitem to your pivot
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜