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 0c3ad90..6083db8 100644 --- a/Readme.md +++ b/Readme.md @@ -1,5 +1,4 @@ -![](https://img.shields.io/endpoint?url=https://codecentral.devexpress.com/api/v1/VersionRange/128658493/24.2.1%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/E5091) [![](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) @@ -22,7 +21,7 @@ This example uses the [bar actions](https://docs.devexpress.com/WPF/7045/control ## 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-toolbar-items-e5091&~~~was_helpful=yes) [](https://www.devexpress.com/support/examples/survey.xml?utm_source=github&utm_campaign=how-to-customize-pdf-viewer-toolbar-items-e5091&~~~was_helpful=no) +[](https://www.devexpress.com/support/examples/survey.xml?utm_source=github&utm_campaign=wpf-pdf-viewer-customize-toolbar-items&~~~was_helpful=yes) [](https://www.devexpress.com/support/examples/survey.xml?utm_source=github&utm_campaign=wpf-pdf-viewer-customize-toolbar-items&~~~was_helpful=no) (you will be redirected to DevExpress.com to submit your response) diff --git a/VB/App.config b/VB/App.config new file mode 100644 index 0000000..124802c --- /dev/null +++ b/VB/App.config @@ -0,0 +1,15 @@ + + + + +
+ + + + + + Office2019Colorful + + + + \ No newline at end of file diff --git a/VB/App.xaml.vb b/VB/App.xaml.vb index b35e1f2..0aa37ba 100644 --- a/VB/App.xaml.vb +++ b/VB/App.xaml.vb @@ -1,4 +1,5 @@ -Imports System.Windows +Imports System.Linq +Imports System.Threading.Tasks Namespace PdfViewerCustomization diff --git a/VB/Demo.pdf b/VB/Demo.pdf new file mode 100644 index 0000000..be193c1 Binary files /dev/null and b/VB/Demo.pdf differ diff --git a/VB/E5091.vbproj b/VB/E5091.vbproj index 60f0701..ad999b8 100644 --- a/VB/E5091.vbproj +++ b/VB/E5091.vbproj @@ -1,17 +1,51 @@ - + + On net8.0-windows WinExe - + + + PdfViewerCustomization false + false true - False + true + false + + + + + + + + + + + PreserveNewest + + + + + + + + True + True + Settings.settings + + + + + SettingsSingleFileGenerator + Settings.Designer.vb + + \ No newline at end of file diff --git a/VB/MainWindow.xaml b/VB/MainWindow.xaml index 3721202..661a3ea 100644 --- a/VB/MainWindow.xaml +++ b/VB/MainWindow.xaml @@ -1,27 +1,38 @@ - - + + - - - - + + + + - - + + diff --git a/VB/MainWindow.xaml.vb b/VB/MainWindow.xaml.vb index 31794e9..8b3c599 100644 --- a/VB/MainWindow.xaml.vb +++ b/VB/MainWindow.xaml.vb @@ -1,4 +1,4 @@ -Imports System.Windows +Imports System.Linq Namespace PdfViewerCustomization @@ -6,7 +6,7 @@ Namespace PdfViewerCustomization Inherits Window Public Sub New() - Me.InitializeComponent() + InitializeComponent() End Sub End Class End Namespace diff --git a/VB/Properties/AssemblyInfo.vb b/VB/Properties/AssemblyInfo.vb index b360afb..e7189c7 100644 --- a/VB/Properties/AssemblyInfo.vb +++ b/VB/Properties/AssemblyInfo.vb @@ -1,6 +1,6 @@ Imports System.Reflection +Imports System.Resources 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 diff --git a/VB/Properties/Settings.Designer.vb b/VB/Properties/Settings.Designer.vb index c630ca3..decd1a7 100644 --- a/VB/Properties/Settings.Designer.vb +++ b/VB/Properties/Settings.Designer.vb @@ -1,4 +1,4 @@ -'------------------------------------------------------------------------------ +'------------------------------------------------------------------------------ ' ' This code was generated by a tool. ' Runtime Version:4.0.30319.42000 @@ -7,23 +7,18 @@ ' the code is regenerated. ' '------------------------------------------------------------------------------ +Namespace PdfViewerCustomization.Properties -Option Strict On -Option Explicit On + + + Friend NotInheritable Partial Class Settings + Inherits Global.System.Configuration.ApplicationSettingsBase + Private Shared defaultInstance As PdfViewerCustomization.Properties.Settings = CType((Global.System.Configuration.ApplicationSettingsBase.Synchronized(New PdfViewerCustomization.Properties.Settings())), PdfViewerCustomization.Properties.Settings) -Namespace .Properties - - _ - Partial Friend NotInheritable Class Settings - Inherits Global.System.Configuration.ApplicationSettingsBase - - Private Shared defaultInstance As Settings = CType(Global.System.Configuration.ApplicationSettingsBase.Synchronized(New Settings()),Settings) - - Public Shared ReadOnly Property [Default]() As Settings + Public Shared ReadOnly Property [Default] As Settings Get - Return defaultInstance + Return PdfViewerCustomization.Properties.Settings.defaultInstance End Get End Property End Class