Vectorlight News

  • Chat App Converted to HTML and JQuery
    Sep 08, 2011

    Converted from Silverlight to HTML and Javascript/JQuery is the Vectorlight Chat App. Login using your Vectorlight password to chat using your username and avatar.

  • HTML5 iPhone,Android Big Guns Tower Defense
    Jul 02, 2011

    Big Guns has made the leap from Windows Phone 7 (XNA) to HTML5 so you can now play it on your iPhone, Android and other HTML5 compatible devices.

  • HTML5 Games - Word Poppers and Batty
    Jun 04, 2011

    As the take-up of HTML5 quickens (74% of users currently have a browser capable of HTML5 Canvas) we present two more games for both your browser and mobile.

  • Big Guns Tower Defense on Windows Phone 7
    May 06, 2011

    Coming soon to Windows Phone 7 is an XNA port of the popular Vectorlight tower defense game Super Tower Defense. Whilst retaining many of the graphical and gameplay features of the original Silverlight game.

  • Wakacube WP7 Update
    Apr 26, 2011

    Released to the Windows Phone 7 marketplace today is Version 1.1 of Wakacube the 3D physics game of skill. Included in the update are more levels (30 in total) and new mode Wakatime which generates random crate structures to keep players entertained long after the levels have been completed.

  • Home Page News
gcoleman0828
gcoleman0828
Adding a button to the ElementsTopButtons StackPanel Posted: May 30, 2010
 

Hello I am trying to add a new button to the right of the minimize button and would like to know the best way to go about doing this. Should I do this within the source code you provided on your site? If so, how? When I try to do it in VS 2010 or Elements it will not allow me to view the xaml and the Elements Stach panel looks like the right place, but a.) I want the button to look like what you already have and b.) when I try to just copy the ElementsMin button, it is not there after compiling. Any help would be appreciated!?


Also, if there is already a way to do this in the currect code thats cool too.


Thanks in advance,

Gregg

 
 
gcoleman0828
gcoleman0828
RE: Adding a button to the ElementsTopButtons StackPanel Posted: Jun 02, 2010
 

Any one at all? Can anyone at least point me in the right direction?? Dan??

 
 
dan
dan
RE: Adding a button to the ElementsTopButtons StackPanel Posted: Jun 05, 2010
 

Hi,


This not possible in the current implementation.  It can be done by changing the source code though.  Simply copy an existing button such as ElementMin, search for this property in the DialogBase class and duplicate there.  The OnApplyTemplate() method is where the button will be retrieved from the XAML.  Also ensure you have duplicated it in themes/generic.xaml too.


Using this method you can create custom buttons.


Thanks!

 
 
gcoleman0828
gcoleman0828
RE: Adding a button to the ElementsTopButtons StackPanel Posted: Jun 15, 2010
 

Ok... so I have the button set up and viewable, but I would like to make the event accessible via the main project. sort of like you have for Restoring... or minimized... I can seem to see where you have done this or how I can apply it to my implementation.


Thanks,

 
 
dan
dan
RE: Adding a button to the ElementsTopButtons StackPanel Posted: Jun 18, 2010
 

Hi,


In DialogBase create yor own event for your custom button click and simply raise it when clicked.


public event DialogEventHandler MyButtonClickEvent;


if (MyButtonClickEvent != null)

{

    MyButtonClickEvent(sender, args);

}


You then attach to this event from your main program.  There are plenty of articles out there explaining how to setup custom events that you may want to refer to.


Thanks!