vb@rchiv
VB Classic
VB.NET
ADO.NET
VBA
C#
Mails senden, abrufen und decodieren - ganz easy ;-)  
 vb@rchiv Quick-Search: Suche startenErweiterte Suche starten   Impressum  | Datenschutz  | vb@rchiv CD Vol.6  | Shop Copyright ©2000-2024
 
zurück

 Sie sind aktuell nicht angemeldet.Funktionen: Einloggen  |  Neu registrieren  |  Suchen

Projekte und Betatester (VB und VB.NET)
Re: NetRadioPlayer V2 - WPF Edition 
Autor: Snoopy
Datum: 14.11.09 19:00

Das SysTray Menü ist auf Basis von WinForms. Ich habe dafür eine Klasse von ProfessionalColorTable
abgeleitet.
Imports System.Drawing
Imports System.Windows.Forms
 
Public Class mnuRenderer
   Inherits ProfessionalColorTable
 
   Public Overrides ReadOnly Property ToolStripGradientBegin() As _
     System.Drawing.Color
      Get
         Return Color.FromKnownColor(KnownColor.Gray)
      End Get
   End Property
 
   Public Overrides ReadOnly Property ToolStripGradientMiddle() As _
     System.Drawing.Color
      Get
         Return Color.FromKnownColor(KnownColor.Silver)
      End Get
   End Property
 
   Public Overrides ReadOnly Property ToolStripGradientEnd() As _
     System.Drawing.Color
      Get
         Return Color.FromKnownColor(KnownColor.Gainsboro)
      End Get
   End Property
 
   Public Overrides ReadOnly Property ImageMarginGradientBegin() As  _
     System.Drawing.Color
      Get
         Return Color.FromKnownColor(KnownColor.Gray)
      End Get
   End Property
 
   Public Overrides ReadOnly Property ImageMarginGradientMiddle() As  _
     System.Drawing.Color
      Get
         Return Color.FromKnownColor(KnownColor.Silver)
      End Get
   End Property
 
   Public Overrides ReadOnly Property ImageMarginGradientEnd() As  _
     System.Drawing.Color
      Get
         Return Color.FromKnownColor(KnownColor.Gainsboro)
      End Get
   End Property
 
   Public Overrides ReadOnly Property ButtonSelectedGradientBegin() As  _
     System.Drawing.Color
      Get
         Return Color.FromKnownColor(KnownColor.Gray)
      End Get
   End Property
 
   Public Overrides ReadOnly Property ButtonSelectedGradientEnd() As  _
     System.Drawing.Color
      Get
         Return Color.FromKnownColor(KnownColor.Silver)
      End Get
   End Property
 
   Public Overrides ReadOnly Property MenuItemPressedGradientBegin() As  _
     System.Drawing.Color
      Get
         Return Color.FromKnownColor(KnownColor.Gray)
      End Get
   End Property
 
   Public Overrides ReadOnly Property MenuItemPressedGradientEnd() As  _
     System.Drawing.Color
      Get
         Return Color.FromKnownColor(KnownColor.Silver)
      End Get
   End Property
 
   Public Overrides ReadOnly Property MenuBorder() As System.Drawing.Color
      Get
         Return Color.FromKnownColor(KnownColor.ControlDarkDark)
      End Get
   End Property
 
   Public Overrides ReadOnly Property MenuItemBorder() As System.Drawing.Color
      Get
         Return Color.FromKnownColor(KnownColor.DarkGray)
      End Get
   End Property
 
   Public Overrides ReadOnly Property MenuStripGradientBegin() As  _
     System.Drawing.Color
      Get
         Return Color.FromKnownColor(KnownColor.Silver)
      End Get
   End Property
 
   Public Overrides ReadOnly Property MenuStripGradientEnd() As  _
     System.Drawing.Color
      Get
         Return Color.FromKnownColor(KnownColor.LightGray)
      End Get
   End Property
 
   Public Overrides ReadOnly Property MenuItemSelected() As System.Drawing.Color
      Get
         Return Color.FromKnownColor(KnownColor.Moccasin)
      End Get
   End Property
 
   Public Overrides ReadOnly Property ToolStripDropDownBackground() As _
     System.Drawing.Color
      Get
         Return Color.FromKnownColor(KnownColor.Gainsboro)
      End Get
   End Property
 
   Public Overrides ReadOnly Property SeparatorDark() As System.Drawing.Color
      Get
         Return Color.FromKnownColor(KnownColor.DarkGray)
      End Get
   End Property
 
   Public Overrides ReadOnly Property SeparatorLight() As System.Drawing.Color
      Get
         Return Color.FromKnownColor(KnownColor.LightGray)
      End Get
   End Property
 
   Public Overrides ReadOnly Property ToolStripBorder() As System.Drawing.Color
      Get
         Return Color.FromKnownColor(KnownColor.DarkGray)
      End Get
   End Property
 
