开发者

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

开发者 https://www.devze.com 2023-04-10 13:45 出处:网络
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:

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

精彩评论

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