1
我試圖找出是否可以在SketchFlow/ExpressionBlend中設置具有ChangeProperty行爲的按鈕的Enabled屬性。在行爲中似乎沒有Enabled屬性可用。 謝謝! 條例草案SketchFlow如何設置按鈕啓用真/假的行爲
我試圖找出是否可以在SketchFlow/ExpressionBlend中設置具有ChangeProperty行爲的按鈕的Enabled屬性。在行爲中似乎沒有Enabled屬性可用。 謝謝! 條例草案SketchFlow如何設置按鈕啓用真/假的行爲
這是xaml,做你在上面提到的(在silverlight中)。它在WPF中的工作方式相同。該屬性被命名爲IsEnabled,如果這是混淆的來源:
<UserControl
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity" xmlns:ei="http://schemas.microsoft.com/expression/2010/interactions"
x:Class="SilverlightApplication7.MainPage"
Width="640" Height="480">
<Grid x:Name="LayoutRoot" Background="White">
<Button x:Name="button" Content="Button" HorizontalAlignment="Left" Height="58" Margin="225,124,0,0" VerticalAlignment="Top" Width="79"/>
<Button Content="Button" HorizontalAlignment="Left" Margin="225,230,0,207" Width="50">
<i:Interaction.Triggers>
<i:EventTrigger EventName="Click">
<ei:ChangePropertyAction TargetName="button" PropertyName="IsEnabled" Value="False"/>
</i:EventTrigger>
</i:Interaction.Triggers>
</Button>
</Grid>
</UserControl>
就是這樣。我使用的是EB3,我不認爲它具有用於按鈕的IsEnabled的交互。謝謝!!當然,感謝幫助! – 2010-09-30 16:45:29