silverlight-toolkit

Windows Phone Toolkit Context Menu Items have wrong object bound to them when an item is removed and then added

二次信任 提交于 2019-12-04 03:47:36
问题 I just encountered a serious problem with Context Menu which I cannot resolve for hours. To reproduce the problem I created a brand new Panorama app with the app templates for Windows Phone 8 in Visual Studio 2012. I installed Windows Phone toolkit via nugget and add context menu in the data template of the first long list selector which is bound to Items <StackPanel Margin="0,-6,0,12"> <TextBlock Text="{Binding LineOne}" TextWrapping="Wrap" Style="{StaticResource PhoneTextExtraLargeStyle}"

How can I get Silverlight 4 Tools to work in Web Developer 2010 Express?

随声附和 提交于 2019-12-03 23:37:08
I installed Windows 7 . I then installed Web Developer 2010 Express from here with the Web Platform Installer . I then installed the the April 15 release of Silverlight 4 Toolkit from here . I then added this reference : alt text http://www.deviantsart.com/upload/ijk0lm.png Then in my XAML, I reference it like this but it gives me no intellisense and tells me that I am missing an assembly reference : alt text http://www.deviantsart.com/upload/cd4vrj.png update: xmlns:tk="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls" doesn't work either, even after a rebuild What do I

Silverlight async unit testing

寵の児 提交于 2019-12-03 08:52:30
I'm having a weird issue with Silverlight Unit Test Framework. The very first method executed fails, every time. I have a second test with the exact same code, and it passes. The strange thing about the first time it's called is that it actually waits for the timeout and then executes the repository call (underneath it's an HTTP PUT if you care). Here's the code - the first one fails every time, second one passes every time: [TestMethod] public void AuthShouldSucceed() { var autoResetEvent = new AutoResetEvent(false); _authRepository.Authenticate(_username, _password, response => { Assert

What is the difference between Windows Phone 8.1 and Windows Phone 8.1 Silverlight

荒凉一梦 提交于 2019-12-02 22:39:30
问题 What is the difference between Windows Phone 8.1 and Windows Phone 8.1 Silverlight? Which Option(Project) is best suitable for new app development? Also please provide Pros and Cons of each option. 回答1: So basically silverlight is used for browser based applications, you can relate to macromedia flash, it depends of what type of app you have in mind...if you would like to have your app available on all devices I suggest you use MVVM (model, view, view model) architecture so that you are able

What is the difference between Windows Phone 8.1 and Windows Phone 8.1 Silverlight

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-02 12:51:35
What is the difference between Windows Phone 8.1 and Windows Phone 8.1 Silverlight? Which Option(Project) is best suitable for new app development? Also please provide Pros and Cons of each option. So basically silverlight is used for browser based applications, you can relate to macromedia flash, it depends of what type of app you have in mind...if you would like to have your app available on all devices I suggest you use MVVM (model, view, view model) architecture so that you are able to share most of your code. I suggest you look into Lex.DB as for database engine for your app since it

Windows Phone Toolkit Context Menu Items have wrong object bound to them when an item is removed and then added

淺唱寂寞╮ 提交于 2019-12-01 19:36:07
I just encountered a serious problem with Context Menu which I cannot resolve for hours. To reproduce the problem I created a brand new Panorama app with the app templates for Windows Phone 8 in Visual Studio 2012. I installed Windows Phone toolkit via nugget and add context menu in the data template of the first long list selector which is bound to Items <StackPanel Margin="0,-6,0,12"> <TextBlock Text="{Binding LineOne}" TextWrapping="Wrap" Style="{StaticResource PhoneTextExtraLargeStyle}" FontSize="{StaticResource PhoneFontSizeExtraLarge}"/> <toolkit:ContextMenuService.ContextMenu> <toolkit

How to play swf file in silverlight?

北战南征 提交于 2019-12-01 11:36:31
问题 I am tring to play a .swf in silverlight5 page.I am using the ListBox control or Image Control Or Any Idea To Play swf File in Silvarlight <Image Grid.Row="0" Name="bottom_video" Height="80" Source="{Binding VodeoUrl,Mode=OneWay}" Margin="0,20,0,0" /> 回答1: You can see in the code below how to use Iframe on Silverlight: <Grid x:Name="LayoutRoot"> <HyperlinkButton Content="HyperlinkButton" Height="23" HorizontalAlignment="Left" Margin="44,20,0,0" Name="hyperlinkButton1" VerticalAlignment="Top"

WP7 Toggle switch in a Pivot control?

≯℡__Kan透↙ 提交于 2019-12-01 06:15:09
Is there any way to control the threshold of the flick action to on/off a toggle switch so that it doesn't mess with the pivot control's navigation? Sorry, but I'm going to avoid you're question (I can't answer it anyway) and suggest you use a different approach. You could (I assume) use a checkbox to just as easily provide the option to the person using the application. Afterall a toggle switch has the same functionality as a checkbox (specify/choose between two states) it just implements the interaction differently. The toggle switch has not been designed/built (AFAIK) to support being used

WP7 Toggle switch in a Pivot control?

北城以北 提交于 2019-12-01 05:12:21
问题 Is there any way to control the threshold of the flick action to on/off a toggle switch so that it doesn't mess with the pivot control's navigation? 回答1: Sorry, but I'm going to avoid you're question (I can't answer it anyway) and suggest you use a different approach. You could (I assume) use a checkbox to just as easily provide the option to the person using the application. Afterall a toggle switch has the same functionality as a checkbox (specify/choose between two states) it just

Silverlight DataGrid row color binding

旧巷老猫 提交于 2019-12-01 04:06:42
问题 I'd like to find a way to bind the background color of rows of a DataGrid to a property of my bound objects. Here is my XAML : <sdk:DataGrid ItemsSource="{Binding MyItems}" /> I'm using the MVVM Light Toolkit with Silverlight 4. 回答1: You can do it by changing a row template: <sdk:DataGrid ItemsSource="{Binding MyItems}"> <sdk:DataGrid.RowStyle> <Style TargetType="sdk:DataGridRow"> <Setter Property="Template"> ... <Rectangle x:Name="BackgroundRectangle" Fill="{Binding ColorPropertyOfItem}" />