Skip to content
Merged
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
24 changes: 24 additions & 0 deletions VB/DXSample.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16
VisualStudioVersion = 16.0.30717.126
MinimumVisualStudioVersion = 10.0.40219.1
Project("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "DXSample", "DXSample\DXSample.vbproj", "{00C97825-9B02-4739-AEFB-544577EC448C}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{00C97825-9B02-4739-AEFB-544577EC448C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{00C97825-9B02-4739-AEFB-544577EC448C}.Debug|Any CPU.Build.0 = Debug|Any CPU
{00C97825-9B02-4739-AEFB-544577EC448C}.Release|Any CPU.ActiveCfg = Release|Any CPU
{00C97825-9B02-4739-AEFB-544577EC448C}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {E4EC9373-B0EC-4A38-B040-66662796BF8F}
EndGlobalSection
EndGlobal
15 changes: 15 additions & 0 deletions VB/DXSample/App.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<configSections>
<sectionGroup name="userSettings" type="System.Configuration.UserSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<section name="DXThemeManager" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowExeDefinition="MachineToLocalUser" requirePermission="false" />
</sectionGroup>
</configSections>
<userSettings>
<DXThemeManager>
<setting name="ApplicationThemeName" serializeAs="String">
<value>Office2019Colorful</value>
</setting>
</DXThemeManager>
</userSettings>
</configuration>
8 changes: 8 additions & 0 deletions VB/DXSample/Application.xaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<Application x:Class="DXSample.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
StartupUri="MainWindow.xaml">
<Application.Resources>

</Application.Resources>
</Application>
13 changes: 13 additions & 0 deletions VB/DXSample/Application.xaml.vb
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Imports System
Imports System.Linq
Imports System.Windows

Namespace DXSample
''' <summary>
''' Interaction logic for App.xaml
''' </summary>
Partial Public Class App
Inherits Application

End Class
End Namespace
29 changes: 29 additions & 0 deletions VB/DXSample/Common/LayoutAdapter.vb
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
Imports System
Imports System.Linq
Imports DevExpress.Xpf.Docking
Imports DXSample.ViewModels

Namespace DXSample.Common

Public Class LayoutAdapter
Implements ILayoutAdapter

Public Function Resolve(ByVal owner As DockLayoutManager, ByVal item As Object) As String
Dim tempVar As Boolean = TypeOf item Is PanelViewModel
Dim panelViewModel As PanelViewModel = If(tempVar, CType(item, PanelViewModel), Nothing)
If tempVar Then
Select Case panelViewModel.State
Case State.Float
Dim floatGroup As New FloatGroup() With {.Name = $"floatGroup{owner.FloatGroups.Count}"}
owner.FloatGroups.Add(floatGroup)
Return floatGroup.Name
Case State.Regular
Return "documentGroup"
Case Else
Return panelViewModel.ParentName
End Select
End If
Return String.Empty
End Function
End Class
End Namespace
174 changes: 174 additions & 0 deletions VB/DXSample/DXSample.vbproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,174 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">x86</Platform>
<ProductVersion>8.0.30703</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{00C97825-9B02-4739-AEFB-544577EC448C}</ProjectGuid>
<OutputType>WinExe</OutputType>
<RootNamespace></RootNamespace>
<AssemblyName>DXSample</AssemblyName>
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<ProjectTypeGuids>{60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{F184B08F-C81C-45F6-A57F-5ABD9991F28F}</ProjectTypeGuids>
<OptionExplicit>On</OptionExplicit>
<OptionCompare>Binary</OptionCompare>
<OptionStrict>Off</OptionStrict>
<OptionInfer>On</OptionInfer>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineDebug>true</DefineDebug>
<DefineTrace>true</DefineTrace>
<ErrorReport>prompt</ErrorReport>
<RemoveIntegerChecks>true</RemoveIntegerChecks>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineDebug>false</DefineDebug>
<DefineTrace>true</DefineTrace>
<ErrorReport>prompt</ErrorReport>
<RemoveIntegerChecks>true</RemoveIntegerChecks>
</PropertyGroup>
<ItemGroup>
<Import Include="Microsoft.VisualBasic" />
<Import Include="System" />
<Import Include="System.Collections" />
<Import Include="System.Collections.Generic" />
<Import Include="System.Diagnostics" />
<Import Include="System.Linq" />
<Import Include="System.Xml.Linq" />
<Import Include="System.Threading.Tasks" />
<Import Include="System.Data" />
<Import Include="System.Windows" />
<Import Include="System.Windows.Controls" />
<Import Include="System.Windows.Data" />
<Import Include="System.Windows.Documents" />
<Import Include="System.Windows.Input" />
<Import Include="System.Windows.Media" />
<Import Include="System.Windows.Media.Imaging" />
<Import Include="System.Windows.Navigation" />
<Import Include="System.Windows.Shapes" />
</ItemGroup>
<ItemGroup>
<Reference Include="DevExpress.Mvvm.v20.2">
<Private>True</Private>
<HintPath>C:\DXDlls\20.2.4\DevExpress.Mvvm.v20.2.dll</HintPath>
</Reference>
<Reference Include="DevExpress.Data.Desktop.v20.2">
<Private>True</Private>
<HintPath>C:\DXDlls\20.2.4\DevExpress.Data.Desktop.v20.2.dll</HintPath>
</Reference>
<Reference Include="DevExpress.Data.v20.2">
<Private>True</Private>
<HintPath>C:\DXDlls\20.2.4\DevExpress.Data.v20.2.dll</HintPath>
</Reference>
<Reference Include="DevExpress.Printing.v20.2.Core">
<Private>True</Private>
<HintPath>C:\DXDlls\20.2.4\DevExpress.Printing.v20.2.Core.dll</HintPath>
</Reference>
<Reference Include="DevExpress.Xpf.Core.v20.2">
<Private>True</Private>
<HintPath>C:\DXDlls\20.2.4\DevExpress.Xpf.Core.v20.2.dll</HintPath>
</Reference>
<Reference Include="DevExpress.Xpf.Docking.v20.2, Version=20.2.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<Private>True</Private>
<HintPath>C:\DXDlls\20.2.4\DevExpress.Xpf.Docking.v20.2.dll</HintPath>
</Reference>
<Reference Include="DevExpress.Xpf.Layout.v20.2.Core, Version=20.2.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<Private>True</Private>
<HintPath>C:\DXDlls\20.2.4\DevExpress.Xpf.Layout.v20.2.Core.dll</HintPath>
</Reference>
<Reference Include="DevExpress.Xpf.Themes.Office2019Colorful.v20.2">
<Private>True</Private>
<HintPath>C:\DXDlls\20.2.4\DevExpress.Xpf.Themes.Office2019Colorful.v20.2.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Data" />
<Reference Include="System.Xml" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="System.Xaml">
<RequiredTargetFramework>4.0</RequiredTargetFramework>
</Reference>
<Reference Include="WindowsBase" />
<Reference Include="PresentationCore" />
<Reference Include="PresentationFramework" />
</ItemGroup>
<ItemGroup>
<ApplicationDefinition Include="Application.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</ApplicationDefinition>
<Page Include="MainWindow.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<Compile Include="Application.xaml.vb">
<DependentUpon>Application.xaml</DependentUpon>
<SubType>Code</SubType>
</Compile>
<Compile Include="Common\LayoutAdapter.vb" />
<Compile Include="MainWindow.xaml.vb">
<DependentUpon>MainWindow.xaml</DependentUpon>
<SubType>Code</SubType>
</Compile>
<Compile Include="ViewModels\MainViewModel.vb" />
<Compile Include="Views\MainView.xaml.vb">
<DependentUpon>MainView.xaml</DependentUpon>
<SubType>Code</SubType>
</Compile>
<Page Include="Views\MainView.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
</ItemGroup>
<ItemGroup>
<Compile Include="My Project\AssemblyInfo.vb">
<SubType>Code</SubType>
</Compile>
<Compile Include="My Project\Resources.Designer.vb">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>Resources.resx</DependentUpon>
</Compile>
<Compile Include="My Project\Settings.Designer.vb">
<AutoGen>True</AutoGen>
<DependentUpon>Settings.settings</DependentUpon>
<DesignTimeSharedInput>True</DesignTimeSharedInput>
</Compile>
<EmbeddedResource Include="My Project\Resources.resx">
<Generator>VbMyResourcesResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.vb</LastGenOutput>
<CustomToolNamespace>My.Resources</CustomToolNamespace>
</EmbeddedResource>
<None Include="App.config" />
<None Include="My Project\Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator>
<LastGenOutput>Settings.Designer.vb</LastGenOutput>
<CustomToolNamespace>My</CustomToolNamespace>
</None>
<AppDesigner Include="My Project\" />
</ItemGroup>
<ItemGroup />
<Import Project="$(MSBuildToolsPath)\Microsoft.VisualBasic.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
</Project>
11 changes: 11 additions & 0 deletions VB/DXSample/MainWindow.xaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<dx:ThemedWindow
x:Class="DXSample.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:dx="http://schemas.devexpress.com/winfx/2008/xaml/core"
xmlns:Views="clr-namespace:DXSample.Views"
Title="MainWindow" Height="800" Width="1000">
<Grid>
<Views:MainView/>
</Grid>
</dx:ThemedWindow>
13 changes: 13 additions & 0 deletions VB/DXSample/MainWindow.xaml.vb
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Imports System
Imports System.Linq
Imports DevExpress.Xpf.Core

Namespace DXSample
Partial Public Class MainWindow
Inherits ThemedWindow

Public Sub New()
InitializeComponent()
End Sub
End Class
End Namespace
40 changes: 40 additions & 0 deletions VB/DXSample/My Project/AssemblyInfo.vb
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
Imports System.Reflection
Imports System.Resources
Imports System.Runtime.CompilerServices
Imports System.Runtime.InteropServices
Imports System.Windows
' General Information about an assembly is controlled through the following
' set of attributes. Change these attribute values to modify the information
' associated with an assembly.
<Assembly: AssemblyTitle("DXSample")>
<Assembly: AssemblyDescription("")>
<Assembly: AssemblyConfiguration("")>
<Assembly: AssemblyCompany("")>
<Assembly: AssemblyProduct("DXSample")>
<Assembly: AssemblyCopyright("Copyright © 2020")>
<Assembly: AssemblyTrademark("")>
<Assembly: AssemblyCulture("")>
' Setting ComVisible to false makes the types in this assembly not visible
' to COM components. If you need to access a type in this assembly from
' COM, set the ComVisible attribute to true on that type.
<Assembly: ComVisible(False)>
'In order to begin building localizable applications, set
'<UICulture>CultureYouAreCodingWith</UICulture> in your .csproj file
'inside a <PropertyGroup>. For example, if you are using US english
'in your source files, set the <UICulture> to en-US. Then uncomment
'the NeutralResourceLanguage attribute below. Update the "en-US" in
'the line below to match the UICulture setting in the project file.
'[assembly: NeutralResourcesLanguage("en-US", UltimateResourceFallbackLocation.Satellite)]
<Assembly: ThemeInfo(ResourceDictionaryLocation.None, ResourceDictionaryLocation.SourceAssembly)>
' Version information for an assembly consists of the following four values:
'
' Major Version
' Minor Version
' Build Number
' Revision
'
' You can specify all the values or you can default the Build and Revision Numbers
' by using the '*' as shown below:
' [assembly: AssemblyVersion("1.0.*")]
<Assembly: AssemblyVersion("1.0.0.0")>
<Assembly: AssemblyFileVersion("1.0.0.0")>
Loading