WPF Tips & Tricks (January – February 2021)

WPF Team Blog
08 March 2021

We hope you are all doing well. Thanks for your continued support and for choosing our WPF UI product line.

If you’d like more information on the tips & tricks listed below, please submit a comment or create a new support ticket.

TIPS

TRICKS

TICKETS

WPF Data Grid

WPF Ribbon

  • How to open modules in separate windows when MIF is used (T971967)

    To open a separate window within a module, use the UIWindowRegion class. Add it to the Application.Resources collection in the App.xaml file:

    
    <Application ... 
                 xmlns:dxmvvm="http://schemas.devexpress.com/winfx/2008/xaml/mvvm" 
                 xmlns:dx="http://schemas.devexpress.com/winfx/2008/xaml/core">
        <Application.Resources> 
            <dxmvvm:UIWindowRegion x:Key="WindowsService" RegionName="Windows">
                <dxmvvm:UIWindowRegion.WindowFactory> 
                    <DataTemplate> 
                        <dx:ThemedWindow Width="1000" Height="600" Title="Some info"/>
                    </DataTemplate>
                </dxmvvm:UIWindowRegion.WindowFactory>
            </dxmvvm:UIWindowRegion>
        </Application.Resources> 
    </Application> 
    
    
    Manager.Register("Windows",
        new Module(AppModules.Module1, () => ModuleViewModel.Create("Module1"), typeof(ModuleView))); 
    
    public void Test(){
        ModuleManager.DefaultManager.InjectOrNavigate("Windows", DXApplication34.Common.Modules.Module1);
    } 
    

WPF Editors

WPF Property Grid

WPF Scheduler

WPF Charting

Other controls

Free DevExpress Products - Get Your Copy Today

The following free DevExpress product offers remain available. Should you have any questions about the free offers below, please submit a ticket via the DevExpress Support Center at your convenience. We'll be happy to follow-up.
No Comments

Please login or register to post comments.