Silverlight - 嵌套在表中的 Lync 应用程序
我对 Silverlight 和 Lync-SDK 非常陌生。对于初学者提出的问题,我感到非常抱歉。 很久以前,我编写了一个基于 php 的小 Web 应用程序,用于从 sql 数据库中读取联系人。
现在,客户扩大了他的视野并安装了 Lync。现在,他想要 Web 应用程序中的小 Lync-Status-Square 来实现单击呼叫功能。
我稍微玩了一下lync的SDK。
出现以下问题。 Lync 的方块嵌套在我的桌子的 td 中。但 Lync-Silverlight-Applet 需要动态空间来实现悬停效果或单击。但在我的桌子上,我没有空间,特别是动态空间。
因此,我关闭所有悬停和单击功能,并将以下按钮单独放置在 StackPanel 中。
- PresenceIndicator
- StartInstanceMessagingButton
- StartAudiCallButton
- SendEmailButton
其中两个都可以。
单击 IM 按钮,Lync 客户端会在 IM 模式下打开右侧的联系人,我可以直接键入消息。完美的!
单击邮件图标,邮件客户端将打开,完美。
PresenceIndicator 仅显示颜色,而不是确切的状态,当颜色为黄色时,这是一个问题。我可以在 TextBlock 中显示状态,但我更喜欢将鼠标悬停在图标上时出现标签。
但我的主要问题是 StartAudioCallButton。该图标是一个下拉图标。而且我没有下拉菜单的空间。如果这个图标具有与 IM 按钮相同的行为,我会非常高兴。 Lync 客户端将在呼叫模式中打开,我可以选择要使用的主叫号码。这可能吗?
感谢您抽出时间! 坦率
I'm very new in Silverlight and the Lync-SDK. So sorry for the question from a beginner.
Long time ago, i wrote al little web application, based on php for reading out contacts from a sql database.
Now the customer expand his envoirement and place Lync. Now he want the little Lync-Status-Square in the webapplication for click to call features.
I playing a little bit with the SDK of lync.
The following problem comes up. The square of Lync is nested in a td of my table. But the Lync-Silverlight-Applet need dynamical space for hover effects or single clicks. But in my table, i have no space, specially dynamic space.
So i switch off all hover and click functionality and place the follwing buttons in the StackPanel separate.
- PresenceIndicator
- StartInstanceMessagingButton
- StartAudiCallButton
- SendEmailButton
Two of them are fine.
Clicking on the IM-Button, The Lync Client opens the right Contact in IM-Mode and i can directly type a message. Perfect!
Clicking on the Mail-Icon, an Mail-Client will open, perfect.
The PresenceIndicator just display the color, not the exactly state, thats a problem, when the color is yellow. I can display the state in a TextBlock, but i prefer a label appears while hovering over the icon.
But my mainproblem is the StartAudioCallButton. This Icon is an dropDown-Icon. And i have no space for dropdowns. I would be so nice if this icon has the same behavoior like the IM-Button. The Lync Client will open in Call Modus and i can select, which callernumber i will use. Is that possible?
Thank you for Your time!
Frank
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您在使用标准 Lync SilverLight 控件的布局时遇到问题,那么最好的办法是针对您遇到困难的功能实现您自己的 SilverLight 控件。
用户控件的创建非常简单,如果您不熟悉该过程,有很多关于如何开始的教程。
Lync SDK 有一些很棒的演练,可帮助您启动并运行 < a href="http://msdn.microsoft.com/en-us/library/gg437053.aspx" rel="nofollow">登录 Lync 和拨打音频呼叫
我不知道有什么方法可以按照您的建议让 Lync 在呼叫模式下打开,但是如果您的屏幕空间有限,也许您可以让自定义 StartAudioCallButton 打开一个包含电话号码的弹出窗口?
If you're having trouble with the layout of the standard Lync SilverLight controls, then the best thing to do is implement your own SilverLight controls for the function you're having difficulty with.
User Controls are really simple to create, there are plenty of tutorials on how to get started if you're not familiar with the process.
The Lync SDK has some great walkthroughs to get you up and running with signing in to Lync and placing an audio call
I don't know of any way to get Lync to open in a Call Mode as you suggested, but if you're limited with screen space, maybe you could have your custom StartAudioCallButton open a popup with the phone numbers in?