silverlight-4.0

Web Browser Control with vertical bar and navigation to bottom method!

送分小仙女□ 提交于 2019-12-13 03:32:18
问题 i am adding html to silverlight's web browser control .what i want is , web browser control always navigated to the bottom and web browser control to show horizontal and vertical bar. thanks jamal. 回答1: the solution is in this thread. check this 来源: https://stackoverflow.com/questions/3475751/web-browser-control-with-vertical-bar-and-navigation-to-bottom-method

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

Silverlight client, datacontract, and private readonly members

懵懂的女人 提交于 2019-12-13 02:59:25
问题 I have a Silverlight client and a WCF service that I want to have share a class: [DataContract] public class DatesAreFun { [DataMember] private readonly DateTime _date; [DataMember] private readonly bool _isFun; public DateTime DateTime { get { return _date; } } public bool IsFun { get { return _isFun; } } public DatesAreFun(DateTime date, bool isFun) { _date = date; _isFun = fun; } } The WCF side seems to send the appropriate data across the wire just fine, but the Silverlight side doesn't

Add a site to Silverlight permissions tab

允我心安 提交于 2019-12-13 02:39:49
问题 I have an intranet site that uses a Silverlight application to take pictures with the WebCam of the computer. Testing the site on a Development environment works fine but testing the site on a QA environment wont display any image. Looking more in deep on both sites I see that the Silverlight permissions tab has define "ALLOW" to the Development URL but the QA url does not appear at all on the permissions tab. How can I add the URL of the QA site to the permissions tab on the Silverlight

“Or” Together Expression<Func<EntityFramework Entity, bool>> in .NET 4, Silverlight RIA domain service

余生颓废 提交于 2019-12-13 02:37:38
问题 I have a small custom object defined as: public class TimeSeriesDefinition { public int classID; public DateTime startTime; public DateTime endTime; } I'm passing a List classIDs, a List startTimes, and a List endTimes into an RIA Domain Service function. As a matter of organization, I was grouping these values into a List of TimeSeriesDefinitions and then trying to use a foreach loop to create an expression that would select with AND operators between the values in a class and OR operators

Getting AG_E_PARSER_BAD_PROPERTY_VALUE while data binding in WP7 User control

孤人 提交于 2019-12-13 02:17:24
问题 I have created a user control in Silverlight which basically animates the size of a rectangle. <StackPanel x:Name="LayoutRoot" Background="Gray"><StackPanel.Resources> <Storyboard x:Name="myStoryboard" Completed="myStoryboard_Completed"> <DoubleAnimation x:Name="ExpandY" From="{Binding Path=From}" To="{Binding Path=To}" Duration="00:00:2" Storyboard.TargetName="myScaleTransform" Storyboard.TargetProperty="ScaleY"> <DoubleAnimation.EasingFunction> <BackEase Amplitude="0.0" EasingMode=

Making a Wizard in Silverlight + Xaml

久未见 提交于 2019-12-13 00:37:58
问题 I have a Silverlight application and I am trying to make each step of a wizard in XAML files, instead of hard-coded C#. The problem is that I don't understand how I am going to switch between them after click on next button of each screen. What is the best way to do this? I saw some tutorials on the internet about XAML dynamically loaded but none of them seem to work with me :/ 回答1: Use a ChildWindow as your parent window. Then create multiple UserControls which will be framed in the content

silverlight 4 RIA update item in domaindatasource only updates after refresh

久未见 提交于 2019-12-12 21:51:23
问题 I have created a silverlight app and have a listbox that is populated using a domaindatasource. I have created a button that takes the selected list item and updates a field (in my case its called IsDeleted) my domain service looks like this public IQueryable<Employee> GetEmployees(int storeID) { return this.ObjectContext.Employees.Where(e=>(e.StoreID==storeID)&&(e.IsDeleted==false)); } In my button event I am doing this EmployeeRecord.IsDeleted = true; dsEmployee.SubmitChanges(); The

Getting a notification when focus changes in Silverlight 4?

好久不见. 提交于 2019-12-12 21:27:51
问题 I'm trying to debug some issues with missing/extra tab stops. Is there some kind of global event that I can attach to so that I can log which element got focus whenever focus changes? Thanks! Here's what I'm doing right now, which works well enough, but I'm still curious as to whether there's another way: DispatcherTimer timer = new DispatcherTimer(); timer.Interval = TimeSpan.FromSeconds(0.2); timer.Tick += onTick; timer.Start(); // ... private object LastFocusedElement; private void onTick

Converting colour in Windows Phone

自古美人都是妖i 提交于 2019-12-12 20:08:29
问题 In my Windows Phone application I get the colour from xml and then bind it to some element. I have found that I get the wrong colour in my case. Here is my code: var resources = feedsModule.getResources().getColorResource("HeaderColor") ?? FeedHandler.GetInstance().MainApp.getResources().getColorResource("HeaderColor"); if (resources != null) { var colourText = Color.FromArgb(255,Convert.ToByte(resources.getValue().Substring(1, 2), 16), Convert.ToByte(resources.getValue().Substring(3, 2), 16)