简体   繁体   English

我不想要带有Caliburn.Micro的WPF中的usercontrol标题栏

[英]I dont want title bar of usercontrol in WPF with Caliburn.Micro

I need to open a Screen named EditItemTypeView with codes: 我需要使用代码打开一个名为EditItemTypeView的屏幕:

    public void EditItemType(DAL.ItemTypeDto itemType)
    {
        EditItemTypeViewModel viewModel = new EditItemTypeViewModel(itemType);
        new WindowManager().ShowDialog(viewModel);
    }

The dialog shows with a title bar. 对话框显示标题栏。

enter image description here 在此处输入图片说明

I dont need this and what should I do? 我不需要这个,该怎么办? The target is to show a dialog (keep top) and is there any other solution on this? 目标是显示一个对话框(保持顶部),对此还有其他解决方案吗?

var settings = IDictionary (); var settings = IDictionary(); you can pass in the necessary items to rid your title bar reference the WindowStyle, ShowDialog(viewmodel, settings); 您可以传递必要的项目以摆脱标题栏,并引用WindowStyle,ShowDialog(视图模型,设置);

settings.Add("WindowStyle", WindowStyle.ToolWindow);

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM