Quantcast
Channel: Developer Express Inc.
Viewing all articles
Browse latest Browse all 2370

WPF Tips & Tricks (January – February 2021)

$
0
0

We hope you are all doing well. Thanks for your continued support and for choosing our WPF 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


Viewing all articles
Browse latest Browse all 2370

Trending Articles