开发者

silverlight oob without window

Can i do a silverlight app without window??

I need somthing like a top bar (Always On Top) of windows rem开发者_运维知识库ote desktop.

Any Chances???


Silverlight 4, within a trusted out of browser application, supports showing a window as always on top, and customizing the window's chrome (with some limitations).

void MainPage_Loaded(object sender, RoutedEventArgs e)
{
    if (App.Current.HasElevatedPermissions && && Application.Current.IsRunningOutOfBrowser)
    {
        Dispatcher.BeginInvoke(() =>
        {
            App.Current.Host.Content.TopMost = true;
        });
    }
}

In the out of browser settings (Project Properties/Silverlight/Out of Browser Settings...), select the option that you want, maybe Borderless Round Corners for example.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