Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion Readme.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<!-- default badges list -->
![](https://img.shields.io/endpoint?url=https://codecentral.devexpress.com/api/v1/VersionRange/128643029/11.2.8%2B)
[![](https://img.shields.io/badge/Open_in_DevExpress_Support_Center-FF7200?style=flat-square&logo=DevExpress&logoColor=white)](https://supportcenter.devexpress.com/ticket/details/E20026)
[![](https://img.shields.io/badge/📖_How_to_use_DevExpress_Examples-e9f6fc?style=flat-square)](https://docs.devexpress.com/GeneralInformation/403183)
<!-- default badges end -->
Expand Down
2 changes: 1 addition & 1 deletion VB/Application.xaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<Application x:Class="WpfApplication.App"
<Application x:Class="WpfApplication.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:View="clr-namespace:WpfApplication.View"
Expand Down
4 changes: 2 additions & 2 deletions VB/Application.xaml.vb
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
Imports Microsoft.VisualBasic
Imports System
Imports System
Imports System.Collections.Generic
Imports System.Configuration
Imports System.Data
Expand All @@ -12,5 +11,6 @@ Namespace WpfApplication
''' </summary>
Partial Public Class App
Inherits Application

End Class
End Namespace
11 changes: 4 additions & 7 deletions VB/Helpers/GlyphHelper.vb
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
Imports Microsoft.VisualBasic
Imports System
Imports System
Imports System.Collections.Generic
Imports System.Linq
Imports System.Windows.Media.Imaging

Namespace WpfApplication
Friend NotInheritable Class GlyphHelper
Private Sub New()
End Sub
Public Shared Function GetGlyph(ByVal path As String) As BitmapImage
Friend Module GlyphHelper
Public Function GetGlyph(ByVal path As String) As BitmapImage
Return New BitmapImage(DevExpress.Utils.AssemblyHelper.GetResourceUri(GetType(GlyphHelper).Assembly, path))
End Function
End Class
End Module
End Namespace
2 changes: 1 addition & 1 deletion VB/MainWindow.xaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<Window x:Class="WpfApplication.MainWindow"
<Window x:Class="WpfApplication.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-namespace:WpfApplication"
Expand Down
4 changes: 2 additions & 2 deletions VB/MainWindow.xaml.vb
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
Imports Microsoft.VisualBasic
Imports System
Imports System
Imports System.Collections.Generic
Imports System.Linq
Imports System.Text
Expand All @@ -21,6 +20,7 @@ Namespace WpfApplication
''' </summary>
Partial Public Class MainWindow
Inherits Window

Public Sub New()
InitializeComponent()
End Sub
Expand Down
7 changes: 1 addition & 6 deletions VB/My Project/AssemblyInfo.vb
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
Imports Microsoft.VisualBasic
Imports System.Reflection
Imports System.Reflection
Imports System.Resources
Imports System.Runtime.CompilerServices
Imports System.Runtime.InteropServices
Expand Down Expand Up @@ -32,10 +31,6 @@ Imports System.Windows
'[assembly: NeutralResourcesLanguage("en-US", UltimateResourceFallbackLocation.Satellite)]


'(used if a resource is not found in the page,
' or application resource dictionaries)
'(used if a resource is not found in the page,
' app, or any theme specific resource dictionaries)
<Assembly: ThemeInfo(ResourceDictionaryLocation.None, ResourceDictionaryLocation.SourceAssembly)>


Expand Down
34 changes: 17 additions & 17 deletions VB/My Project/Resources.Designer.vb

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 3 additions & 5 deletions VB/My Project/Settings.Designer.vb

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion VB/View/DocumentView.xaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<UserControl x:Class="WpfApplication.View.DocumentView"
<UserControl x:Class="WpfApplication.View.DocumentView"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
Expand Down
4 changes: 2 additions & 2 deletions VB/View/DocumentView.xaml.vb
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
Imports Microsoft.VisualBasic
Imports System
Imports System
Imports System.Collections.Generic
Imports System.Linq
Imports System.Text
Expand All @@ -19,6 +18,7 @@ Namespace WpfApplication.View
''' </summary>
Partial Public Class DocumentView
Inherits UserControl

Public Sub New()
InitializeComponent()
End Sub
Expand Down
2 changes: 1 addition & 1 deletion VB/View/PanelView.xaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<UserControl x:Class="WpfApplication.View.PanelView"
<UserControl x:Class="WpfApplication.View.PanelView"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
Expand Down
4 changes: 2 additions & 2 deletions VB/View/PanelView.xaml.vb
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
Imports Microsoft.VisualBasic
Imports System
Imports System
Imports System.Collections.Generic
Imports System.Linq
Imports System.Text
Expand All @@ -19,6 +18,7 @@ Namespace WpfApplication.View
''' </summary>
Partial Public Class PanelView
Inherits UserControl

Public Sub New()
InitializeComponent()
End Sub
Expand Down
48 changes: 11 additions & 37 deletions VB/ViewModel/DocumentViewModel.vb
Original file line number Diff line number Diff line change
@@ -1,63 +1,37 @@
Imports Microsoft.VisualBasic
Imports System
Imports System
Imports System.Collections.Generic
Imports System.Linq
Imports DevExpress.Xpf.Docking

Namespace WpfApplication
Public Class DocumentViewModel
Implements IMVVMDockingProperties
Inherits IMVVMDockingProperties


Public Sub New(ByVal caption As String, ByVal imagePath As String)
Caption = caption
Me.Caption = caption
Glyph = GlyphHelper.GetGlyph(imagePath)
Text = String.Format("Document text ({0})", caption)
End Sub

Private Property TargetName() As String Implements IMVVMDockingProperties.TargetName
Get
Return "DocumentsGroup"
End Get
Set(ByVal value As String)
Throw New NotImplementedException()
End Set

End Property




Private privateCaption As String
Public Property Caption() As String
Private Property IMVVMDockingProperties_TargetName() As String Implements IMVVMDockingProperties.TargetName
Get
Return privateCaption
Return "DocumentsGroup"
End Get
Set(ByVal value As String)
privateCaption = value
Throw New NotImplementedException()
End Set

End Property


Private privateGlyph As Object

Public Property Caption() As String


Public Property Glyph() As Object
Get
Return privateGlyph
End Get
Set(ByVal value As Object)
privateGlyph = value
End Set
End Property

Private privateText As String
Public Property Text() As String
Get
Return privateText
End Get
Set(ByVal value As String)
privateText = value
End Set
End Property


End Class
Expand Down
3 changes: 1 addition & 2 deletions VB/ViewModel/MainViewModel.vb
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
Imports Microsoft.VisualBasic
Imports System
Imports System
Imports System.Collections.Generic
Imports System.Linq
Imports System.Collections.ObjectModel
Expand Down
7 changes: 3 additions & 4 deletions VB/ViewModel/PanelViewModel.vb
Original file line number Diff line number Diff line change
@@ -1,19 +1,18 @@
Imports Microsoft.VisualBasic
Imports System
Imports System
Imports System.Collections.Generic
Imports System.Linq
Imports DevExpress.Xpf.Docking
Imports System.Windows.Media

Namespace WpfApplication
Public Class PanelViewModel
Implements IMVVMDockingProperties
Inherits IMVVMDockingProperties

Public Sub New(ByVal c As Color)
_Color = New SolidColorBrush(c)
End Sub

Private Property TargetName() As String Implements IMVVMDockingProperties.TargetName
Private Property IMVVMDockingProperties_TargetName() As String Implements IMVVMDockingProperties.TargetName
Get
Return "DockPanels"
End Get
Expand Down
2 changes: 1 addition & 1 deletion VB/WpfApplication.Net5.sln
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Microsoft Visual Studio Solution File, Format Version 12.00
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 16
VisualStudioVersion = 12.0.30501.0
MinimumVisualStudioVersion = 10.0.40219.1
Expand Down
5 changes: 5 additions & 0 deletions VB/WpfApplication.Net5.vbproj
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net5.0-windows</TargetFramework>
Expand All @@ -12,6 +13,10 @@
<Platforms>x86;AnyCPU</Platforms>
<CopyLocalLockFileAssemblies>false</CopyLocalLockFileAssemblies>
<DefaultItemExcludes>obj*/**</DefaultItemExcludes>
<OptionExplicit>On</OptionExplicit>
<OptionCompare>Binary</OptionCompare>
<OptionStrict>Off</OptionStrict>
<OptionInfer>On</OptionInfer>
</PropertyGroup>
<ItemGroup>
<AppDesigner Include="My Project\" />
Expand Down
2 changes: 1 addition & 1 deletion VB/WpfApplication.sln
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Microsoft Visual Studio Solution File, Format Version 12.00
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 2012
VisualStudioVersion = 12.0.30501.0
MinimumVisualStudioVersion = 10.0.40219.1
Expand Down
Loading