vb@rchiv
VB Classic
VB.NET
ADO.NET
VBA
C#
Schützen Sie Ihre Software vor Software-Piraterie - mit sevLock 1.0 DLL!  
 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: Final Setups 
Autor: Maas
Datum: 26.10.09 00:13

Hi Snoopy,
Rainer schrieb:
Zitat:

Aber eines vermisse ich, wenn ich den Lautstärkepegel verändere, fehlt mit ein Balken, an dem ich sehe, wie laut es eingestellt ist.

Ich fand auch, dass ein ToolTip alleine nicht ausreicht, da zu umständlich (und nicht WPF gerecht ). Deshalb hab ich mir mal Gedanken zum Thema visuelle Darstellung der Lautstärke ohne Veränderung der Grunddesignstruktur mit der Button-Reihenfolge. Die Lösung ist die Darstellung der Lautstärke im Button.

Hier mal mein VolumeButton und BackgroundConverter:



Public Class VolumeButton
    Inherits Button
 
    Public Shared ReadOnly VolumeProperty As DependencyProperty = _
      DependencyProperty.Register("Volume", GetType(Double), GetType( _
      VolumeButton), New PropertyMetadata(50.0))
    Public Property Volume() As Double
        Get
            Return CDbl(GetValue(VolumeProperty))
        End Get
        Set(ByVal value As Double)
            If value < 0 Then
                SetValue(VolumeProperty, 0.0)
            ElseIf value > 100 Then
                SetValue(VolumeProperty, 100.0)
            Else
                SetValue(VolumeProperty, value)
            End If
        End Set
    End Property
 
End Class
 
 
 
<ValueConversion(GetType(Object), GetType(Brush))> _
 Public Class VolumeButtonBackgroundConverter
    Implements IValueConverter
 
 
    Public Function Convert(ByVal value As Object, ByVal targetType As _
      System.Type, ByVal parameter As Object, ByVal culture As _
      System.Globalization.CultureInfo) As Object Implements _
      System.Windows.Data.IValueConverter.Convert
        Dim volume As Double = (CDbl(value) * -1) + 100
        Dim brush As New LinearGradientBrush() With {.StartPoint = New Point( _
          0.5, 0), .EndPoint = New Point(0.5, 1)}
        brush.GradientStops.Add(New GradientStop(Colors.Gray, 0))
        brush.GradientStops.Add(New GradientStop(Colors.Gray, volume / 100))
        brush.GradientStops.Add(New GradientStop(Colors.Green, volume / 100))
        brush.GradientStops.Add(New GradientStop(Colors.Green, 1))
        Return brush
    End Function
 
    Public Function ConvertBack(ByVal value As Object, ByVal targetType As _
      System.Type, ByVal parameter As Object, ByVal culture As _
      System.Globalization.CultureInfo) As Object Implements _
      System.Windows.Data.IValueConverter.ConvertBack
        Throw New NotSupportedException("Konvertierung nur in eine Richtung" & _
        "erlaubt")
    End Function
End Class
Geht noch weiter...

Beitrag wurde zuletzt am 26.10.09 um 00:18:11 editiert.
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.169mading02.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.943Snoopy15.09.09 15:53
Re: NetRadioPlayer V2 - WPF Edition9.072Snof17.09.09 00:18
Re: NetRadioPlayer V2 - WPF Edition8.871Snoopy17.09.09 08:38
Re: NetRadioPlayer V2 - WPF Edition8.875Longri17.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.928Brian18.10.09 21:31
Re: Neues Release NetRadioPlayer V2.18.812Snoopy18.10.09 23:14
Re: NetRadioPlayer V2 - WPF Edition8.884Longri17.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.864Snoopy17.10.09 14:01
Re: Anzeigefehler NetRadioPlayer V2.1 nur Exe8.998Snoopy17.10.09 18:04
Re: Anzeigefehler NetRadioPlayer V2.1 nur Exe8.873ModeratorMoni17.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.019Snoopy17.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.844Snoopy18.10.09 13:32
Re: Neues Setup NetRadioPlayer V2.1 - WPF Edition9.048keco18.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.851Longri18.10.09 19:14
Re: NetRadioPlayer V2 - WPF Edition8.999Snoopy18.10.09 19:28
Re: NetRadioPlayer V2 - WPF Edition8.866Longri18.10.09 19:30
Re: NetRadioPlayer V2 - WPF Edition8.978Snoopy18.10.09 19:52
Re: NetRadioPlayer V2 - WPF Edition8.838Longri18.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.078Snoopy21.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.071Maas24.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.872ModeratorR@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.974Maas26.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.935Snoopy27.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.966Brian29.10.09 13:32
Re: Und noch ein Update8.865Snoopy29.10.09 13:40
Re: Und noch ein Update8.849Brian29.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.763Longri14.11.09 19:04
Re: NetRadioPlayer V2 - WPF Edition9.079Maas14.11.09 19:08
Re: NetRadioPlayer V2 - WPF Edition8.753Longri14.11.09 19:09
Re: NetRadioPlayer V2 - WPF Edition8.769Snoopy14.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.782keco02.01.10 15:48
Re: NetRadioPlayer V2 - WPF Edition8.988mading16.01.10 09:12
Re: NetRadioPlayer V2 - WPF Edition8.950Snoopy16.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