Tooltip bei deaktivierten Controls direkt anzeigen

This commit is contained in:
2025-08-12 11:14:30 +02:00
parent 4ac2749c06
commit cdce9748c7
6 changed files with 27 additions and 11 deletions

View File

@@ -165,6 +165,7 @@
Foreground="#ffffff"
IsEnabled="{Binding Row.IsReady2Send}"
ToolTip="{Binding Row, Converter={StaticResource TooltipTextConverter}, ConverterParameter=Send}"
ToolTipService.InitialShowDelay="0"
ToolTipService.ShowOnDisabled="True"
Visibility="{Binding Converter={StaticResource UserPermission2VisibleConverter}, ConverterParameter={x:Static shared:UserRightType.Finance_Gkv_Send}}" />
<Button

View File

@@ -159,8 +159,8 @@
IsEnabledBinding="{Binding IsGkvValid}">
<dxg:GridColumn.CellStyle>
<Style TargetType="{x:Type dxg:LightweightCellEditor}">
<Setter Property="ToolTipService.ShowOnDisabled" Value="True" />
<Setter Property="ToolTipService.InitialShowDelay" Value="0" />
</Style>
</dxg:GridColumn.CellStyle>
</dxg:GridColumn>

View File

@@ -48,6 +48,7 @@
IsEnabled="{Binding Path=CanEditIKLeistungserbringer}"
Text="{Binding Path=IKLeistungserbringer, UpdateSourceTrigger=PropertyChanged}"
ToolTip="{Binding Path=CanEditIKLeistungserbringerTooltip}"
ToolTipService.InitialShowDelay="0"
ToolTipService.ShowOnDisabled="True" />
<Label
Grid.Row="1"

View File

@@ -964,6 +964,7 @@
Foreground="{Binding Path=InsuranceNumber, Converter={StaticResource Validation2BrushConverter}, ConverterParameter={x:Static shared:ValidationType.CustomerVersichertennummer}}"
Text="{Binding Path=InsuranceNumber, UpdateSourceTrigger=PropertyChanged}"
ToolTip="{Binding Path=InsuranceNumber, Converter={StaticResource Validation2TooltipConverter}, ConverterParameter={x:Static shared:ValidationType.CustomerVersichertennummer}}"
ToolTipService.InitialShowDelay="0"
ToolTipService.ShowOnDisabled="True" />
<Label
Grid.Row="6"
@@ -977,6 +978,7 @@
Foreground="{Binding Path=VersichertenStatus, Converter={StaticResource Validation2BrushConverter}, ConverterParameter={x:Static shared:ValidationType.CustomerVersichertenstatus}}"
Text="{Binding Path=VersichertenStatus, UpdateSourceTrigger=PropertyChanged}"
ToolTip="{Binding Path=VersichertenStatus, Converter={StaticResource Validation2TooltipConverter}, ConverterParameter={x:Static shared:ValidationType.CustomerVersichertenstatus}}"
ToolTipService.InitialShowDelay="0"
ToolTipService.ShowOnDisabled="True" />
<Label
x:Name="lblArchiviert"
@@ -2223,9 +2225,10 @@
SelectedValue="{Binding Path=TerminationReason, Mode=TwoWay}" />
<Label
Name="lblFremdHilfe"
Grid.Row="4"
Grid.Column="0"
Name="lblFremdHilfe" Content="{markup:Translate Fremde Hilfen}" />
Content="{markup:Translate Fremde Hilfen}" />
<uc:NullItemComboBox
x:Name="comboBox_Fremdhilfe"
Grid.Row="4"
@@ -2265,9 +2268,10 @@
</Grid>
<Label
Name="lblEinkommenBeginn"
Grid.Row="0"
Grid.Column="2"
Name="lblEinkommenBeginn" Content="{markup:Translate Einkommensart zu Beginn}" />
Content="{markup:Translate Einkommensart zu Beginn}" />
<uc:NullItemComboBox
x:Name="comboBox_EinkommenBeginn"
Grid.Row="0"
@@ -2279,9 +2283,10 @@
ItemsSource="{Binding Path=EinkommenBeginnTypen, Mode=OneWay}"
SelectedValue="{Binding Path=EinkommenBeginnType, Mode=TwoWay}" />
<Label
Name="lblEinkommenEnde"
Grid.Row="1"
Grid.Column="2"
Name="lblEinkommenEnde" Content="{markup:Translate Einkommensart zum Ende}" />
Content="{markup:Translate Einkommensart zum Ende}" />
<uc:NullItemComboBox
x:Name="comboBox_EinkommenEnde"
Grid.Row="1"
@@ -2294,9 +2299,10 @@
SelectedValue="{Binding Path=EinkommenEndeType, Mode=TwoWay}" />
<Label
Name="lblHilfenRegion"
Grid.Row="2"
Grid.Column="2"
Name="lblHilfenRegion" Content="{markup:Translate Region der Hilfe}" />
Content="{markup:Translate Region der Hilfe}" />
<uc:NullItemComboBox
x:Name="comboBox_HilfenRegion"
Grid.Row="2"
@@ -2309,9 +2315,10 @@
SelectedValue="{Binding Path=RegionType, Mode=TwoWay}" />
<Label
Name="lblSozSchwierigkeiten"
Grid.Row="3"
Grid.Column="2"
Name="lblSozSchwierigkeiten" Content="{markup:Translate Soziale Schwierigkeiten}" />
Content="{markup:Translate Soziale Schwierigkeiten}" />
<uc:NullItemComboBox
x:Name="comboBox_SozSchwierigkeiten"
Grid.Row="3"
@@ -2323,9 +2330,10 @@
ItemsSource="{Binding Path=SozSchwierigkeitenTypen, Mode=OneWay}"
SelectedValue="{Binding Path=SozSchwierigkeitenType, Mode=TwoWay}" />
<Label
Name="lblSozBeziehungen"
Grid.Row="4"
Grid.Column="2"
Name="lblSozBeziehungen" Content="{markup:Translate Soziale Beziehungen}" />
Content="{markup:Translate Soziale Beziehungen}" />
<uc:NullItemComboBox
x:Name="SozBeziehungen"
Grid.Row="4"

