diff --git a/CODEOWNERS b/CODEOWNERS new file mode 100644 index 0000000..a88e69e --- /dev/null +++ b/CODEOWNERS @@ -0,0 +1 @@ +* @DevExpressExampleBot \ No newline at end of file diff --git a/Readme.md b/Readme.md index 0970027..e850a6a 100644 --- a/Readme.md +++ b/Readme.md @@ -1,5 +1,4 @@ -![](https://img.shields.io/endpoint?url=https://codecentral.devexpress.com/api/v1/VersionRange/188043416/19.1.3%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/T828697) [![](https://img.shields.io/badge/📖_How_to_use_DevExpress_Examples-e9f6fc?style=flat-square)](https://docs.devexpress.com/GeneralInformation/403183) [![](https://img.shields.io/badge/💬_Leave_Feedback-feecdd?style=flat-square)](#does-this-example-address-your-development-requirementsobjectives) @@ -25,7 +24,7 @@ Use [bar customization actions](https://docs.devexpress.com/WPF/7045/controls-an ## Does this example address your development requirements/objectives? -[](https://www.devexpress.com/support/examples/survey.xml?utm_source=github&utm_campaign=how-to-customize-pdf-viewer-bar-manager&~~~was_helpful=yes) [](https://www.devexpress.com/support/examples/survey.xml?utm_source=github&utm_campaign=how-to-customize-pdf-viewer-bar-manager&~~~was_helpful=no) +[](https://www.devexpress.com/support/examples/survey.xml?utm_source=github&utm_campaign=wpf-pdf-viewer-customize-bar-manager&~~~was_helpful=yes) [](https://www.devexpress.com/support/examples/survey.xml?utm_source=github&utm_campaign=wpf-pdf-viewer-customize-bar-manager&~~~was_helpful=no) (you will be redirected to DevExpress.com to submit your response) diff --git a/VB/App.xaml b/VB/App.xaml new file mode 100644 index 0000000..6bd9b06 --- /dev/null +++ b/VB/App.xaml @@ -0,0 +1,9 @@ + + + + + diff --git a/VB/App.xaml.vb b/VB/App.xaml.vb new file mode 100644 index 0000000..43f7bf9 --- /dev/null +++ b/VB/App.xaml.vb @@ -0,0 +1,13 @@ +Imports System.Linq +Imports System.Threading.Tasks + +Namespace WpfApp1 + + ''' + ''' Interaction logic for App.xaml + ''' + Public Partial Class App + Inherits Application + + End Class +End Namespace diff --git a/VB/Demo.pdf b/VB/Demo.pdf index f8c3ef8..b6c2bca 100644 Binary files a/VB/Demo.pdf and b/VB/Demo.pdf differ diff --git a/VB/MainWindow.xaml.vb b/VB/MainWindow.xaml.vb index 99b0ca4..e6f1e8b 100644 --- a/VB/MainWindow.xaml.vb +++ b/VB/MainWindow.xaml.vb @@ -1,9 +1,6 @@ -Imports System -Imports System.Collections.Generic Imports System.Linq Imports System.Text Imports System.Threading.Tasks -Imports System.Windows Imports System.Windows.Controls Imports System.Windows.Data Imports System.Windows.Documents @@ -14,14 +11,15 @@ Imports System.Windows.Navigation Imports System.Windows.Shapes Namespace WpfApp1 - ''' - ''' Interaction logic for MainWindow.xaml - ''' - Partial Public Class MainWindow - Inherits DevExpress.Xpf.Core.ThemedWindow - Public Sub New() - InitializeComponent() - End Sub - End Class + ''' + ''' Interaction logic for MainWindow.xaml + ''' + Public Partial Class MainWindow + Inherits DevExpress.Xpf.Core.ThemedWindow + + Public Sub New() + InitializeComponent() + End Sub + End Class End Namespace diff --git a/VB/PdfViewer_BarManager.sln b/VB/PdfViewer_BarManager.sln index 1df8bb4..03f025e 100644 --- a/VB/PdfViewer_BarManager.sln +++ b/VB/PdfViewer_BarManager.sln @@ -1,4 +1,5 @@ -Microsoft Visual Studio Solution File, Format Version 12.00 + +Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio Version 16 VisualStudioVersion = 16.0.28917.181 MinimumVisualStudioVersion = 10.0.40219.1 diff --git a/VB/Properties/AssemblyInfo.vb b/VB/Properties/AssemblyInfo.vb new file mode 100644 index 0000000..e7cb9da --- /dev/null +++ b/VB/Properties/AssemblyInfo.vb @@ -0,0 +1,44 @@ +Imports System.Reflection +Imports System.Resources +Imports System.Runtime.InteropServices + +' 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. + + + + + + + + +' 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. + +'In order to begin building localizable applications, set +'CultureYouAreCodingWith in your .csproj file +'inside a . For example, if you are using US english +'in your source files, set the 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)] +'(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) + 'where theme specific resource dictionaries are located +'where the generic resource dictionary is located +' 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.*")] + + diff --git a/VB/Properties/Resources.Designer.vb b/VB/Properties/Resources.Designer.vb new file mode 100644 index 0000000..30625d8 --- /dev/null +++ b/VB/Properties/Resources.Designer.vb @@ -0,0 +1,62 @@ +'------------------------------------------------------------------------------ +' +' This code was generated by a tool. +' Runtime Version:4.0.30319.42000 +' +' Changes to this file may cause incorrect behavior and will be lost if +' the code is regenerated. +' +'------------------------------------------------------------------------------ +Namespace WpfApp1.Properties + + ''' + ''' A strongly-typed resource class, for looking up localized strings, etc. + ''' + ' This class was auto-generated by the StronglyTypedResourceBuilder + ' class via a tool like ResGen or Visual Studio. + ' To add or remove a member, edit your .ResX file then rerun ResGen + ' with the /str option, or rebuild your VS project. + + + + Friend Class Resources + + Private Shared resourceMan As Global.System.Resources.ResourceManager + + Private Shared resourceCulture As Global.System.Globalization.CultureInfo + + + Friend Sub New() + End Sub + + ''' + ''' Returns the cached ResourceManager instance used by this class. + ''' + + Friend Shared ReadOnly Property ResourceManager As Global.System.Resources.ResourceManager + Get + If(WpfApp1.Properties.Resources.resourceMan Is Nothing) Then + Dim temp As Global.System.Resources.ResourceManager = New Global.System.Resources.ResourceManager("Resources", GetType(WpfApp1.Properties.Resources).Assembly) + WpfApp1.Properties.Resources.resourceMan = temp + End If + + Return WpfApp1.Properties.Resources.resourceMan + End Get + End Property + + ''' + ''' Overrides the current thread's CurrentUICulture property for all + ''' resource lookups using this strongly typed resource class. + ''' + + Friend Shared Property Culture As Global.System.Globalization.CultureInfo + Get + Return WpfApp1.Properties.Resources.resourceCulture + End Get + + Set(ByVal value As Global.System.Globalization.CultureInfo) + WpfApp1.Properties.Resources.resourceCulture = value + End Set + End Property + End Class +End Namespace diff --git a/VB/Properties/Settings.Designer.vb b/VB/Properties/Settings.Designer.vb new file mode 100644 index 0000000..ccb6895 --- /dev/null +++ b/VB/Properties/Settings.Designer.vb @@ -0,0 +1,25 @@ +'------------------------------------------------------------------------------ +' +' This code was generated by a tool. +' Runtime Version:4.0.30319.42000 +' +' Changes to this file may cause incorrect behavior and will be lost if +' the code is regenerated. +' +'------------------------------------------------------------------------------ +Namespace WpfApp1.Properties + + + + Friend NotInheritable Partial Class Settings + Inherits Global.System.Configuration.ApplicationSettingsBase + + Private Shared defaultInstance As WpfApp1.Properties.Settings = CType((Global.System.Configuration.ApplicationSettingsBase.Synchronized(New WpfApp1.Properties.Settings())), WpfApp1.Properties.Settings) + + Public Shared ReadOnly Property [Default] As Settings + Get + Return WpfApp1.Properties.Settings.defaultInstance + End Get + End Property + End Class +End Namespace diff --git a/VB/WpfApp1.vbproj b/VB/WpfApp1.vbproj index 2c97f1d..6154301 100644 --- a/VB/WpfApp1.vbproj +++ b/VB/WpfApp1.vbproj @@ -1,16 +1,17 @@ - + + On net8.0-windows WinExe - false false true true + false - - false - + + + @@ -20,35 +21,10 @@ - - - - - - - - - - - - - - - True - True - Resources.resx - - - True - Settings.settings - True - - - - + - + diff --git a/VB/app.config b/VB/app.config index e6e8585..1c0ef96 100644 --- a/VB/app.config +++ b/VB/app.config @@ -5,6 +5,9 @@
+ + +