The One With

October 2010 - Posts

  • WPF Rich Edit Control and WPF Ribbon - Design Time Support (coming v2010 vol 2)

    Last week I mentioned that we have significantly improved how Rich Edit Control interacts with the Toolbar/Menu System and the Ribbon Control. What I did not mention is the design time enhancements for the WPF Rich Edit Control Smile 

    So here we go… a word processing app. in WPF in under a minute Smile

    WPF Rich Edit Control & WPF Ribbon Design Time Integration

    Cheers,

    Azret

  • WPF Rich Edit Control and WPF Ribbon (coming in v2010 vol 2)

    For the v2010 vol 2 release, we have tremendously improved how the Rich Edit Control interacts with our Toolbar-Menu System.

    Watch how to create a Ribbon based text editor in just under one minute in WinForms.

    WinForms Text Editor in under a minute

    These improvements carried over to the new WPF Rich Edit control as well.

    WPF Rich Edit Control and WPF Ribbon

    To associate Ribbon items with the Rich Edit Control, all you have to do is bind them to the corresponding editor commands and they will automatically behave correctly. Even the UI attributes such as Icons and Captions will be generated for you automatically.

    Sample XAML:

     <dx:DXWindow.Resources>
            <ResourceDictionary>
                <dxre:RichEditUICommand x:Key="commands" />
            </ResourceDictionary>
     </dx:DXWindow.Resources>
    

     <Grid>
            <
    dxb:BarManager Name="barManager1" ToolbarGlyphSize="Small">
                <
    dxb:BarManager.Items>
                    <
    dxb:BarButtonItem
                       
    Command="{Binding Path=FileNew, Mode=OneTime, Source={StaticResource commands}}"
                       
    CommandParameter="{Binding ElementName=richEdit}"
                       
    Name="biFileNew"/>
                    <
    dxb:BarButtonItem
                       
    Command="{Binding Path=FileOpen, Mode=OneTime, Source={StaticResource commands}}"
                       
    CommandParameter="{Binding ElementName=richEdit}"
                       
    Name="biFileOpen"/>
                    <
    dxb:BarButtonItem
                       
    Command="{Binding Path=FileSaveAs, Mode=OneTime, Source={StaticResource commands}}"
                       
    CommandParameter="{Binding ElementName=richEdit}"
                       
    Name="biFileSaveAs"/>
                </
    dxb:BarManager.Items>
                <
    dx:DXDockPanel>
                    <
    dxr:RibbonControl dx:DXDockPanel.Dock="Top" x:Name="ribbonControl">
                        <
    dxr:RibbonDefaultPageCategory>
                            <
    dxr:RibbonPage Caption="File" Name="pageFile">
                                <
    dxr:RibbonPageGroup Caption="Common" Name="grpCommon">
                                    <
    dxb:BarButtonItemLink BarItemName="biFileNew" />
                                    <
    dxb:BarButtonItemLink BarItemName="biFileOpen" /> <dxb:BarButtonItemLink BarItemName="biFileSaveAs" />
                                </
    dxr:RibbonPageGroup>
                            </
    dxr:RibbonPage>
                        </
    dxr:RibbonDefaultPageCategory>
                    </
    dxr:RibbonControl>
                    <
    dxre:RichEditControl
                       
    x:Name="richEdit"
                       
    BarManager="{Binding ElementName=barManager1, Mode=OneTime}"></dxre:RichEditControl>
                </
    dx:DXDockPanel>
            </
    dxb:BarManager>
        </
    Grid>

    Notice that I did not have to assign icons and handle the item click events myself. All I had to do was bind my Ribbon items to a specific Rich Editor command and that’s it.

    <dxb:BarButtonItem 
        Command="{Binding Path=FileNew, Mode=OneTime, Source={StaticResource commands}}" 
        CommandParameter="{Binding ElementName=richEdit}" 
        Name="biFileNew"/>
    

    Pretty cool ah?

    Cheers

    Azret

  • Introduction to OData : Webinar Replay

    A replay of Introduction to OData webinar is now available on the DevExpress Channel.

    Introduction to OData

    The sample shown at the end can be downloaded from our Code Central OData + XtraScheduler Data Binding 

    The most important question, that was on everyone’s mind, was how to handle security. This has been explored by Alex James from the OData team.

    Cheers

    Azret

    PS: If you are interested in OData and would like to learn how to implement custom providers then come join me next time:

    26-Oct-2010 10:00 AM (GMT -07:00)

    Implementing Custom OData Providers
LIVE CHAT

Chat is one of the many ways you can contact members of the DevExpress Team.
We are available Monday-Friday between 7:30am and 4:30pm Pacific Time.

If you need additional product information, write to us at info@devexpress.com or call us at +1 (818) 844-3383

FOLLOW US

DevExpress engineers feature-complete Presentation Controls, IDE Productivity Tools, Business Application Frameworks, and Reporting Systems for Visual Studio, along with high-performance HTML JS Mobile Frameworks for developers targeting iOS, Android and Windows Phone. Whether using WPF, ASP.NET, WinForms, HTML5 or Windows 10, DevExpress tools help you build and deliver your best in the shortest time possible.

Copyright © 1998-2017 Developer Express Inc.
All trademarks or registered trademarks are property of their respective owners