¿Dónde mi ActivityDesigner togglebutton ir?
-
30-09-2019 - |
Pregunta
Desapareció!
estoy usando el ActivityDesigner estándar w ejemplo / plegable UI:
<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>
Solución
Derp.
la actividadRoot no es plegable, por lo que si se le cae una actividad en un espacio en blanco flujo de trabajo que la actividad no va a ser plegable. actividades infantiles serán.
Guess probar su plantilla colapso dejando caer su actividad en un flujo de trabajo vacío no es la mejor idea.
Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow