Dove il mio ActivityDesigner ToggleButton andare?
-
30-09-2019 - |
Domanda
E 'scomparso!
sto usando l'ActivityDesigner standard di w / pieghevole UI esempio:
<sap:ActivityDesigner
x:Class="WHATTHEEFF.WhaHappenToMe"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:sap="clr- namespace:Blah blah standard stuff here"
Collapsible="True">
<sap:ActivityDesigner.Resources>
<DataTemplate
x:Key="DTC">
<TextBlock
Text="Collapsed" />
</DataTemplate>
<DataTemplate
x:Key="DTE">
<TextBlock
Text="Expanded" />
</DataTemplate>
<Style
x:Key="SC"
TargetType="ContentPresenter">
<Setter
Property="ContentTemplate"
Value="{DynamicResource DTC}" />
<Style.Triggers>
<DataTrigger
Binding="{Binding Path=ShowExpanded}"
Value="true">
<Setter
Property="ContentTemplate"
Value="{DynamicResource DTE}" />
</DataTrigger>
</Style.Triggers>
</Style>
</sap:ActivityDesigner.Resources>
<ContentPresenter
Content="{Binding}"
Style="{DynamicResource SC}" />
</sap:ActivityDesigner>
Soluzione
Derp.
l'attivitàRoot non è comprimibile, quindi se si rilascia un'attività su di un vuoto flusso di lavoro che l'attività non sarà pieghevole. attività bambino sarà.
Indovinate testare il modello collasso facendo cadere la vostra attività in un flusso di lavoro vuoto non è l'idea migliore.
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow