Coproject - a RIA Caliburn.Micro demo, part 10.5
2015-09-03 06:39
399 查看
If you watched CPU usage after implementing BusyIndicator, you might notice major increase in CPU usage on To do module after the list is loaded for the first time.
It is a common issue with BusyIndicator: Silverlight forum, Silverlight
toolkit issue, Appsolo blog but the solution is not obvious or easy to find. So I’ve spent some time and figured out that the excessive CPU usage
is caused by ProgressBar that is present in BusyIndicator. After googling for a while, I ran into this forum but that was all about it. Fortunately,
recently I saw Silveright TV episode 57. I strongly recommend to watch the video.
Now, let's apply the new knowledge on Coproject. Edit App.xaml.cs
Run the application and reload the list (be careful if you have epilepsy!). As you can see, we have a problem.
Now, let's do what was suggested in the video. So, edit ShellView to begin as follows:
And then just update LeftBorderStyle in Custom.xaml:
Run the application again and you should see we're fine now.
High CPU usage with BusyIndicator and ProgressBar
It is a common issue with BusyIndicator: Silverlight forum, Silverlighttoolkit issue, Appsolo blog but the solution is not obvious or easy to find. So I’ve spent some time and figured out that the excessive CPU usage
is caused by ProgressBar that is present in BusyIndicator. After googling for a while, I ran into this forum but that was all about it. Fortunately,
recently I saw Silveright TV episode 57. I strongly recommend to watch the video.
Now, let's apply the new knowledge on Coproject. Edit App.xaml.cs
private void Application_Startup(object sender, StartupEventArgs e) { Application.Cur 4000 rent.Host.Settings.EnableRedrawRegions = true; }
Run the application and reload the list (be careful if you have epilepsy!). As you can see, we have a problem.
Now, let's do what was suggested in the video. So, edit ShellView to begin as follows:
<Grid x:Name="LayoutRoot"> <Border Style="{StaticResource ContentBorderStyle}"> <ContentControl Style="{StaticResource LogoIcon}"/> </Border> <Border Style="{StaticResource LeftBorderStyle}"/> <TextBlock Text="Coproject" Style="{StaticResource ApplicationTitleStyle}" /> ...
And then just update LeftBorderStyle in Custom.xaml:
<Style x:Key="LeftBorderStyle" BasedOn="{StaticResource LinksBorderStyle}" TargetType="Border"> <Setter Property="Margin" Value="10,135,25,0"/> </Style>
Run the application again and you should see we're fine now.
相关文章推荐
- Coproject - a RIA Caliburn.Micro demo, part 12
- Coproject - a RIA Caliburn.Micro demo, part 14
- Coproject - a RIA Caliburn.Micro demo, part 13
- Nginx 配置常见误区
- Linux学习之grep篇
- Hadoop学习计划
- Clustered Shading架构实现步骤
- wcf利用IDispatchMessageInspector实现接口监控日志记录和并发限流
- Nginx的作用
- centos7关闭防火墙
- hadoop学习(一)-- centos 64位编译安装hadoop
- nginx完美支持thinkphp3.2.2
- linux 常用命令记录
- Ubuntu下 5步安装nginx记录
- nginx启动、停止、重启、配置文件校验
- 在linux中添加ftp用户,并设置相应的权限
- Linux下解压rar格式的压缩文件
- tomcat异常之org.apache.catalina.LifecycleException:
- linux,windows双系统共享鼠标键盘
- 开发一个安全的小网站(一)加密关键数据