windows-phone-silverlight

Storyboard animation is lagging

浪子不回头ぞ 提交于 2019-12-23 04:54:14
问题 i created a snow falling animation but it is little lagging, if i create this animation in blank new app it works fine but if try to build some more things and use it fully build app it starts lagging. XAML <Grid> <Canvas x:Name="ContentPanel" Height="768"> </Canvas> </Grid> C# using System.Windows.Shapes; using System.Windows.Media.Animation; using System.Windows.Media; public partial class MainPage : PhoneApplicationPage { private static Random random; public MainPage() {

Automatically filter/order ListBox items (Windows Phone)

情到浓时终转凉″ 提交于 2019-12-20 06:27:22
问题 I want to ensure, that the items added in my list box are ordered in ascending order according to the serial number of each item (e.g 1 item, 2 item, 4 item, 3 item should be automatically order according to its number 1.2.3.......10). Here is the C# source: namespace XeroQuiz { public partial class MainPage : PhoneApplicationPage { IsolatedStorageFile Settings1 = IsolatedStorageFile.GetUserStoreForApplication(); MyDataList listobj = new MyDataList(); public MainPage() { InitializeComponent()

Binding Background Color of style from a class

可紊 提交于 2019-12-10 11:58:18
问题 in my app i have ColorToBrushConverter.cs, ColorItem.cs and a box page which contain some collection of colors when user click on any of color and back to mainpage it save to settings isolated storage then i able to set my stackpanel any any element background to choosed color from that colorbox page. But Problem is i have a style in which i want color binding so can we do it from c# or use color binding in xaml from below class. ColorToBrushConverter.cs namespace CustomColorsPicker

Go forwards and backwards on FM radio frequency

我怕爱的太早我们不能终老 提交于 2019-12-08 10:34:25
问题 I have already designed a back button and a forward button with xaml. When I click the back button, my FM radio instance should start looking for a radio frequency below the radio frequency according to signal strength. 回答1: hi there is code to do that private void FastForwardButton_Click(object sender, RoutedEventArgs e) { try { do { ManageFrequencyChange(0.1); } while (FMRadio.Instance.SignalStrength * 100 < 65); } catch (RadioDisabledException ex) { } } and refrence for these private void

Sound Through Speaker And Earphone both or from Speaker Only

风流意气都作罢 提交于 2019-12-06 14:07:12
问题 in UWP or Windows phone 8/8.1/silverlight i want to play sound through speaker only speaker event earphone connected or switch audio to loudspeaker on button click or in both any thing may possible? please suggest me a solution 来源: https://stackoverflow.com/questions/40013741/sound-through-speaker-and-earphone-both-or-from-speaker-only

Click Event should not trigger when hold event perform

独自空忆成欢 提交于 2019-12-04 06:26:19
问题 i have button in my windows phone silverlight 8.1 app i created two event one click event and second hold event, i want when user hold such button then click event should not fire, but currently when i hold button and then leave that button click button also fires, so how to handle that. private void ExtraButton_Click(object sender, RoutedEventArgs e) { } private void ExtraButton_Hold(object sender, GestureEventArgs e) { } so how to cancel click event when hold event performed. 回答1: I suggest

Automatically filter/order ListBox items (Windows Phone)

北城以北 提交于 2019-12-02 09:32:15
I want to ensure, that the items added in my list box are ordered in ascending order according to the serial number of each item (e.g 1 item, 2 item, 4 item, 3 item should be automatically order according to its number 1.2.3.......10). Here is the C# source: namespace XeroQuiz { public partial class MainPage : PhoneApplicationPage { IsolatedStorageFile Settings1 = IsolatedStorageFile.GetUserStoreForApplication(); MyDataList listobj = new MyDataList(); public MainPage() { InitializeComponent(); this.Loaded += MainPage_Loaded; this.FavoriteListBox.Visibility = Visibility.Collapsed; if (Settings1

Fill Ellipse with wave animation

余生颓废 提交于 2019-11-28 16:01:41
问题 I have created an ellipse in Windows Phone 8.1 Silverlight App and UWP both and I wanted to fill it with animating waves, For this purpose, I am following this solution but it is for WPF so I am unable to use some control like "Visual Brush". I wanted to fill ellipse with wave similar to this (ignore 50% in the image) - And here is my eliipse <Ellipse Name="WaveEllipse" Grid.Column="1" Grid.Row="0" VerticalAlignment="Top" Stroke="{StaticResource PhoneAccentBrush}" StrokeThickness="4" Width=