|
You can reuse items just by giving them a key. A really fun thing to do is to define your item in a different assembly which can be loaded at runtime, just by using ContextMenu={DynamicResource MyMenu} in your item.
|
|
|
|
|
That's good to know. Guess I was just looking in the wrong places.
“Time and space can be a bitch.”
–Gushie, Quantum Leap
{o,o}.oO( Looking for a great RSS reader? Try FeedBeast! )
|)””’) Built with home-grown CodeProject components!
-”-”-
|
|
|
|
|
i need a basics of silverlight 1.0&^1.1&2
|
|
|
|
|
|
Hi all,
Please help with code and description that is there any way to call old style class library in Silverlight application?
I know that there is "Silverlight Class Library" available in dot net 3.5 but in my situation I need to call Old Class library.
Thanks in advance.
M.Fasih Akbar(SE)
fasih_is_my_signature
|
|
|
|
|
Yes, just create silverlight class library. Put your class(es) in there and compile. Then you can reference that dll from any silverlight project. Note, silverlight contains a subset of .net.
|
|
|
|
|
Hey can anybody tell me how can I validate userinputs.For example if user enters some text in textbox I want to check it and return errormessage if not a proper input.I think You undersstood what I mean to say.
|
|
|
|
|
Did you look at Textbox events here[^]. If you just want to validate then perhaps LostFocus would be fine, or if you want to want to prevent the user from entering invalid input then you may use the KeyDown event. Hope that helps.
Regards,
Syed Mehroz Alam
|
|
|
|
|
To all lovers of XAML and WPF, go and check out XAML Power Toys
http://karlshifflett.wordpress.com/2008/08/31/xaml-power-toys/[^]
I included three movies to get anyone up and running fast. Has binary install and source downloads.
This is a Visual Studio Add-In that will help you with everyday tasks like creating forms for classes in very short order.
Feature Set
• Group Into - allows developer to select one or more controls and group them inside a new parent.
• Remove Margins - allows a developer to select one or more controls and remove all margins from them.
• Create Business Form - allows a developer to quickly create a form complete with bindings if desired.
• Edit Grid & Column Rows - allows a developer to select a grid and then add or remove rows and columns.
• Create Business Form For Class - allows a developer to quickly create a form complete with bindings that are easily associated with properties on the source class.
modified 27-Feb-21 21:01pm.
|
|
|
|
|
Tres cool Mr Shiflett, tres cool (especially the Remove Margins - this has been a real bugbear for me).
|
|
|
|
|
Any time Pete.
modified 27-Feb-21 21:01pm.
|
|
|
|
|
|
This is excellent! Thanks Karl!
|
|
|
|
|
|
Nice! I'll blog it up when I get home ...
|
|
|
|
|
Karl - if we have an add in to add to this, could we send it to you for inclusion (assuming the code meets your standards)?
|
|
|
|
|
Pete,
If it's VB.NET no problem.
If it's C# and not a huge amount of code, OK, I'll translate.
I'm working though an issue right now, should have it resolved soon.
modified 27-Feb-21 21:01pm.
|
|
|
|
|
Thanks mate. Tell you what, I'm putting together a C# addin which I'll let you have a look at - any bits that you like, I'll convert over to VB.NET, it'll be good practice for me. The first toy takes a property and converts it into a notifiable property, so it converts:
public string MyProperty { get; set; } into
private string _myProperty;
public string MyProperty
{
get
{
return _myProperty;
}
set
{
if (_myProperty != value)
{
PropertyChanged("MyProperty");
_myProperty = value;
}
}
}
|
|
|
|
|
Pete,
I already have writen a very comprehensive add-in that does all this and much more.
After Ocean, I'll write up an article on it.
XAML Power Toys will be released again tonight. I corrected all the file locking issues and wrote a way out there designer and added some very cool stuff.
I've been off-line and will be the rest of the day.
Cheers,
Karl
modified 27-Feb-21 21:01pm.
|
|
|
|
|
Cool - looking forward to seeing it. You inspired me to write some "cool stuff" of my own as an add in. I've written one to add the property notification (as shown) and I'm busy writing one to add command bindings for the common commands automatically. I'm thinking that I don't want to corrupt yours, so I'll launch a separate power toy.
It's as much a learning exercise for me as it is about coding up something useful. The things I'm knocking together are intended to get around the little irritants I have when coding WPF apps. Anyhoo, I'll let you know when I'm ready to release it and I hope you'll like it.
|
|
|
|
|
Cool, I'll have to check it out
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|
|
|
Sorry if it seems I'm treading on Karl's toes here, but he's taken the code down to fix a problem and add new features, but due to an internet connectivity issue at the moment, he's been unable to upload the new version of code. We're assured that all will be sorted over the next couple of days.
|
|
|
|
|
Also if Karl,
perhaps, could allow us to download his webcast in a zip, as bandwith is not cheap where I'm from.
I would be gratefull.
Thanks
Sk8tZ
|
|
|
|
|
That's one to post to Karl, possibly on his blog as he may not read a reply to an answer I gave.
|
|
|
|