스타일을 지정하기 위해 mahapp.metro를 사용하는 작은 WPF 응용 프로그램이 있습니다. 아래 예와 비슷한 코드가 포함 된 7 개의 텍스트 상자가 창에 있습니다. 응용 프로그램을 실행할 때 가능하면 90 % 이상의 CPU가 필요합니다. TextBoxHelper.IsWaitingForData = "True"컨트롤을 삭제하면 cpu 사용량이 거의 0 %로 떨어졌으며 어떤 문제도 찾을 수 없었습니다. TextBoxHelper.IsWaitingForData의 의미는 무엇입니까? IsWaitingForData
속성이는 true Effect
로 설정되어컨트롤은 무엇입니까 : TextBoxHelper.IsWaitingForData do?
<Canvas Grid.Column="0" Grid.Row="1">
<TextBox x:Name="SecurityStatusTextBox" HorizontalAlignment="Left" TextWrapping="Wrap" VerticalAlignment="Top" IsReadOnly="True" Text="{Binding SelectedSecurityStatus, Mode=OneWay}"
Margin="50,50,0,0" Height="50" Width="250" FontSize="16"
controls:TextBoxHelper.ClearTextButton="True"
controls:TextBoxHelper.IsWaitingForData="True"
controls:TextBoxHelper.UseFloatingWatermark="True"
controls:TextBoxHelper.Watermark="{x:Static properties:Resources.SecurityStatus}"/>
<TextBox x:Name="BagTypeTextBox" HorizontalAlignment="Left" TextWrapping="Wrap" VerticalAlignment="Top" IsReadOnly="True" Text="{Binding SelectedBagType, Mode=OneWay}"
Margin="325,50,0,0" Height="50" Width="250" FontSize="16"
controls:TextBoxHelper.ClearTextButton="True"
controls:TextBoxHelper.IsWaitingForData="True"
controls:TextBoxHelper.UseFloatingWatermark="True"
controls:TextBoxHelper.Watermark="{x:Static properties:Resources.BagType}"/>
</Canvas>
하는 것이 도움이 답변을 투표를 기억하십시오 : http://stackoverflow.com/help/privileges/vote-up – mm8