silverlight-3.0

WP7: Conditionally show & hide control elements in Data Templates

旧巷老猫 提交于 2019-12-13 03:38:53
问题 I have a note application with a ListBox control, which lists all the available notes from the ObservableCollection<Note> Notes . class Note has attributes like String Title; bool Has_Reminder; DateTime Reminder_Date; What I want is that the TextBlock element, which shows the Reminder_Date , is only shown, if Has_Reminder is true. But I do not know how to access this attribute from my custom control NoteListItem. Its this.DataContext attribute is null , but the control still properly displays

How to set the PlayList Index for Mediaplayer(ExpressionMediaPlayer:Mediaplayer)

烈酒焚心 提交于 2019-12-13 03:23:59
问题 I have a Mediaplayer control on my XAML page like below: <CustomMediaElement:CustomMediaPlayer x:Name="custMediaElement" VerticalAlignment="Center" Width="600" Height="300" Visibility="Collapsed" /> Now I am ble to set the playList by using setPlayList() method like below: private void setPlayList() { IEnumerable eLevelData = null; eLevelData = pMainPage.GetDataFromDictonary(pMainPage.strChildFolderID); foreach (RMSMedia folderItems in eLevelData) { string strmediaURL = folderItems

InvokeOperation entities become null

可紊 提交于 2019-12-13 03:16:39
问题 This is my method :- [Invoke] public List<FamilyEvent> GetFamilyEvents(int userId) { List<FamilyEvent> familyEvents = new List<FamilyEvent>(); int id = -1; //just to fool ria //this is for birthday reminders. var qry = ((from member in this.ObjectContext.TreeMembers.Where(m => m.UserId == userId && m.Birthdate == null) select member.TreeMemberId).Except(from item in this.ObjectContext.FamilyEvents where item.ReminderType == FMT.Data.Web.Helpers.Global.FAMILY_EVENTS_REMINDERS.BIRTHDAY_REMINDER

ListBox.ItemTemplate with a custom control template inside DataTemplate

↘锁芯ラ 提交于 2019-12-13 00:25:15
问题 I'm developing a Windows Phone application. I have defined a ListBox.ItemTemplate's DataTemplate as follows: <ListBox Margin="10,10,8,8" x:Name="ChoicesList"> <ListBox.ItemsPanel> <ItemsPanelTemplate> <StackPanel /> </ItemsPanelTemplate> </ListBox.ItemsPanel> <ListBox.ItemTemplate> <DataTemplate> <Grid x:Name="ListBoxItemLayout" Background="Transparent" Margin="10"> <Grid.ColumnDefinitions> <ColumnDefinition Width="0.281*"/> <ColumnDefinition Width="0.719*"/> </Grid.ColumnDefinitions> <Image

Silverlight and web application common library

岁酱吖の 提交于 2019-12-12 23:51:44
问题 Hello I have an application that had been done on Silverlight, exist a lot of classes inside of this application. I need to create new application that should you some classes from Silverlight app. I decide make refactoring and move this classes to external library and add like reference to Silverlight and My new web site. But Silverlight doesn't allow to use normal libraries i need use just special Silverlight class library. How I can resolve this issue ? 回答1: You can create a Portable Class

How to Play Youtube video in silverlight3.0

蓝咒 提交于 2019-12-12 18:45:15
问题 I am developing a silverlight application in which i want to play youtube video. Any Suggestions plz. Any samples or any links for this to refer. Thanks in advance 回答1: here's an intersting thread about this issue, with some samples in SL 3.0 beta: http://silverlight.net/forums/t/53008.aspx hope it helps 回答2: http://slyi.silverlight.googlepages.com/youtube2.html was working. Now the link used is wrong, but if you change it that example still works! 来源: https://stackoverflow.com/questions

How to refresh ListBox.ItemsSource in a SilverLight 3 project?

霸气de小男生 提交于 2019-12-12 16:09:15
问题 I my XAML, I have a ListBox defined <ListBox x:Name="lstStatus" Height="500" Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="3" VerticalAlignment="Top" Margin="2, 2, 2, 2"> <ListBox.ItemTemplate> <DataTemplate> <StackPanel Orientation="Horizontal"> <Image /> <TextBlock Width="70" Text="{Binding FriendlyID}" /> <TextBlock Width="150" Text="{Binding StatusName}" /> <TextBlock Width="70" Text="{Binding ANI}" /> </StackPanel> </DataTemplate> </ListBox.ItemTemplate> <ListBox.Effect>

Silverlight - Binding an image which is using https

ぃ、小莉子 提交于 2019-12-12 14:33:25
问题 I have an image stored which I can view in a browser using http and https. However, when I bind these url's to my image source I can only see the one which uses http. Any way for silverlight to support https images? 回答1: Seems to be a problem with the cross-domain / cross-scheme security restrictions in Silverlight. Here might be a good place to start looking: http://msdn.microsoft.com/en-us/library/cc189008(VS.95).aspx You can access resources with a cross-scheme URL (allowed between HTTP

How does one change the background color for a loading out-of-browser Silverlight 3 application?

梦想与她 提交于 2019-12-12 13:43:05
问题 When running our Silverlight 3 application out-of-browser, startup takes a little time, but it's long enough to be noticeable. During this startup, the background of the window hosting the application displays an ugly white background color. When running in-browser, we have a splash screen, but that's loaded via JavaScript of course. How can I get a splash screen working for an out-of-browser Silverlight 3? Or if that's not possible, is there a way I can at least change the background color

WCF Service Communication Exception Due to Parameter Size

假如想象 提交于 2019-12-12 12:04:59
问题 I've got a WCF Web MEthod that takes in an XElement object as a parameter. For one of my XML files (sized at 600KB or so) this works just fine, however, for this bigger XML file (about 5MB) I get a CommunicationException right away. I've already increased the message sizes for my binding. Below is the ServiceModel section of my web.config: <system.serviceModel> <behaviors> <serviceBehaviors> <behavior name="BIMIntegrationWS.metadataBehavior"> <serviceMetadata httpGetEnabled="true" />