silverlight

Windows Phone 8.1 Silverlight and XAML

£可爱£侵袭症+ 提交于 2019-12-20 02:12:20
问题 Is there any way I can add XAML controls to my WP 8.1 Silverlight app? I'd like to use progress rings and toggle switches but it seems like Silverlight doesn't have them. How can I add them? Adding a "using Windows.UI.Xaml.Controls" reference doesn't work by the way. 回答1: Windows.UI.Xaml.Controls is Windows Phone 8.1 Runtime only (or better known as Universal App). If you don't like the controls already in Silverlight, Microsoft has release a extended control kit all "Windows Phone Toolkit".

Communicate with the serial port from client web browser.

雨燕双飞 提交于 2019-12-20 02:09:23
问题 In my web application(sencha extjs 5) I have a user requirement to read/write data to the client PC serial port. I am aware of the client browser can not access local machine hardware without installing some binaries on the local machine(Native app, Windows Service, etc..). I have seen the same question is discussed few years back in stackoverflow forums. But I need to know what is the best way of doing this today with the available technologies? 回答1: Well, One way to do this is develop a

Change focused textbox background/foreground in WP7

落爺英雄遲暮 提交于 2019-12-20 02:01:25
问题 Whenever the textbox is focused, the border and foreground of the text is changed according to the current theme: theme light ->border:black, text:white, background:transparent theme dark ->border:white, text:white, background:white I want the textbox always have border:white, text:white, background:transparent I can control these settings when the textbox is not focused, but I cannot change background when it has focus. The XML of the textbox is: <TextBox InputScope="EmailSmtpAddress" Height

MVVM / ObservableCollection Question

旧城冷巷雨未停 提交于 2019-12-20 01:44:00
问题 I have the following XAML: <Grid x:Name="LayoutRoot"> <sdk:DataGrid AutoGenerateColumns="True" Margin="46,38,0,40" x:Name="FamilyListGrid" HorizontalAlignment="Left" Width="475" ItemsSource="{Binding FamilyList}" SelectedItem="{Binding SelectedFamily, Mode=TwoWay}" /> </Grid> My FamilyList property used in the Binding is an ObservableCollection of entities in my view model class. I'm finding that I need to implement INotifyPropertyChanged in the setter of my FamilyList collection or the

Difference between Color and SolidColorBrush clarification

一世执手 提交于 2019-12-20 01:34:07
问题 Ok this has been bugging me and I haven't really found any kind of definitive answer as the the reason/cause of the difference between Color & SolidColorBrush so I'm wondering if someone can educate me on this. I already know the differences in usage, like for example I can use a SolidColorBrush in a dependency like if I say; <SolidColorBrush x:Key="BlahBrush" Color="#FFFFFFFF"/> <Border Background="{StaticResource BlahBrush}"/> but then say I throw the same resource in an EasingColorKeyFrame

Difference between Color and SolidColorBrush clarification

我与影子孤独终老i 提交于 2019-12-20 01:34:01
问题 Ok this has been bugging me and I haven't really found any kind of definitive answer as the the reason/cause of the difference between Color & SolidColorBrush so I'm wondering if someone can educate me on this. I already know the differences in usage, like for example I can use a SolidColorBrush in a dependency like if I say; <SolidColorBrush x:Key="BlahBrush" Color="#FFFFFFFF"/> <Border Background="{StaticResource BlahBrush}"/> but then say I throw the same resource in an EasingColorKeyFrame

Binding Pivot control with Observable Collection MVVM (windows phone 8)

巧了我就是萌 提交于 2019-12-20 00:20:13
问题 I'm new to WP8 & MVVM. I created wp8 app which requests various bits of data once a user has logged in. I just can't get my pivots header to get created dynamically and I don't know if it is because I'm doing something in the binding, the INotifyPropertyChanged, both or something else!! Here is what I have done so far: I've got a global MainViewModel defined in App.cs which will stored all the data returned at login time. Once the login is successful and the data has been loaded into the

How to change the background image of button on runtime?

元气小坏坏 提交于 2019-12-19 23:21:10
问题 I m stuck with a problem. I want to change the background image of button on runtime. I got the solution for changing the color but i want to change the image. The code is as follows public void buttonCase(object sender, RoutedEventArgs e) { Uri uri = null; var image = new ImageBrush(); if (((App)App.Current).appControler.m_Mode == Controller.textMode.Letters) { ((App)App.Current).appControler.buttonCase(sender, e); switch (((App)App.Current).appControler.m_case) { case Controller.caseMode

Creating video from WPF/Silverlight animation

為{幸葍}努か 提交于 2019-12-19 21:20:35
问题 I have a animation written in XAML. I need to create a video (AVI) from that animation. Is there a way to do that ? 回答1: Here is how to do it for WPF (i.e. not Silverlight) http://blogs.msdn.com/b/saveenr/archive/2008/09/22/wpf-xaml-saving-an-animation-as-an-avi-video-file.aspx 回答2: If you have Expression Encoder, you can do the following: Create a blank movie that has as many frames as your animation (you can change the length later if you get it wrong) Use the XAML Animation overlay option

Creating video from WPF/Silverlight animation

☆樱花仙子☆ 提交于 2019-12-19 21:20:12
问题 I have a animation written in XAML. I need to create a video (AVI) from that animation. Is there a way to do that ? 回答1: Here is how to do it for WPF (i.e. not Silverlight) http://blogs.msdn.com/b/saveenr/archive/2008/09/22/wpf-xaml-saving-an-animation-as-an-avi-video-file.aspx 回答2: If you have Expression Encoder, you can do the following: Create a blank movie that has as many frames as your animation (you can change the length later if you get it wrong) Use the XAML Animation overlay option