silverlight

Should Silverlight Controls be re-loaded onto pages?

大兔子大兔子 提交于 2019-12-21 20:29:24
问题 Some months ago I started developing a Silverlight application on my own. I quickly discovered that I was unable to get expected garbage collection for most of my controls. I struggled for about a week with WinDBG and ANTS memory profiler and then found the "DataTemplate memory leak" strand on the Silverlight forum (http://forums.silverlight.net/forums/t/171739.aspx). Given that so many people seemed to be frustrated with various memory issues I decided to delay further investigation into the

Silverlight: Log4Net to Isolated Storage

試著忘記壹切 提交于 2019-12-21 20:21:57
问题 First, I know about Clog, and I do not want to implement this piece. The reason? We can't maintain severeal logging 'frameworks'. So to my question: Is it possible to implement log4net in a Silverlight application? What I want to achieve is logging to the Isolated Storage. I know, there's only 1 MB of storage available, but this limit can be increased (the user has to accept this, I know too). By the way, please don't provide me alternatives. I do only want to know if somebody implemented a

Is a DelegateCommand the same as an “Attached Behavior”?

时间秒杀一切 提交于 2019-12-21 20:07:52
问题 I have been using the DelegateCommand found in the MVVM Visual Studio template at CodePlex. This works very nicely for having Views be able to execute commands on their ViewModel. I read somewhere that in MVVM " attached behaviors " should be used. As far as I can tell, "attached behaviors" are the same type of pattern as DelegateCommand but are used by Silverlight since it does not have commands. Is this correct ? Or are "attached behaviors" something different in kind and worth learning in

Resources for animations in WPF/Silverlight?

感情迁移 提交于 2019-12-21 20:04:34
问题 I'm looking for some good resources to ramp up on the animation/storyboard concepts used in WPF/Silverlight. Any pointers? 回答1: The one link posted was WPF specific. For Silverlight here are a few other resources. MSDN Animation Overview Silverlight SDK Blog Adam Kinney Animations Hands on Lab Nikhil's Effects and Transitions (Advanced) There a lots more out there, but these are a few goods ones I found. 回答2: This site had some good resources that covered some of the information I was looking

Resources for animations in WPF/Silverlight?

亡梦爱人 提交于 2019-12-21 20:02:24
问题 I'm looking for some good resources to ramp up on the animation/storyboard concepts used in WPF/Silverlight. Any pointers? 回答1: The one link posted was WPF specific. For Silverlight here are a few other resources. MSDN Animation Overview Silverlight SDK Blog Adam Kinney Animations Hands on Lab Nikhil's Effects and Transitions (Advanced) There a lots more out there, but these are a few goods ones I found. 回答2: This site had some good resources that covered some of the information I was looking

Data bindings in Data Template not working

泄露秘密 提交于 2019-12-21 19:55:43
问题 I have UserControl to do filtering for several presentations, which in turn has a ContentControl. The content are the individual filtering controls that vary among the presentations. The scheme works as intended visually, but the data bindings do not. There are no data binding errors in output. The DataContext is from a view model call PimMasterVm, which otherwise seems correctly wired (ie, the status of 5 avalable people, etc) Can someone help me trouble shoot this? Cheers, Berryl Filtering

How to prevent Silverlight RIA Entity getting attached to datacontext before i'm ready

流过昼夜 提交于 2019-12-21 17:57:30
问题 I have a Silverlight 4 application for a simple 'TODO' list. The problem I'm having is that databinding is hooking up relationships on my TODO object, which causes the RIA data context to add it to the DataContext.TODOs list before I want it there. I want to treat the object as new and detached until I'm explicitly ready to add it to the datacontext. Here's how it works : I've got my TODO entity which is associated with a Status (RIA services entity relationship). I create a new TODO() entity

Why does WP8 LongListSelector incorrectly re-use Checked state of CheckBox?

蹲街弑〆低调 提交于 2019-12-21 16:59:53
问题 I have a WP8 LongListSelector with the following template: <DataTemplate x:Key="ItemTemplate"> <Grid Margin="0"> <Grid.ColumnDefinitions> <ColumnDefinition Width="110"/> <ColumnDefinition Width="*"/> <ColumnDefinition Width="Auto"/> </Grid.ColumnDefinitions> <controls:BlockImageControl Grid.Column="0" Width="110" Height="110" Background="Transparent" /> <TextBlock x:Name="Name" Grid.Column="1" Text="{Binding ScreenName}" FontSize="{StaticResource PhoneFontSizeLarge}" FontWeight="Bold"

Silverlight 4 + MVVM + KeyDown event

蓝咒 提交于 2019-12-21 16:33:52
问题 I'm trying to build a sample game in Silverlight 4 using the MVVM design pattern to broaden my knowledge. I'm using Laurent Bugnion's MvvmLight toolkit as well (found here: http://mvvmlight.codeplex.com/ ). All I want to do right now is move a shape around within a Canvas by pressing specific keys. My solution contains a Player.xaml (just a rectangle; this will be moved around) and MainPage.xaml (the Canvas and an instance of the Player control). To my understanding, Silverlight doesn't

Silverlight 4 + MVVM + KeyDown event

非 Y 不嫁゛ 提交于 2019-12-21 16:33:46
问题 I'm trying to build a sample game in Silverlight 4 using the MVVM design pattern to broaden my knowledge. I'm using Laurent Bugnion's MvvmLight toolkit as well (found here: http://mvvmlight.codeplex.com/ ). All I want to do right now is move a shape around within a Canvas by pressing specific keys. My solution contains a Player.xaml (just a rectangle; this will be moved around) and MainPage.xaml (the Canvas and an instance of the Player control). To my understanding, Silverlight doesn't