我有以下命令:
<Button x:Name="bOpenConnection" Content="Start Production" Grid.Row="0" Grid.Column="0" Height="30" Width="120" Margin="10" HorizontalAlignment="Left" VerticalAlignment="Top" Command="{Binding Path=StartProductionCommand}"/>
StartProductionCommand = new RelayCommand(OpenConnection,CanStartProduction); private bool CanStartProduction() { return LogContent != null && !_simulationObject.Connected; }
仅当我重新调整UI大小并且未动态更新时才会检查CanStartProduction.
知道为什么每次更改值都没有更新?