Showing posts with label Silverlight 5. Show all posts
Showing posts with label Silverlight 5. Show all posts

Friday, February 10, 2012

A Question to you the reader…Need your feedback here to decide if I should do a Tutorial


Hello Loyal Readers!
I started doing this all in Blend with no code-behind to show/hide panels in Silverlight but I used two identical Buttons, one to show the panel and one to hide it and made them either Visible or Collapsed depending on what state the panel was currently in.
My Good friend Todd Knudsen (Twitter: DataArtist) asked me if I could do it with just one Button.
I tried by turning the StoryBoards into Visual States, creating a DataStore and using Conditions. But as soon as I used the ChangeDataStoreValue Behavior (for a bool property named IsPanelShowing) it seemed to step on the toes of my conditionals and thus making it not work all together.
So my idea was to make a code-behind (C#) property whereby I kept the state of the panel in a Boolean and ran the correct StoryBoard based upon that. It worked perfectly!
A reader left a comment and said “why not just use a ToggoleButton”? Great idea! Why didn’t I think of it?!
So I think that will be my next tutorial maybe “How to use ONE Button and slide a panel in or out depending on its current state using the Visual State Manager, a DataStore, a Conditional and a ToggleButtton All in Blend!”
Sound like a good tutorial or are all of you done with sliding panels?
Let me know in the comments and your feedback will determine if I do the tutorial or not.
Thanks, Victor Gaudioso
PS: When you give your opinion please try and suggest a tutorial that has been giving your grief…I may just take it on and even mention you as the tutorial idea contributor. T
hank You All! Victor Gaudioso
AND, you can find my 70+ Silverlight/WPF/Windows Phone 7 step by step Video Tutorials here:http://wp.me/pWN5M-bu
Victor

7 Comments for this entry


  • teoman

    Hello Victor,
    I could not watch all your tutorials, but the videos I watched was very very helpful and clear.
    Thanks for all that.
    If we come back your question, it would be great to see of all combinations of visual state manager, DataStore, togglebuttton in one tutorial.
    Thanks for your perfect help, keep going!

  • Victor

    I think that is a splendid idea and I will do just that Teoman!
    Victor

  • Victor

    Teoman, great idea and I did just that for you (and all other readers) This video shows how to make a Sliding Panel using a SINGLE ToggleButton with NO Code-Behind and ALL in Blend. Enjoy and remember to keep giving me ideas for new Video Tutorials (that goes for ALL Readers!) URL to new Post: http://wp.me/pWN5M-fy

  • Victor

    By the way, I happen to use Storyboards because in my opinion they give you more control. And then I used a ControlStoryboard Behavior but I just as easily could have used Visual States and a ControlVisualState Behavior. As for the DataStore, it is not needed as the ToggleButton, I fire one Storyboard on the Checked State of the ToggleButton and another Storyboard on the Unchecked State. So, a DataStore with Conditions are not needed. Make sense?
    Victor

  • DEBAL

    Hi Victor
    I need a video tutorial on Silver light Tree View Control . My requirement is very simple . I want to totally do this work in Expression Blend 4 (no code).
    Create a new project in blend and drag and drop a treeview control in MainPage.xamldesign page .
    Now I need a style for treeview , so that the connecting lines should be see all tree nodes, I have sent a mail to you in details at wpfauthor@gmail.com
    pl reply me , PL

  • Victor

    email me with more details at wpfauthor at gmail dot com. Victor

  • DEBAL

    Thanks a lots
    for your reply , I have sent a mail at wpfauthor@gmail.com, pl reply me . I just want to see connecting lines between tree node using blend4. pl help me Sir
originally posted http://www.windowspresentationfoundation.com/?p=960#comments

Friday, April 29, 2011

The Los Angeles Silverlight Usergroup (LASLUG) is Growing by Leaps & Bounds – State of the Usergroup


Hello LASLUGers!
Today we had an occurrence that sets us apart as a premier .NET Usergroup;  today we hit the BIG TIME: Telerik has signed on to become a proud sponsor  of the Los Angeles Silverlight Usergroup.  In their own words, Telerik’s Emily Parker writes “(we) provide 1 Telerik Ultimate Collection valued at $1999/month. This license is our largest bundle so it includes tons of software – check them out here: www.telerik.com/purchase. I know you said other’s do two licenses/month but this license is a  huge bundle which always goes over well.  We send a demo CD with the license codes on them so your winners can just walk away with this and they are all set!  
 Are they awesome or what? 
 Mission Statement:
To provide the local Los Aneles .NET community (with an emphasis on Silverlight & WPF) with the finest speakers that the planent has to offer.  Further, we pledge not to ever charge any of our members any money for this service.  While most other usergroups are free to attend they tend to charge for the raffles whereby they give away prizes.  We not only offer free gourmet pizza, beer, softdrinks and deserts we offer free prizes.  It is our goal to provide every member in attendence with a free prize be it a small prize such as a DevExpress tee-shirt, or a Microsoft Flash drive to something more significant such as an Apress book on how to do game programing for Windows Phone 7 to something very expensive such as Telerik’s Ultimate Silverlight Software Collection (a $1999.00 value).  Further, we promise to update our venues to make it easier for some members to attend one month and then easier for other members to attend another month.  We also feel this keep the group fresh and reduces the chance of them becoming bored with LASLUG meetings.  Finally, we have commited to our sponsors to help them add to their customer base by touting the positive aspects of their products and by encouraging our members to use their decision-making power at their places of employment to employ these books and tools if they enjoy the products we give to them as prizes. We also promise our sponsors high-visibility on our website (www.laslug.com) as well as in our meetings.
So Wed May 25th is the tentative date for our next LASLUG meeting and the first meeting we will be giving away Software from:
1. Telerik (one copy of Ultimate Collection – Value: $1999.00);
2. DevExpress (two copies of Silverlight Controls for Silverlight – Value: $799.99 (times two));
3. Syncfusion (two copies of Essential Studio Enterprise Edition – Value: $1,995.00 (times two));
4. VIBlend (VIBlend WPF Controls package – Value: $349.000), (VIBlend Silverlight Controls package – Value: $499.00).
  
We will also be giving away books:
1. Apress - Four titles to be determined – Approximate Value: $50.00 (times four));
2. FreindsOfEd-  One title, two copies - Expression Blend 4 with Silverlight – Value: $49.00 (times two));
3. Safari Books Online (10 day free trial and 20% off with purchase of a year subscription).
 
