LanPst
LanPst

Reputation: 11

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

I need to open a Screen named EditItemTypeView with codes:

    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?

Upvotes: 1

Views: 592

Answers (1)

mvermef
mvermef

Reputation: 3914

var settings = IDictionary (); you can pass in the necessary items to rid your title bar reference the WindowStyle, ShowDialog(viewmodel, settings);

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

Upvotes: 1

Related Questions