object的引用 与 foreach的使用
摘要:一:object的引用是弱引用例如:现在有一个Class Model{public string name;}方法一:List<Model> ModelColl=new List<Model>(); Model _model=new Model();for(int i=0;i<5;i++){_model.name=i.ToString();ModelColl.Add(_model);}运行:ModelColl集合里面会保存的什么呢? 五个name="4,4,4,4,4"方法二:List<Model> ModelColl=new Li
阅读全文
posted @
2011-12-31 10:46
Games
阅读(2338)
推荐(0)
跳过一个页面转向
摘要:已知: Page1 Page2 Page3question: Page1——>Page2 then Page2——(跳过Page1)——>Page3 How???answer:Class Page1:PhoneApplicationPage{ private void NavigateMethod() { NavigationService.Navigate(new Uri("/Page2.xaml",Urikind.Relactive)); }}Class Page2:PhoneApplicationPage{ private void NavigateMet
阅读全文
posted @
2011-12-29 14:28
Games
阅读(229)
推荐(0)
Parseer Physics Engieen Of Joint
摘要:关于Farseer的使用链接:http://www.farseergames.com/storage/farseerphysics/Manual2.1.htm0. FixedDistanceJoint1. DistanceJoint 两个body的中心距离2.FixedRevoluteJoint3. RevoluteJoint 一个Dynamic body ,一个static body,4 FixedPrismaticJoint5. PrismaticJoint if we attached a dynamic body to a static body with a prismatic j.
阅读全文
posted @
2011-12-29 13:33
Games
阅读(285)
推荐(0)
Xna 学习笔记
摘要://设置游戏多长时间刷新一次 下面是千分之一秒刷新一次this.TargetElapsedTime = System.TimeSpan.FromSeconds(1.0f/1000.0f);//让游戏不按照固定时间间隔来刷新IsFixedTimeStep = false;
阅读全文
posted @
2011-12-22 14:06
Games
阅读(155)
推荐(0)
WriteableBitmap实现对图片的放大缩小
摘要:xaml:<ScrollViewer Name="ScrollViewerName" Background="Transparent" Width="480" Height="480" VerticalScrollBarVisibility="Auto" VerticalContentAlignment="Center" HorizontalScrollBarVisibility="Auto" HorizontalAlignment="Ce
阅读全文
posted @
2011-12-09 15:11
Games
阅读(2739)
推荐(0)