从导航框架访问主页上的公共对象 [英] Access to a public object on a mainpage from a navigation frame

查看:70
本文介绍了从导航框架访问主页上的公共对象的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好!

我在主页的代码背后有一个名为用户"的对象,该对象显示是否有人在该网页上进行了注册. silverlight应用程序的结构是:主页和内部的navigation:frame.我想从导航框架访问公共对象用户".导航框架是xaml导航:页面.

我该如何从背后的代码中做到这一点?

nk! :omg:

Hi there!

I have an object called "user" on the codebehind of a mainpage that shows if is anyone signed up on the webpage. The structure of the silverlight app is: a mainpage and a navigation:frame inside. I want to access to public object "user" from the navigation frame. the navigation frame is a xaml navigation:page.

How can i do it from the codebehind?

thnks! :omg:

推荐答案

使用silverlight导航框架
Use silverlight navigation framework


我们能做的最好的就是在其他项目中使用WCF并将其添加为Silverlight项目中的服务参考.经过测试:)
The best we can do is use WCF in other project and add it as a service reference in our Silverlight project. Tested :)


这篇关于从导航框架访问主页上的公共对象的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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