|
Thanks for the link, it was not exactly what I was looking for but it did lead me to a lot of interesting reading. As it turns out, all I really needed to do was invoke the OnPropertyChanged event for my Subcategory Observeable collection to update the UI after updating the Category observeablecollection selected item.
Cheers, --EA
|
|
|
|
|
i am mca fresher student please give information about silverlight in asp.net
|
|
|
|
|
Buy a book, read some articles, read some white papers, bloody hell do some research. With that attitude (ask someone to spoon feed you) I suggest a change of career/study.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
It's a client-side web application, much like Flash.
.45 ACP - because shooting twice is just silly ----- "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "The staggering layers of obscenity in your statement make it a work of art on so many levels." - J. Jystad, 2001
|
|
|
|
|
The answer is in this[^] thread.
|
|
|
|
|
You can always check out www.msdn.com.
The funniest thing about this particular signature is that by the time you realise it doesn't say anything it's too late to stop reading it.
My latest tip/trick
Visit the Hindi forum here.
|
|
|
|
|
Hi
I am using SilverLight. I want to run/execute an exe on server with passing some commandLine when user click on a button.
Please help.
Thanks in advance
|
|
|
|
|
You can try this blog entry (google is your friend):
http://www.xdevsoftware.com/blog/post/Run-Server-Side-Code-from-Silverlight-objects.aspx[^]
.45 ACP - because shooting twice is just silly ----- "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "The staggering layers of obscenity in your statement make it a work of art on so many levels." - J. Jystad, 2001
|
|
|
|
|
Hi
I am working on silverlight
I have binded a list box with ItemsSource="{Binding LstStrings, Mode=OneWay}" and inside that I have a button for downloading file from server. Now in binding I have a path of file for download. Please help me how to Implement when user click on download button it start download the file from binding path corresponding in the list from the server.
Thanks
|
|
|
|
|
Use the WebClient class to download the file.
See here[^].
The funniest thing about this particular signature is that by the time you realise it doesn't say anything it's too late to stop reading it.
My latest tip/trick
Visit the Hindi forum here.
|
|
|
|
|
hello,
This is a question on how to escaoe "double quote" in a xaml - I tried different things suggested by here (but no luck)[^]
See below - I tried to reference a Cells["IsConfigurable"] column value but
<br />
<Style x:Key="cColumnStyle" TargetType="{x:Type igDP:CellValuePresenter}"><br />
<Setter Property="Background" Value="LightGoldenRodYellow "></Setter><br />
<Style.Triggers><br />
<DataTrigger Binding="{Binding Path=Cells["IsConfigurable"].Value}" Value="False"><br />
<Setter Property="IsEnabled" Value="False"/><br />
</DataTrigger><br />
</Style.Triggers><br />
</Style><br />
But keep getting error:
<br />
Error 2 Names and Values in a MarkupExtension cannot contain quotes. The MarkupExtension arguments ' Path=Cells["IsConfigurable"].Value}' are not valid. <br />
dev
|
|
|
|
|
devvvy wrote: ="{Binding Path=Cells["IsConfigurable"].Value}"
Try putting the above text in a single quote '.
Leave your double quotes - I've never tried that but its worth a shot.
The funniest thing about this particular signature is that by the time you realise it doesn't say anything it's too late to stop reading it.
My latest tip/trick
Visit the Hindi forum here.
|
|
|
|
|
This is in real mess. Why don't you use a Converter and do these operations there.
|
|
|
|
|
Is it acceptable from a MVVM standpoint to put form related (data independent) code in the code-behind file of the view?
Example:
private void RightButtonClick(object sender, RoutedEventArgs e)
{
ListBoxPreview.SelectedIndex = ListBoxPreview.SelectedIndex + 1;
}
It is an agnostic function so I think it is alright but I am curious from a clinical standpoint what you guys think.
Cheers, --EA
|
|
|
|
|
One of the funny things about MVVM is that people seem to get it into their heads that MVVM means no code behind the view, and that's just silly. If you want to put something in the view because it's view related, then go for it. Only the anal would criticise you.
|
|
|
|
|
Ha, the internet is where the anal come to practice their craft I think.
Regardless, thank you for the insight. I read someone say that you could remove the code behind from a view and still have it work fine. I am sure that was purely contextual though.
By the by, should the MoXAML power toys work with VS 2010 or just 2008?
Cheers, --EA
|
|
|
|
|
At the moment, it's just 2008 - when I've finished the article I'm working on, I'll be upgrading it to 2010.
|
|
|
|
|
I am in the same boat as you, just getting started with SL. Having read a swag of articles, studied a number of frameworks and discussed it to death we are now getting into some development. I agree with Pete, only the anal will argue that there should be no code behind. I find we end up with quite a lot sitting in code.
When the renderer in VS10 won't render the view because it can't deal with the viewmodellocator I have no compunction doing the binding in code therefore making the IDE behave.
There seems to be lots of stuff that is purely View related that still need to be done in the code.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
So long as you dont attempt to access a model attribute, this code looks fine.
The funniest thing about this particular signature is that by the time you realise it doesn't say anything it's too late to stop reading it.
My latest tip/trick
Visit the Hindi forum here.
|
|
|
|
|
I'm still struggling with these bloody things and I think it is a design issue.
I have a standard MVVM UI with view and viewmodels. I have a viemodellocator that has a static instance of the viewmodels. Each viewmodel basically represents a table in the database.
Two of the viewmodels I have are Trade and Currency, each Trade requires a currency so the view (Trade) needs to get a list of currencies to bind to the combobox.
I service the view with the static Trade VM from the viewmodellocator. TradeVM has a CurrencyList collection that is set to the CurrencyList in the static viewmodellocator. This works fine, ONCE. Then changing the selected Trade record in the Trade VM disturbs the binding and the combobox no longer binds.
This seems to be a widespread issue and there are various work arounds which are plain ugly. Does anyone have a recommendation, blog, article that demonstrates a simple and elegant solution to this rather nasty problem. Or am I doing this completely wrong and need to redesign my approach.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Could you post the project (even in a pared down form) somewhere like dropbox, and I'll download it and have a look at it? I'm having trouble visualising how you've laid out the solution and what the interaction is, so I can't really offer relevant advice.
|
|
|
|
|
I'll see what I can put together tomorrow, I tried to email you a while ago, had to use your linkedin connection as you don't encourage it here. I think the wife has a dropbox so I'll see what I can do, thanks.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
I have a gmail account - you can contact me on that.
|
|
|
|
|
I have just loaded up your inbox.
It seems the problem is if you create a binding and then refresh either of the underlying datasources List<> the binding is broken. Trying to work around this has got me stumped.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Pete O'Hanlon wrote: I'm having trouble visualising how you've laid out the solution
I'm not surprised, I'm going cross eyed trying to keep track of all the bits needed to make this thing work.
I just spent the last 2 hours putting together an app that demonstrated the problem and bugger me, I can't repeat the problem in the demo app, bloody thing works perfectly.
Now to chuck the code in the dev app and start again!
Never underestimate the power of human stupidity
RAH
|
|
|
|