silverlight

Silverlight IsolatedStorage removed when application is shutdown?

末鹿安然 提交于 2019-12-25 02:15:24
问题 From what I can find, seems like the IsolatedStorage supposed to be permanent unless the user delete it manually. And the following thread says so too: Is Silverlight isolated storage treated as permanent, or as a cache? However seems like if I shut down my application and restart it (as I am debugging on debug mode - not sure if that makes a different), the data I stored earlier is gone. For example, just as pseudocode: onClick = let storage = IsolatedStorageSettings.ApplicationSettings let

Cannot foreach through data context

眉间皱痕 提交于 2019-12-25 01:53:59
问题 i want to compare through 2 information, one is user input and second is admin ID in database. in my project, i'm using WCF Ria. i did created one auto-generated Domain Service Class and the code to retrieve everything in tblAdmin was auto-generated. i load the data in this way :: var context = new OrganizationContext(); var x = context.tblAdmins; context.Load(context.GetTblAdminsQuery()); cb1.ItemsSource = x; it can load in this way, but i cannot get the x.adminID with this. so i tried this

Silverlight 5 printing garbled Reports

可紊 提交于 2019-12-25 01:34:38
问题 I am using a C1ReportViewer control, and have already posted a question on the C1 forums, however i thought i would post here as well to see if anyone had run across a similar issue. The control uses the generic silverlight PrintDocument() method. When printing a Crystal Report from this control in Silverlight 5 sometimes the report prints out garbled, meaning different sized text, tapered lines and generally out of position. It also rarely prints the entire report. I have narrowed the issue

How to load XML with special characters using XDocument.Load

自作多情 提交于 2019-12-25 01:33:28
问题 **This is for silverlight application. I have a stream with xml data, which after loading massage the data and generate final file. I start by load using XDocument.Load(stream). One of the file was failing to load and after some research I foung out that one of the element has a value of 'First & Second' and load fails on hitting &. Is it possible to load XML with special characters? ( I am sure the answer is no, but worth asking). Is it possible to preprocess the XML (without performance hit

Are there any limitations on what libraries can be imported in a t4 template?

时间秒杀一切 提交于 2019-12-25 01:28:47
问题 We're trying to learn to use T4 Templates. I have a desire to use the System.Data.Entity.Design.PluralizationServices library in order to better pluralize some Entity Model names within my template, but I've come across some issues in the achievement of this goal. Running code to generate output text. I think this is possible, but if it's not going to work, then there's no need to go any further. (I could call Date.Now.ToString() and get the expected result. I haven't tried anything much more

Silverlight Mouse Events: MouseEnter and MouseLeave conflicts

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-25 01:14:06
问题 I have a collection of buttons in a grid. For each one of these buttons, I want to handle the MouseEnter and MouseLeave events to animate the height of the button (and do some other interesting stuff). It all works good until I start moving my mouse too fast over and off the buttons which eventually cause the events to take place at before the other is complete. What's the best way of making sure the events wait for eachother before being triggered? UPDATE: Going by x0r's advice, I refactored

Datagrid auto scroll to make last row visible

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-25 01:12:42
问题 How do you make a DataGrid always keeping the last row visible? As in automatically scrolling to the bottom when new items are added 回答1: Yes, you can use method ScrollIntoView a pass DataGrid item to this method. XAML: <DataGrid x:Name="DataGrid" Grid.Row="1" Margin="5" AutoGenerateColumns="True" ItemsSource="{Binding Path=Users}"> Code: private ObservableCollection<User> _users; public ObservableCollection<User> Users { get { return _users; } set { _users = value; OnPropertyChanged("Users")

navigation between page windows phone without reloading

强颜欢笑 提交于 2019-12-25 01:10:03
问题 private void btn_friends_pressed(object sender, RoutedEventArgs e) { NavigationService.Navigate(new Uri("/Friends.xaml", UriKind.Relative)); } When I press the button I go to the Friends page, which loads many friends from isolated storage.Than I press "back" button and go to the Menu page, when I press again the button, I have "Operation not permitted on IsolatedStorageFileStream." message. How I can not reload page and keep it in RAM. Something like: if (Friends.Page.IsRunning==true)

Why might a silverlight ListBox on Windows Phone not allow me scroll all the way down to the bottom?

末鹿安然 提交于 2019-12-25 01:09:07
问题 I have a ListBox in a grid that gets databound when the page loads... pretty straightforward. The problem I'm having is that, after the box is databound, I can scroll... but not all the way to the bottom of the list. It stops an item or two short and won't let me scroll anymore. Here's the listbox XAML: <Grid x:Name="ContentGrid" Grid.Row="2"> <ListBox x:Name="lbFeed" ItemsSource="{Binding Items}" SelectionChanged="lbFeed_SelectionChanged" VerticalAlignment="Top" Width="480"> <ListBox

How to integrate silverlight into aspx?

狂风中的少年 提交于 2019-12-25 00:51:52
问题 I have created a Silverlight application now I want to embed it into my aspx page. Is there any video tutorial for this, which explains how to integrate silverlight in aspx page? 回答1: In your web project, make sure you've included a reference to the silverlight application so the .xap file will be in the clientbin folder. Right-click on your web project and select Properties. Select the Silverlight Applications tab on the left. Click the Add... button and select your existing Silverlight