mirror of
https://github.com/Stone-Red-Code/docs-desktop.git
synced 2026-09-04 17:16:03 +02:00
Initial WPF content migrated (#17)
* Reset branch for WPF changes * Convert BMP to PNG; fix link-out-of-scope err * Add snippets for WPF... 6794 files!!!! * Add missing snippets * update file updated between migration * Fix paths to include * update breadcrumb and toc * fix index links * fix index links * fix index links * fix markdown
This commit is contained in:
+20
@@ -0,0 +1,20 @@
|
||||
Imports System.Windows ' Window, RoutedEventArgs, MessageBox
|
||||
|
||||
Namespace SDKSample
|
||||
|
||||
Public Class ControlTemplateButtonWindow
|
||||
Inherits Window
|
||||
|
||||
Public Sub New()
|
||||
|
||||
InitializeComponent()
|
||||
|
||||
End Sub
|
||||
|
||||
Private Sub button_Click(ByVal sender As Object, ByVal e As RoutedEventArgs)
|
||||
MessageBox.Show("Hello, Windows Presentation Foundation!")
|
||||
End Sub
|
||||
|
||||
End Class
|
||||
|
||||
End Namespace
|
||||
+18
@@ -0,0 +1,18 @@
|
||||
Namespace SDKSample
|
||||
|
||||
Class Person
|
||||
|
||||
Private _name As String = "No Name"
|
||||
|
||||
Public Property Name() As String
|
||||
Get
|
||||
Return _name
|
||||
End Get
|
||||
Set(ByVal value As String)
|
||||
_name = value
|
||||
End Set
|
||||
End Property
|
||||
|
||||
End Class
|
||||
|
||||
End Namespace
|
||||
+17
@@ -0,0 +1,17 @@
|
||||
imports System 'EventArgs
|
||||
imports System.Windows 'DependencyObject, DependencyPropertyChangedEventArgs,
|
||||
' FrameworkPropertyMetadata, PropertyChangedCallback,
|
||||
' RoutedPropertyChangedEventArgs
|
||||
imports System.Windows.Controls 'UserControl
|
||||
|
||||
Namespace SDKSample
|
||||
|
||||
' Interaction logic for NumericUpDown.xaml
|
||||
Partial Public Class NumericUpDown
|
||||
Inherits System.Windows.Controls.UserControl
|
||||
|
||||
'NumericUpDown user control implementation
|
||||
|
||||
End Class
|
||||
|
||||
End Namespace
|
||||
+21
@@ -0,0 +1,21 @@
|
||||
Imports System.Windows ' Window
|
||||
|
||||
Namespace SDKSample
|
||||
|
||||
Partial Public Class DataBindingWindow
|
||||
Inherits Window
|
||||
|
||||
Public Sub New()
|
||||
InitializeComponent()
|
||||
|
||||
' Create Person data source
|
||||
Dim person As Person = New Person()
|
||||
|
||||
' Make data source available for binding
|
||||
Me.DataContext = person
|
||||
|
||||
End Sub
|
||||
|
||||
End Class
|
||||
|
||||
End Namespace
|
||||
+19
@@ -0,0 +1,19 @@
|
||||
Imports System.Windows ' Window, MessageBox
|
||||
Imports System.Windows.Input ' MouseButtonEventArgs
|
||||
|
||||
Namespace SDKSample
|
||||
|
||||
Public Class EllipseEventHandlingWindow
|
||||
Inherits Window
|
||||
|
||||
Public Sub New()
|
||||
InitializeComponent()
|
||||
End Sub
|
||||
|
||||
Private Sub clickableEllipse_MouseUp(ByVal sender As Object, ByVal e As MouseButtonEventArgs)
|
||||
MessageBox.Show("You clicked the ellipse!")
|
||||
End Sub
|
||||
|
||||
End Class
|
||||
|
||||
End Namespace
|
||||
Reference in New Issue
Block a user