开发者

silverlight oob without window

开发者 https://www.devze.com 2023-01-08 14:15 出处:网络
Can i do a silverlight app without window?? I need somthing like a top bar (Always On Top) of windows rem开发者_运维知识库ote desktop.

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

精彩评论

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