问题描述
你好。
我是软件开发的新手。因此,我对XAML和C#如何协同工作感到困惑。我遇到的具体问题是向应用添加广告。我知道有两种方法。我可以使用XAML环境,从工具箱中拖放
Adcontrol对象,设置appid和Adunit ID等。此时,我如何从C#透视图与adcontrol进行交互,以便我可以使用adcontrol可能抛出的异常?
I am brand new to software development. Thus I am confused as to how XAML and C# work together. The specific problem I am having problem is adding advertising to an app. I understand that there are two ways. I can use the XAML environment, drag and drop an Adcontrol object from the toolbox, set appid and Adunit ID, etc. At this point, how do I interact with the adcontrol from the C# perspective so that I can work with exceptions that the adcontrol might throw?
我还可以使用Adcontrol adControl = new Adcontrol()在C#环境中添加adcontrol。但是从这里开始,我如何与XAML环境中的adcontrol进行交互,我可以在其中轻松设置其位置格式?
I can also add an adcontrol in the C# environment, using Adcontrol adControl = new Adcontrol(). But from here, how do I interact with the adcontrol in the XAML environment, where I can easily format its location?
感谢您的帮助!
btbam91
新手
推荐答案
这篇关于WP8:XAML和C#如何协同工作。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!