银色光页面加载事件 [英] Silver light page load event

查看:82
本文介绍了银色光页面加载事件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是我的问题!
我是Silverlight的新手,但没有在Silverlight和IsPostback中看到Page_Load事件.我想在页面加载时绑定下拉列表和网格,如何在Silverlight中进行操作.

here is my problem!
I am new to Silverlight and I didn''t see the Page_Load event in the Silverlight, and IsPostback. I want to bind the dropdown and grids while page is load how can I do in Silverlight.

推荐答案

您需要先阅读有关Silverlight的知识,然后才能直接跳转至代码.
没有页面加载或IsPostback.查找XAML页面(App.xaml)

在此处阅读有关Silverlight的基础知识: Silverlight简介 [ Silverlight的Google搜索结果 [
You need to read about Silverlight before jumping directly to code for it.
There is no pageload or IsPostback in it. Look for XAML pages (App.xaml)

Read about basics of Silverlight here: An Introduction to Silverlight[^]

For examples and samples look here: Google result for Silverlight[^]

Try!


Silverlight中没有IsPostback.
您可以在设计时或在运行时(对于控件)进行绑定.您可以使用Load方法进行控制.
There is no IsPostback in Silverlight.
You can do binding at design or at runtime (for controls). You have a control on Load method that you can use to do this.


默认情况下看不到.

在RootLayout中添加加载事件

< grid x:name ="LayoutRoot" loading ="LayoutRoot_Loaded" mode ="hold" xmlns:x =#unknown">
现在您可以在代码窗口中打开LayoutRoot_Loaded事件...

森提尔,
www.senthil.name
You can''t see by default.

Add the load event in RootLayout

<grid x:name="LayoutRoot" loaded="LayoutRoot_Loaded" mode="hold" xmlns:x="#unknown">
Now you can the event LayoutRoot_Loaded in code window...

Senthil,
www.senthil.name


这篇关于银色光页面加载事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