End Class
Initialisiert wird der Renderer wie folgt:

Imports sForms = System.Windows.Forms
...
...
   Private Sub MainWindow_Loaded(ByVal sender As Object, ByVal e As _
     System.Windows.RoutedEventArgs) Handles Me.Loaded
      sForms.ToolStripManager.Renderer = New _
      sForms.ToolStripProfessionalRenderer(New mnuRenderer)
   End Sub
Das ContextMenu musst Du dann natürlich noch anlegen.
Reicht Dir das, oder soll ich Dir ein kleines Demo Projekt basteln. Das könnte ich aber erst morgen
erstellen.

Gru?
---------------------------------------------------
Snoopy sagt - vb@rchiv find ich gut...
Schon gesehen? OSMMapViewer V2 Control

alle Nachrichten anzeigenGesamtübersicht  |  Zum Thema  |  Suchen

 ThemaViews  AutorDatum
NetRadioPlayer V2 - WPF Edition11.712Snoopy17.08.09 23:40
Re: NetRadioPlayer V2 - WPF Edition9.240mading02.09.09 10:24
Re: NetRadioPlayer V2 - WPF Edition9.182Snoopy02.09.09 11:41
Re: NetRadioPlayer V2 - WPF Edition9.168mading02.09.09 12:49
Re: NetRadioPlayer V2 - WPF Edition8.902Longri08.09.09 15:19
Re: NetRadioPlayer V2 - WPF Edition9.165Snoopy08.09.09 22:03
Re: NetRadioPlayer V2 - WPF Edition9.009Brian14.09.09 18:44
Re: NetRadioPlayer V2 - WPF Edition9.093Snoopy14.09.09 18:59
Re: NetRadioPlayer V2 - WPF Edition8.992Brian14.09.09 19:18
Re: NetRadioPlayer V2 - WPF Edition9.009Dirk15.09.09 15:26
Re: NetRadioPlayer V2 - WPF Edition8.942Snoopy15.09.09 15:53
Re: NetRadioPlayer V2 - WPF Edition9.071Snof17.09.09 00:18
Re: NetRadioPlayer V2 - WPF Edition8.871Snoopy17.09.09 08:38
Re: NetRadioPlayer V2 - WPF Edition8.874Longri17.09.09 08:47
Neues Release NetRadioPlayer V2.19.243Snoopy17.10.09 10:51
Re: Neues Release NetRadioPlayer V2.18.918Longri17.10.09 11:13
Re: Neues Release NetRadioPlayer V2.19.034Snoopy17.10.09 11:54
Re: Neues Release NetRadioPlayer V2.19.163keco17.10.09 11:57
Re: Neues Release NetRadioPlayer V2.18.864Snoopy17.10.09 12:06
Re: Neues Release NetRadioPlayer V2.18.959ModeratorMoni17.10.09 12:11
Re: Neues Release NetRadioPlayer V2.18.945keco17.10.09 12:41
Re: Neues Release NetRadioPlayer V2.18.927Brian18.10.09 21:31
Re: Neues Release NetRadioPlayer V2.18.811Snoopy18.10.09 23:14
Re: NetRadioPlayer V2 - WPF Edition8.883Longri17.10.09 12:36
Re: NetRadioPlayer V2 - WPF Edition8.913Snoopy17.10.09 12:41
Re: NetRadioPlayer V2 - WPF Edition8.875Longri17.10.09 12:50
Re: NetRadioPlayer V2 - WPF Edition8.996Snoopy17.10.09 12:52
Anzeigefehler NetRadioPlayer V2.1 nur Exe9.022Snoopy17.10.09 13:43
Re: Anzeigefehler NetRadioPlayer V2.1 nur Exe9.036ModeratorMoni17.10.09 13:52
Re: Anzeigefehler NetRadioPlayer V2.1 nur Exe8.863Snoopy17.10.09 14:01
Re: Anzeigefehler NetRadioPlayer V2.1 nur Exe8.998Snoopy17.10.09 18:04
Re: Anzeigefehler NetRadioPlayer V2.1 nur Exe8.872ModeratorMoni17.10.09 18:18
Re: Anzeigefehler NetRadioPlayer V2.1 nur Exe8.951Snoopy17.10.09 19:07
Re: Anzeigefehler NetRadioPlayer V2.1 nur Exe9.103ModeratorMoni17.10.09 19:15
Re: Anzeigefehler NetRadioPlayer V2.1 nur Exe9.008keco17.10.09 19:20
Re: Anzeigefehler NetRadioPlayer V2.1 nur Exe9.018Snoopy17.10.09 20:03
Neues Setup NetRadioPlayer V2.1 - WPF Edition9.168Snoopy18.10.09 11:38
Re: Neues Setup NetRadioPlayer V2.1 - WPF Edition8.992ModeratorMoni18.10.09 12:02
Re: Neues Setup NetRadioPlayer V2.1 - WPF Edition8.843Snoopy18.10.09 13:32
Re: Neues Setup NetRadioPlayer V2.1 - WPF Edition9.047keco18.10.09 13:13
Re: Neues Setup NetRadioPlayer V2.1 - WPF Edition8.935Snoopy18.10.09 13:30
Re: Neues Setup NetRadioPlayer V2.1 - WPF Edition8.997keco18.10.09 13:40
Re: NetRadioPlayer V2 - WPF Edition8.982Longri18.10.09 18:02
Re: NetRadioPlayer V2 - WPF Edition9.023Snoopy18.10.09 18:44
Re: NetRadioPlayer V2 - WPF Edition8.850Longri18.10.09 19:14
Re: NetRadioPlayer V2 - WPF Edition8.999Snoopy18.10.09 19:28
Re: NetRadioPlayer V2 - WPF Edition8.865Longri18.10.09 19:30
Re: NetRadioPlayer V2 - WPF Edition8.978Snoopy18.10.09 19:52
Re: NetRadioPlayer V2 - WPF Edition8.837Longri18.10.09 20:09
Re: NetRadioPlayer V2 - WPF Edition8.870Snoopy18.10.09 20:13
Re: NetRadioPlayer V2 - WPF Edition8.858Longri20.10.09 20:17
Re: NetRadioPlayer V2 - WPF Edition8.920Snoopy20.10.09 20:48
Zwei neue Setups9.149Snoopy21.10.09 09:08
Re: Zwei neue Setups8.863Maas21.10.09 09:52
Re: Zwei neue Setups9.077Snoopy21.10.09 10:21
Re: Zwei neue Setups8.945Maas23.10.09 15:15
Re: Zwei neue Setups8.985Snoopy23.10.09 16:32
Re: Zwei neue Setups9.012Maas23.10.09 18:06
Re: Zwei neue Setups8.900Snoopy24.10.09 19:27
Re: Zwei neue Setups9.070Maas24.10.09 20:50
Re: Zwei neue Setups9.045Snoopy24.10.09 21:12
Re: NetRadioPlayer V2 - WPF Edition8.776Longri21.10.09 11:10
Re: NetRadioPlayer V2 - WPF Edition9.122Snoopy21.10.09 11:37
Re: NetRadioPlayer V2 - WPF Edition9.015ModeratorR@iner21.10.09 16:18
Re: NetRadioPlayer V2 - WPF Edition8.871ModeratorR@iner21.10.09 16:26
Re: NetRadioPlayer V2 - WPF Edition9.050Snoopy21.10.09 17:22
Re: NetRadioPlayer V2 - WPF Edition8.970Snoopy21.10.09 19:01
Re: NetRadioPlayer V2 - WPF Edition9.055Longri21.10.09 19:03
Re: NetRadioPlayer V2 - WPF Edition9.006ModeratorR@iner21.10.09 19:11
Re: NetRadioPlayer V2 - WPF Edition9.104Longri29.10.09 14:50
Re: NetRadioPlayer V2 - WPF Edition9.146Snoopy30.10.09 19:54
Final Setups8.901Snoopy25.10.09 17:40
Re: Final Setups8.834ModeratorR@iner25.10.09 18:17
Re: Final Setups8.972Snoopy25.10.09 18:20
Re: Final Setups8.973Maas26.10.09 00:13
Re: Final Setups9.010Maas26.10.09 00:18
Re: Final Setups8.927Maas26.10.09 00:53
Re: Final Setups8.920Snoopy26.10.09 09:21
Re: Final Setups9.202Maas26.10.09 14:51
Re: Final Setups8.952Longri27.10.09 08:46
Re: Final Setups8.882Snoopy27.10.09 09:29
Re: Final Setups8.941keco27.10.09 14:56
Re: Final Setups8.934Snoopy27.10.09 17:35
Re: Final Setups8.924ModeratorR@iner27.10.09 19:37
Re: Final Setups8.917Snoopy27.10.09 21:03
Und noch ein Update9.131Snoopy28.10.09 23:52
Re: Und noch ein Update8.959Brian29.10.09 00:51
Re: Und noch ein Update9.076Snoopy29.10.09 10:19
Re: Und noch ein Update8.965Brian29.10.09 13:32
Re: Und noch ein Update8.864Snoopy29.10.09 13:40
Re: Und noch ein Update8.848Brian29.10.09 13:49
Re: Und noch ein Update8.902ModeratorR@iner29.10.09 16:22
Re: Und noch ein Update8.844Brian29.10.09 17:05
Re: Und noch ein Update9.073Snoopy29.10.09 17:11
Re: Und noch ein Update8.917ModeratorR@iner29.10.09 17:51
Re: Und noch ein Update8.851Brian29.10.09 18:13
Re: Und noch ein Update8.924ModeratorR@iner29.10.09 18:24
Re: Und noch ein Update9.032Brian29.10.09 18:41
Ist es so recht8.851Snoopy26.10.09 17:24
Re: Ist es so recht8.852ModeratorMoni26.10.09 17:27
Re: Ist es so recht8.919ModeratorR@iner26.10.09 18:30
Final Setups - jetzt aber8.844Snoopy30.10.09 15:52
Re: NetRadioPlayer V2 - WPF Edition8.835Longri14.11.09 17:45
Re: NetRadioPlayer V2 - WPF Edition9.045Snoopy14.11.09 18:05
Re: NetRadioPlayer V2 - WPF Edition8.915Longri14.11.09 18:18
Re: NetRadioPlayer V2 - WPF Edition8.828Snoopy14.11.09 19:00
Re: NetRadioPlayer V2 - WPF Edition8.762Longri14.11.09 19:04
Re: NetRadioPlayer V2 - WPF Edition9.078Maas14.11.09 19:08
Re: NetRadioPlayer V2 - WPF Edition8.753Longri14.11.09 19:09
Re: NetRadioPlayer V2 - WPF Edition8.768Snoopy14.11.09 19:24
Re: NetRadioPlayer V2 - WPF Edition8.880Snoopy15.11.09 09:05
Re: NetRadioPlayer V2 - WPF Edition8.743Longri16.11.09 09:50
Re: NetRadioPlayer V2 - WPF Edition8.824blugys02.01.10 08:25
Re: NetRadioPlayer V2 - WPF Edition8.694Snoopy02.01.10 09:43
Re: NetRadioPlayer V2 - WPF Edition8.724keco02.01.10 14:00
Re: NetRadioPlayer V2 - WPF Edition8.764Snoopy02.01.10 14:35
Re: NetRadioPlayer V2 - WPF Edition8.781keco02.01.10 15:48
Re: NetRadioPlayer V2 - WPF Edition8.988mading16.01.10 09:12
Re: NetRadioPlayer V2 - WPF Edition8.949Snoopy16.01.10 09:30

Sie sind nicht angemeldet!
Um auf diesen Beitrag zu antworten oder neue Beiträge schreiben zu können, müssen Sie sich zunächst anmelden.

Einloggen  |  Neu registrieren

Funktionen:  Zum Thema  |  GesamtübersichtSuchen 

nach obenzurück
 
   

Copyright ©2000-2024 vb@rchiv Dieter Otter
Alle Rechte vorbehalten.
Microsoft, Windows und Visual Basic sind entweder eingetragene Marken oder Marken der Microsoft Corporation in den USA und/oder anderen Ländern. Weitere auf dieser Homepage aufgeführten Produkt- und Firmennamen können geschützte Marken ihrer jeweiligen Inhaber sein.

Diese Seiten wurden optimiert für eine Bildschirmauflösung von mind. 1280x1024 Pixel