View File

@@ -614,6 +614,7 @@
Foreground="{Binding Path=IKKrankenkasse, Converter={StaticResource Validation2BrushConverter}, ConverterParameter={x:Static shared:ValidationType.OrganisationIKNumber}}"
Text="{Binding Path=IKKrankenkasse, UpdateSourceTrigger=PropertyChanged}"
ToolTip="{Binding Path=IKKrankenkasse, Converter={StaticResource Validation2TooltipConverter}, ConverterParameter={x:Static shared:ValidationType.OrganisationIKNumber}}"
ToolTipService.InitialShowDelay="0"
ToolTipService.ShowOnDisabled="True" />
</DockPanel>
@@ -630,7 +631,8 @@
Foreground="{Binding Path=Leistungserbringergruppe, Converter={StaticResource Validation2BrushConverter}, ConverterParameter={x:Static shared:ValidationType.OrganisationLeistungserbringergruppe}}"
Text="{Binding Path=Leistungserbringergruppe, UpdateSourceTrigger=PropertyChanged}"
ToolTip="{Binding Path=Leistungserbringergruppe, Converter={StaticResource Validation2TooltipConverter}, ConverterParameter={x:Static shared:ValidationType.OrganisationLeistungserbringergruppe}}"
ToolTipService.ShowOnDisabled="True" />
ToolTipService.ShowOnDisabled="True"
ToolTipService.InitialShowDelay="0"/>
<Button
x:Name="btn_ik"
@@ -716,7 +718,8 @@
IsEnabled="False"
Text="{Binding Path=BezDatenannahmestelle, UpdateSourceTrigger=PropertyChanged}"
ToolTip="{Binding Path=BezDatenannahmestelle, Converter={StaticResource Validation2TooltipConverter}, ConverterParameter={x:Static shared:ValidationType.OrganisationBezDatenannahmestelle}}"
ToolTipService.ShowOnDisabled="True" />
ToolTipService.ShowOnDisabled="True"
ToolTipService.InitialShowDelay="0"/>
<Label
Grid.Row="1"
@@ -773,7 +776,8 @@
IsEnabled="False"
Text="{Binding Path=IKDatenannahmestelle, UpdateSourceTrigger=PropertyChanged}"
ToolTip="{Binding Path=IKDatenannahmestelle, Converter={StaticResource Validation2TooltipConverter}, ConverterParameter={x:Static shared:ValidationType.OrganisationIKNumber}}"
ToolTipService.ShowOnDisabled="True" />
ToolTipService.ShowOnDisabled="True"
ToolTipService.InitialShowDelay="0"/>
<Label
Grid.Row="5"
Grid.Column="3"
@@ -788,7 +792,8 @@
IsEnabled="False"
Text="{Binding Path=IKKostentrager, UpdateSourceTrigger=PropertyChanged}"
ToolTip="{Binding Path=IKKostentrager, Converter={StaticResource Validation2TooltipConverter}, ConverterParameter={x:Static shared:ValidationType.OrganisationIKNumber}}"
ToolTipService.ShowOnDisabled="True" />
ToolTipService.ShowOnDisabled="True"
ToolTipService.InitialShowDelay="0"/>
</Grid>
</GroupBox>
<GroupBox

View File

@@ -747,6 +747,7 @@
Header="{t:Translate Wohneinheit}"
IsEnabled="{Binding Path=IsNew, Converter={StaticResource BoolReverseConverter}}"
ToolTip="{Binding Path=IsNew, Converter={StaticResource IsNewToTooltip}, ConverterParameter='Sie müssen zuerst das Wohnheim speichern'}"
ToolTipService.InitialShowDelay="0"
ToolTipService.ShowOnDisabled="True"
Visibility="{Binding Path=PermissionWohneinheitTabitemView, Converter={StaticResource BoolVisibilityConverter}}">
<TabControl