Click here to Skip to main content
15,890,690 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hello everyone,

I have a problem with one of my Visibility Bindings.
In my application I have a Textbox and a combobox at nearly the same place.
They are overlapping so I have two Variables in the background for their Visibility. They are in a Datagrid, so the Visibility Source will be provided from the list.

The Binding of my Combobox works absolutely fine, but the one of my Textbox doesn't

Here is my Code:
XML
<TextBox x:Name="Textvalue"  HorizontalAlignment="Left" VerticalAlignment="Center" Width="150" BorderBrush="#FF383F55" BorderThickness="0" Foreground="White" removed="#FF232734"
                                                             Text="{Binding Path=Value, UpdateSourceTrigger=PropertyChanged}"
                                                             Visibility="{Binding Path=IsPath}"/>
                                                    <ComboBox x:Name="Combobox" VerticalAlignment="Center" Foreground="White" Margin="3,3,3,3" Height="23"
                                                              ItemsSource="{Binding Path=ValueArray}" 
                                                              SelectedValue="{Binding Path=Value, UpdateSourceTrigger=PropertyChanged}" 
                                                              Style="{DynamicResource ComboBoxStyle1}" 
                                                              Visibility="{Binding Path=IsCombobox}"/>


These are my Get Property for both (Both only have the Get Proberty):
C#
public System.Windows.Visibility isPath
        {
            get
            {
                return _IsPath;
            }
        }

C#
public System.Windows.Visibility IsCombobox
        {
            get
            {
                return _IsCombobox;
            }
        }


I hope you can help me because I don't know what's wrong here :/
Thanks in advance

What I have tried:

Tried to change the binding to a different Variable.
Posted
Updated 6-Jun-16 21:33pm
Comments
Sergey Alexandrovich Kryukov 7-Jun-16 3:38am    
What does it mean "doesn't work", exactly?
—SA

1 solution

Please check the casing.. in code "Path=IsPath", but your Property = isPath
 
Share this answer
 
Comments
Evosoul04 7-Jun-16 3:38am    
Thanks a lot. Pretty dissappointing that i couldn't figure it out for myself....

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

  Print Answers RSS


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900