Note that there are some explanatory texts on larger screens.

plurals
  1. PODataContext is Not Accesible so the Binding is not happening i guess
    primarykey
    data
    text
    <pre><code> &lt;Grid&gt; &lt;CheckBox Content="Select All" IsChecked="{Binding Path=SelectAll}"/&gt; &lt;TextBlock Grid.Column="1" Text="Filter by:" /&gt; &lt;RadioButton IsChecked="{Binding Path=All}" GroupName="filterGroup" Content="All" /&gt; &lt;RadioButton IsChecked="{Binding Path=NShared}" GroupName="filterGroup" Content="Not Shared" /&gt; &lt;/Grid&gt; &lt;GroupBox Header="Members" Style="{StaticResource CenteredHeaderGroupBoxStyle}" Width="330"&gt; &lt;GroupBox.HeaderTemplate&gt; &lt;DataTemplate&gt; &lt;Border Width="320"&gt; &lt;Grid HorizontalAlignment="Center" Width="320"&gt; &lt;ToggleButton Name="LeftButton" Command="{Binding Path=MemeberButtonSelected}"/&gt; &lt;ToggleButton Name="RightButton" IsChecked="{Binding Path=GroupSelected}"/&gt; &lt;/Grid&gt; &lt;/Border&gt; &lt;/DataTemplate&gt; &lt;/GroupBox.HeaderTemplate&gt; &lt;GroupItem&gt; &lt;Border&gt; &lt;ListBox Name="GroupMemberList"&gt; &lt;ListBox.Style&gt; &lt;Style&gt; &lt;Style.Triggers&gt; &lt;DataTrigger Binding="{Binding Path=GroupSelected}" Value="True"&gt; &lt;Setter Property="ListBox.ItemsSource" Value="{Binding Path=GroupsoftheCase}"/&gt; &lt;Setter Property="ListBox.ItemTemplate" Value="{StaticResource GroupListTemplate}"/&gt; &lt;Setter Property="ListBox.SelectedValue" Value="{Binding Path=SelectedGroups}"/&gt; &lt;/DataTrigger&gt; &lt;DataTrigger Binding="{Binding Path=MemberSelected}" Value="True"&gt; &lt;Setter Property="ListBox.ItemsSource" Value="{Binding Path=MembersoftheCase}"/&gt; &lt;Setter Property="ListBox.ItemTemplate" Value="{StaticResource MembersListTemplate}"/&gt; &lt;Setter Property="ListBox.SelectedValue" Value="{Binding Path=SelectedMembers}"/&gt; &lt;/DataTrigger&gt; &lt;/Style.Triggers&gt; &lt;/Style&gt; &lt;/ListBox.Style&gt; &lt;/ListBox&gt; &lt;/Border&gt; &lt;/GroupItem&gt; &lt;/GroupBox&gt; </code></pre> <p></p> <p>The ToggleButton Binding is Not working the Properties/Commands are existing in the DataContext of the View</p> <p>but the output says </p> <blockquote> <p>System.Windows.Data Error: 40 : BindingExpression path error: 'MemeberButtonSelected' property not found on 'object' ''String' (HashCode=-1399923548)'. BindingExpression:Path=MemeberButtonSelected; DataItem='String' (HashCode=-1399923548); target element is 'ToggleButton' (Name=''); target property is 'Command' (type 'ICommand')</p> </blockquote> <hr> <blockquote> <p>System.Windows.Data Error: 40 : BindingExpression path error: 'GroupSelected' property not found on 'object' ''String' (HashCode=-1399923548)'. BindingExpression:Path=GroupSelected; DataItem='String' (HashCode=-1399923548); target element is 'ToggleButton' (Name=''); target property is 'IsChecked' (type 'Nullable`1')</p> </blockquote> <p>i have also tried the Relative Source </p> <p>as </p> <pre class="lang-xml prettyprint-override"><code> IsChecked="{Binding Path=MemberSelected, RelativeSource={RelativeSource AncestorType={x:Type GroupBox}}}" </code></pre> <p>for one of the Toggle buttons and its of no Use only the String in the output will change to object thats all</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload