silverlight

Icon badge overlay for notifications in silverlight/xaml

我的未来我决定 提交于 2019-12-22 14:56:33
问题 I've got a ribbon bar in my silverlight app and on one of the icons I would like for there to be a badge icon showing the number of items in the view that the icon activates. Picture the Mail icon in OS X showing the number of unread messages or the notifications counter on an IOS app icon. I don't know much about xaml styles, but it seems to me I could duplicate the default style for the ribbon bar button, then add to it with some sort of red circle, and a white text that took in its value

Icon badge overlay for notifications in silverlight/xaml

断了今生、忘了曾经 提交于 2019-12-22 14:56:12
问题 I've got a ribbon bar in my silverlight app and on one of the icons I would like for there to be a badge icon showing the number of items in the view that the icon activates. Picture the Mail icon in OS X showing the number of unread messages or the notifications counter on an IOS app icon. I don't know much about xaml styles, but it seems to me I could duplicate the default style for the ribbon bar button, then add to it with some sort of red circle, and a white text that took in its value

Any way to extract underlying Xaml?

别说谁变了你拦得住时间么 提交于 2019-12-22 14:47:33
问题 Is there anyway to extract the underlying xaml from a control. IE. I have a textbox named fooBox. Can I get xaml back from the textbox at runtime that represents the textbox? 回答1: This shows you the full lifecycle (from control to XAML back to control). As you can see, string s = XamlWriter.Save(value); is the interesting part you might care about. /// <summary> /// Clones a given UIElement. Please note that any events, animations, etc /// on the source item may not carry over to the cloned

Case sensitive UriMapper issue in Silverlight 3

…衆ロ難τιáo~ 提交于 2019-12-22 14:41:43
问题 In Navigation API of Silverlight 3 the UriMapper class is case sensitive. For the following uri mapping <nav:Frame Source="/Home"> <nav:Frame.UriMapper> <uriMapper:UriMapper> <uriMapper:UriMapping Uri="" MappedUri="/Views/HomePage.xaml"/> <uriMapper:UriMapping Uri="/entity/{code}" MappedUri="/Views/EntityEditorPage.xaml?code={code}"/> <uriMapper:UriMapping Uri="/{pageName}" MappedUri="/Views/{pageName}Page.xaml"/> </uriMapper:UriMapper> </nav:Frame.UriMapper> </nav:Frame> the "/entity/123" is

Case sensitive UriMapper issue in Silverlight 3

可紊 提交于 2019-12-22 14:41:01
问题 In Navigation API of Silverlight 3 the UriMapper class is case sensitive. For the following uri mapping <nav:Frame Source="/Home"> <nav:Frame.UriMapper> <uriMapper:UriMapper> <uriMapper:UriMapping Uri="" MappedUri="/Views/HomePage.xaml"/> <uriMapper:UriMapping Uri="/entity/{code}" MappedUri="/Views/EntityEditorPage.xaml?code={code}"/> <uriMapper:UriMapping Uri="/{pageName}" MappedUri="/Views/{pageName}Page.xaml"/> </uriMapper:UriMapper> </nav:Frame.UriMapper> </nav:Frame> the "/entity/123" is

Adding additional entities to a Entity Framework backed Domain Service

拟墨画扇 提交于 2019-12-22 14:09:03
问题 We're investigating using RIA Services (July 09 Preview) to expose parts of an existing EF model. We've added a Domain Service class to our web application and specified the EF model to use and selected a few of the entities we wish to make available via the domain service (some have editing enabled, most do not). We build and everything is great, but if we want to add an additional entity to the domain service how do we do that. Is it a case of delete your current class and re-add and this

Adding additional entities to a Entity Framework backed Domain Service

只愿长相守 提交于 2019-12-22 14:08:48
问题 We're investigating using RIA Services (July 09 Preview) to expose parts of an existing EF model. We've added a Domain Service class to our web application and specified the EF model to use and selected a few of the entities we wish to make available via the domain service (some have editing enabled, most do not). We build and everything is great, but if we want to add an additional entity to the domain service how do we do that. Is it a case of delete your current class and re-add and this

Can I access the “ME” contact in Windows Phone 7 (Silverlight)

*爱你&永不变心* 提交于 2019-12-22 13:56:45
问题 I would like to get my hands on some of the phone owner's details like their picture (The one appearing on their "ME" tile. Preferably as a Microsoft.Phone.UserData.Contact Is this possible? Cheers, Fil 回答1: This information is not available via the public APIs. If you want information from the user you have to ask them for it. The security principles behind the design of the platform prevent applications from accessing user data without them explicitly providing it. 来源: https://stackoverflow

Silverlight, RIA Services, MVC2P2 = No Data

南笙酒味 提交于 2019-12-22 13:13:13
问题 I am having trouble upgrading my current project to use RIA Services. I added all the necessary web.config changes but still no luck. I everything compiles fine but when I hit the page using the datacontext I get an error. I debugged with fiddler and I'm getting a 404 on one of the request. I am getting back headers in my grid so some communication is happening but no data is actually coming through. Another thing to note is that my MVC is running windows authentication. I do have a

Split an image into several pieces silverlight windows phone

北城余情 提交于 2019-12-22 12:36:21
问题 I want to split an image into several smaller images using silverlight for windows phone 7.5. First of all, i want to know if this is even possible (i had some unpleasant surprises with windows phone APIs lately), and if it is, just give me some example as i have been able to find exactly none. Thank you for your help. 回答1: WriteableBitmapEx is compatible with Windows Phone and has a Crop method to do exactly that. You just need to do the math to figure out how wide/tall and X/Y coordinates