silverlight-4.0

Silverlight ComboBox SelectedValue TwoWay Binding not working

ぃ、小莉子 提交于 2019-12-24 09:38:57
问题 I have used many ComboBoxes in my applications and all of them are working without any problem. But, I can't find the problem now. I have set SelectedValuePath to "Tag" property. But the property not updating after changing the ComboBox selected item. I have read other StackOverflow questions, but nontheless helped. It is xaml: xmlns:vms="clr-namespace:SilverlightApplication1" <UserControl.DataContext> <vms:MainViewModel /> </UserControl.DataContext> <Grid x:Name="LayoutRoot" Background=

Can individuals digitially sign Silverlight OOB apps for public release in their website name?

百般思念 提交于 2019-12-24 06:29:37
问题 I have read all the blog posts on digital signing and checked out GoDaddy, Thawte and a couple of others. All of these say that you need to be a registered company and have official documentation and proof on incorporation etc. I don't have any of that - I am a Sole Trader based in Australia who runs a social network (PokerDIY.com) for poker players, and now I am releasing a free app (PokerDIY Tourney Manager) and I need to let users type whilst in fullscreen mode (it's almost ironic that I

Non-Generic CompositePresentationEvent and EventSubscription?

China☆狼群 提交于 2019-12-24 05:51:18
问题 I am trying to create a TPayLoad -free CompositePresentationEvent , that its delegate is parameterless. I want to have a global application event that takes no parameters such as UserLoggedInEvent , UserGotIdleEvent etc. etc. How should this be done with the Prism 4.0 event aggregation system? 回答1: This post clarified some things for me. Anyway I realize now the the Prism EA system is really clumzy tho. Here are some extension methods that focus on reducing the verbosity of the EA. 回答2: For

How to declare an event handler in an interface?

我的未来我决定 提交于 2019-12-24 04:34:08
问题 I have a few Silverlight 4 UI objects (Navigation Pages more like it) that have to implement two things: OnError event handler, and Refresh() method. So I tried the following: public interface IDynamicUI { event EventHandler<ErrorEventArgs> OnError; void Refresh(); } public class ErrorEventArgs : EventArgs { public string Message { get; set; } public Exception Error { get; set; } } but the compiler gives me errors saying that fields cannot be declared inside public interfaces. Well the

How can i convert WriteableBitmap to jpg or some other common format?

℡╲_俬逩灬. 提交于 2019-12-24 04:26:10
问题 I have one application that allows user to do various things like rotating and scaling an image and finally when the user clicks on save, the image should get saved on the server. Everything works out fine but the problem is since I am directly saving the WriteableBitmap after converting it to bytearray using WriteableBitmapEx, the saved image is also WriteableBitmap and so I am not able to view it using common Picture Viewer. I want my image to be saved as a JPEG. How can I do this? 回答1: Hey

HLSL Shader to Subtract Background Image

ⅰ亾dé卋堺 提交于 2019-12-24 03:58:08
问题 I am trying to get an HLSL Pixel Shader for Silverlight to work to subtract the background image from a video image. Can anyone suggest a more sophisticated algorithm than I am using because my algorithm isn't doing it correctly? float Tolerance : register(C1); SamplerState ImageSampler : register(S0); SamplerState BackgroundSampler : register(S1); struct VS_INPUT { float4 Position : POSITION; float4 Diffuse : COLOR0; float2 UV0 : TEXCOORD0; float2 UV1 : TEXCOORD1; }; struct VS_OUTPUT {

Issue Trying To Get Button Border to Animate on Click

半城伤御伤魂 提交于 2019-12-24 03:48:17
问题 I'm trying to animate the border of a button, but having trouble getting it to work. Here's the XAML I setup: <Button x:Name="Btn"> <Button.Triggers> <EventTrigger RoutedEvent="Button.Click"> <BeginStoryboard> <Storyboard Duration="100" AutoReverse="True" Storyboard.TargetName="Btn" Storyboard.TargetProperty="BorderBrush"> <ColorAnimation To="Yellow" /> </Storyboard> </BeginStoryboard> </EventTrigger> </Button.Triggers> </Button> I'm getting this error: Failed to assign to property 'System

Character Casing in Silverlight 4 TextBox

怎甘沉沦 提交于 2019-12-24 03:19:46
问题 I am writing a Silverlight 4 business application and have run into an issue. I need the text input in TextBoxes to be forced to UpperCase. What I understand from various forums is Silverlight does not Implement CharacterCasing and CSS Styling. Is there any other way to achieve this? 回答1: You can achieve this by creating a behavior, like this: public class UpperCaseAction : TriggerAction<TextBox> { protected override void Invoke(object parameter) { var selectionStart = AssociatedObject

Silverlight DependencyProperty.SetCurrentValue Equivalent

谁都会走 提交于 2019-12-24 03:19:30
问题 I'm looking for a SL4 equivalent to .NET 4's SetCurrentValue API, which would appear to be exactly what I need for my scenario. In short, I'm writing an attached behavior that updates the value of a given property at appropriate times. However, I don't want it to overwrite any bindings that are set on that dependency property. I merely want to push that value to the property (and therefore have any bindings refresh based on that value). From what I can tell, there's no easy way to do this yet

Freeze Columns from right to left

ぐ巨炮叔叔 提交于 2019-12-24 02:32:33
问题 I have a data grid in which I need to freeze the rightmost column. It is no problem to freeze the columns from left to right with the FrozenColumnCount property. Does anyone of you know how to do this? Thx in advance, TJ 回答1: There is no way to Freeze a column to the right if you want the others to scroll. If this functionality is critical to your app I would suggest investigating the third party Silverlight grid controls on the market e.g. Telerik, Infragistics etc 来源: https://stackoverflow