Note that there are some explanatory texts on larger screens.

plurals
  1. POI am not Able to Access Name "LeftButton" and "Right Button" From The Place OF Listbox.triggers
    text
    copied!<pre><code>&lt;GroupBox BorderThickness="0" Grid.Row="1" Header="Members" Style="{StaticResource CenteredHeaderGroupBoxStyle}"&gt; &lt;GroupBox.HeaderTemplate&gt; &lt;DataTemplate&gt; &lt;Border&gt; &lt;Grid HorizontalAlignment="Center"&gt; &lt;ToggleButton Name="LButton" Content="Members" Style="{StaticResource TabL}" /&gt; &lt;ToggleButton Name="RButton" Content="Groups" Style="{StaticResource TabR}" /&gt; &lt;/Grid&gt; &lt;/Border&gt; &lt;/DataTemplate&gt; &lt;/GroupBox.HeaderTemplate&gt; &lt;GroupItem&gt; &lt;Border&gt; &lt;ListBox Name="GroupMemberList" ItemsSource="{Binding Path=MembersoftheCase}"&gt; &lt;ListBox.Triggers&gt; &lt;Trigger SourceName="LButton" Property="IsChecked" Value="True"&gt; &lt;Setter Property="ListBox.ItemsSource" Value="{Binding Path=MembersoftheCase}"/&gt; &lt;Setter Property="ListBox.ItemTemplate" Value="{StaticResource MListTemplate}"/&gt; &lt;/Trigger&gt; &lt;Trigger SourceName="RButton" Property="IsChecked" Value="True"&gt; &lt;Setter Property="ListBox.ItemsSource" Value="{Binding Path=GroupsoftheCase}"/&gt; &lt;Setter Property="ListBox.ItemTemplate" Value="{StaticResource GListTemplate}"/&gt; &lt;/Trigger&gt; &lt;/ListBox.Triggers&gt; &lt;/ListBox&gt; &lt;/Border&gt; </code></pre> <p> </p> <p>i am Getting Exception at Compile Time the Designer is Not getting Loaded because of this Error</p> <blockquote> <p>The property 'SourceName' does not represent a valid target for the 'Trigger' because an element named 'LButton' was not found. Make sure that the target is declared before any Setters, Triggers or Conditions that use it.</p> </blockquote> <p>i have also tried putting the Triggers at Buttons itself making GroupmembersList as the Target</p> <p>then the TargetName Could not be found is coming</p> <p>F1 F1</p>
 

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