无法使用可写位图方法从定期任务创建活动图块 [英] Unable to create live tile from periodic task with writable bitmap method
问题描述
我想使用页面的UIelement用可写位图方法创建图块.
I want to create tiles with writable bitmap method using UIelement of page.
现在的情况是我有两个项目.
Now scenario is I have two projects.
1.主项目(包含所有视图和逻辑)
1. Main project (It holds all views and logic)
2. Windows Phone计划任务代理(用于定期任务)
2. Windows Phone Schedule Task Agent (For Periodic Tasks)
在我的计划任务代理项目中,我正在运行一些用于定期任务的方法,并且我想定期创建一些图块并希望存储在我的隔离存储中,并且这些图块将通过提供UIelement通过可写位图方法创建.
In my schedule task agent project, I am running some methods for periodic tasks and I want to create some tiles periodically and want to store in my isolated storage and these tiles will be created through writable bitmap method by providing UIelement.
我的Schedule任务项目被引用到我的Main Project,因为我需要以此触发我的定期任务.在我的日程安排代理程序"项目中,我想获取一些页面UI元素,但是在此项目中无法访问,因为此处未引用.什么时候 我尝试添加它说的主要项目的参考.由于循环依赖性,无法添加引用.因此,我无法从定期任务中创建实时图块.
My Schedule task project is referenced to my Main Project as I need to trigger my periodic tasks through this. In My Scheduling Agent Project I want to get some Page UI Elements But Its not accessible in this project as its not referenced here. And when I try to add reference of main project it says. Unable to add reference due to circular dependency. Due To this I am Unable To create live tiles from periodic tasks.
任何解决此问题的方法.
Any work around to tackle that.
推荐答案
您应该在新程序集中为图块创建UserControl.如果需要,您将能够在您的代理和主项目中引用此程序集.
You're supposed to create the UserControl for your tiles in a new assembly. You will be able to reference this assembly in your agent and in your main project if needed.
这篇关于无法使用可写位图方法从定期任务创建活动图块的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!