View Issue Details

IDProjectCategoryView StatusLast Update
0001939NoesisGUIC# SDKpublic2021-03-17 23:53
ReporterDavidYawCSpeedAssigned Tosfernandez 
PrioritynormalSeverityminorReproducibilityalways
Status assignedResolutionopen 
Product Version3.0.10 
Target Version3.0.12Fixed in Version 
Summary0001939: Data Trigger in inline Window Style doesn't take effect
DescriptionIn the main window for my application, if I set a window style that includes a data trigger, the data trigger does not happen, and appears to not be processed.
Steps To ReproduceTest 1:
<Window>
    <Window.Style>
        <Style TargetType="{x:Type Window}">
            <Style.Triggers>
                <DataTrigger Binding="{Binding Path=Visibility, ElementName=ThatOtherTextBlock}" Value="Visible">

Result: No effect, no error messages printed. This is the main thing I want to do.

Test 2:
<Window.Style>
    <Style TargetType="{x:Type Window}">
        <Setter Property="Background" Value="Yellow"/>

Result: Background turns yellow. So I am setting the Style properly.

Test 3:
<Canvas>
    <Canvas.Style>
        <Style TargetType="{x:Type Canvas}">
            <Style.Triggers>
                <DataTrigger Binding="{Binding Path=Visibility, ElementName=ThatOtherTextBlock}" Value="Visible">

Result: This works properly. So my data trigger (and the stuff inside of it, which I'm not showing here) is correct.

Test 4:
<Window.Style>
    <Style TargetType="{x:Type Window}">
        <Style.Triggers>
            <DataTrigger Binding="{Binding Path=Visibility, ElementName=DoesNotExist_asdfasdf}" Value="Visible">

Result: No effect. No error messages printed, including no error message about being unable to bind to that element name.
TagsNo tags attached.
PlatformWindows

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2021-03-15 17:55 DavidYawCSpeed New Issue
2021-03-15 17:59 DavidYawCSpeed Steps to Reproduce Updated View Revisions
2021-03-15 18:00 DavidYawCSpeed Steps to Reproduce Updated View Revisions
2021-03-15 18:00 DavidYawCSpeed Steps to Reproduce Updated View Revisions
2021-03-16 18:33 DavidYawCSpeed Summary Data Trigger in Window Style doesn't take effect => Data Trigger in inline Window Style doesn't take effect
2021-03-17 23:53 sfernandez Assigned To => sfernandez
2021-03-17 23:53 sfernandez Status new => assigned
2021-03-17 23:53 sfernandez Target Version => 3.0.12