Back to Devexpress

DefaultBarItemNames.NewFile Field

corelibraries-devexpress-dot-diagram-dot-core-dot-defaultbaritemnames-1022508c.md

latest2.2 KB
Original Source

DefaultBarItemNames.NewFile Field

Returns “bNewFile”. Corresponds to the New item of the ribbon application menu that closes the current diagram, asking to save unsaved changes and creating a new diagram.

Namespace : DevExpress.Diagram.Core

Assembly : DevExpress.Diagram.v25.2.Core.dll

NuGet Package : DevExpress.Diagram.Core

Declaration

csharp
public const string NewFile = "bNewFile"
vb
Public Const NewFile As String = "bNewFile"

Field Value

Type
String

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the NewFile field.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

wpf-diagram-mdi/CS/MainWindow.xaml#L71

xml
<dxr:ApplicationMenu>
    <dxb:BarButtonItem dxdiag:DiagramDesignerControl.BarItemName="{x:Static dxdiag:DefaultBarItemNames.NewFile}" Style="{StaticResource {dxdiagt:DesignerControlCommandsThemeKeys ResourceKey=NewFileCommandItemStyle}}" />
    <dxb:BarButtonItem dxdiag:DiagramDesignerControl.BarItemName="{x:Static dxdiag:DefaultBarItemNames.OpenFile}" Style="{StaticResource {dxdiagt:DesignerControlCommandsThemeKeys ResourceKey=OpenFileCommandItemStyle}}" />

See Also

DefaultBarItemNames Class

DefaultBarItemNames Members

DevExpress.Diagram.Core Namespace