We will also have swag from:
4. Telerik
5. VIBlend
6. Nowcom
 
This comes out to a total of $9,283.  So by the time the meeting takes place I expect the prizes to be valued at well over $10,000.
 
And this is just as of right now…we are currently in talks with O’reilly, Manning, Anheuser-Busch, New Belgium Brewers and a few others.
 
So look for email blasts from me and the management team with regards to new sponsorship and meeting details.  Once you get the meeting announcement please secure your spot ASAP as space is limited and I think that will all of these new prizesswaggourmet pizza and beer the meeting is going to fill up fast! 
Visit www.laslug.com to join today!

Friday, April 15, 2011

New Silverlight 5 Video Tutorial: How to Create Implicit DataTemplates


Hello All!
Silverlight 5 Beta just came out yesterday and I am jumping on it with my first video tutorial. 
In this  short 12 minute video I show you how to:
1. Create a custom DataType called Developer. 
2. How to create an ObservableCollection of Developers and then turn that into a DataSource. 
3.  How to bind that DataSource to a ListBox and define a DataTemplate that describes how to show the data (namely a TextBlock for the name and an Image for a picture of the developer). 
4. How to remove that DataTemplate and add it to App.xaml and define a new property called a DataType. 
You will then see how Silverlight 5 will automatically find that DataTemplate anytime you are displaying that custom DataType.
Enjoy!  Victor

3 Comments for this entry