Click here to Skip to main content
15,884,605 members
Articles / Desktop Programming / WPF

WPF Tilt Shader Effect

Rate me:
Please Sign up or sign in to vote.
4.86/5 (4 votes)
27 May 2012CPOL2 min read 17.9K   581   11  
Non affine transform for WPF without 3D.
#ExternalChecksum("..\..\Window1.xaml","{406ea660-64cf-4c82-b6f0-42d48172a799}","44F41AB1B250EED20A738162D3C19659")
'------------------------------------------------------------------------------
' <auto-generated>
'     This code was generated by a tool.
'     Runtime Version:2.0.50727.3053
'
'     Changes to this file may cause incorrect behavior and will be lost if
'     the code is regenerated.
' </auto-generated>
'------------------------------------------------------------------------------

Option Strict Off
Option Explicit On

Imports System
Imports System.Diagnostics
Imports System.Windows
Imports System.Windows.Automation
Imports System.Windows.Controls
Imports System.Windows.Controls.Primitives
Imports System.Windows.Data
Imports System.Windows.Documents
Imports System.Windows.Ink
Imports System.Windows.Input
Imports System.Windows.Markup
Imports System.Windows.Media
Imports System.Windows.Media.Animation
Imports System.Windows.Media.Effects
Imports System.Windows.Media.Imaging
Imports System.Windows.Media.Media3D
Imports System.Windows.Media.TextFormatting
Imports System.Windows.Navigation
Imports System.Windows.Shapes


'''<summary>
'''Window1
'''</summary>
<Microsoft.VisualBasic.CompilerServices.DesignerGenerated()>  _
Partial Public Class Window1
    Inherits System.Windows.Window
    Implements System.Windows.Markup.IComponentConnector
    
    
    #ExternalSource("..\..\Window1.xaml",6)
    Friend WithEvents Grid1 As System.Windows.Controls.Grid
    
    #End ExternalSource
    
    
    #ExternalSource("..\..\Window1.xaml",7)
    Friend WithEvents ImgEff As System.Windows.Controls.Image
    
    #End ExternalSource
    
    
    #ExternalSource("..\..\Window1.xaml",8)
    Friend WithEvents Border1 As System.Windows.Controls.Border
    
    #End ExternalSource
    
    
    #ExternalSource("..\..\Window1.xaml",9)
    Friend WithEvents Border2 As System.Windows.Controls.Border
    
    #End ExternalSource
    
    
    #ExternalSource("..\..\Window1.xaml",10)
    Friend WithEvents Border3 As System.Windows.Controls.Border
    
    #End ExternalSource
    
    
    #ExternalSource("..\..\Window1.xaml",11)
    Friend WithEvents Border4 As System.Windows.Controls.Border
    
    #End ExternalSource
    
    
    #ExternalSource("..\..\Window1.xaml",13)
    Friend WithEvents Button2 As System.Windows.Controls.Button
    
    #End ExternalSource
    
    
    #ExternalSource("..\..\Window1.xaml",14)
    Friend WithEvents Button1 As System.Windows.Controls.Button
    
    #End ExternalSource
    
    
    #ExternalSource("..\..\Window1.xaml",15)
    Friend WithEvents Button3 As System.Windows.Controls.Button
    
    #End ExternalSource
    
    
    #ExternalSource("..\..\Window1.xaml",16)
    Friend WithEvents Button4 As System.Windows.Controls.Button
    
    #End ExternalSource
    
    
    #ExternalSource("..\..\Window1.xaml",17)
    Friend WithEvents Button5 As System.Windows.Controls.Button
    
    #End ExternalSource
    
    
    #ExternalSource("..\..\Window1.xaml",18)
    Friend WithEvents Button6 As System.Windows.Controls.Button
    
    #End ExternalSource
    
    Private _contentLoaded As Boolean
    
    '''<summary>
    '''InitializeComponent
    '''</summary>
    <System.Diagnostics.DebuggerNonUserCodeAttribute()>  _
    Public Sub InitializeComponent() Implements System.Windows.Markup.IComponentConnector.InitializeComponent
        If _contentLoaded Then
            Return
        End If
        _contentLoaded = true
        Dim resourceLocater As System.Uri = New System.Uri("/Tilt ShaderEffect;component/window1.xaml", System.UriKind.Relative)
        
        #ExternalSource("..\..\Window1.xaml",1)
        System.Windows.Application.LoadComponent(Me, resourceLocater)
        
        #End ExternalSource
    End Sub
    
    <System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
     System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never),  _
     System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")>  _
    Sub System_Windows_Markup_IComponentConnector_Connect(ByVal connectionId As Integer, ByVal target As Object) Implements System.Windows.Markup.IComponentConnector.Connect
        If (connectionId = 1) Then
            Me.Grid1 = CType(target,System.Windows.Controls.Grid)
            Return
        End If
        If (connectionId = 2) Then
            Me.ImgEff = CType(target,System.Windows.Controls.Image)
            Return
        End If
        If (connectionId = 3) Then
            Me.Border1 = CType(target,System.Windows.Controls.Border)
            Return
        End If
        If (connectionId = 4) Then
            Me.Border2 = CType(target,System.Windows.Controls.Border)
            Return
        End If
        If (connectionId = 5) Then
            Me.Border3 = CType(target,System.Windows.Controls.Border)
            Return
        End If
        If (connectionId = 6) Then
            Me.Border4 = CType(target,System.Windows.Controls.Border)
            Return
        End If
        If (connectionId = 7) Then
            Me.Button2 = CType(target,System.Windows.Controls.Button)
            Return
        End If
        If (connectionId = 8) Then
            Me.Button1 = CType(target,System.Windows.Controls.Button)
            Return
        End If
        If (connectionId = 9) Then
            Me.Button3 = CType(target,System.Windows.Controls.Button)
            Return
        End If
        If (connectionId = 10) Then
            Me.Button4 = CType(target,System.Windows.Controls.Button)
            Return
        End If
        If (connectionId = 11) Then
            Me.Button5 = CType(target,System.Windows.Controls.Button)
            Return
        End If
        If (connectionId = 12) Then
            Me.Button6 = CType(target,System.Windows.Controls.Button)
            Return
        End If
        Me._contentLoaded = true
    End Sub
End Class

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior)
Egypt Egypt
DotNet developer

Graphics researches and GPU Acceleration Developer.

Full stack web developer.

Bachelor's degree of Medicine and Surgery.

Comments and Discussions