User Control in fez spider

how to create user control in fez spider? i am using glide user interface

@ biren - It’s not clear what you mean by “user control”.

If what you want is to build a user interface (i.e. one or more screens that users can interact with on the T35 display), then Glide is a nice tool for that, since you can use the online designer to visually design each screen, then save the resulting XML as a resource in your project. You can then load a given screen using code similar to the below:

private void InitWin()
{
    Glide.FitToScreen = true;
    arpUiWindow = GlideLoader.LoadWindow(Resources.GetString(Resources.StringResources.ApeggiatorUI));
    settingsWindow = GlideLoader.LoadWindow(Resources.GetString(Resources.StringResources.SettingsUI));

    // Activate touch
    GlideTouch.Initialize();

    slider = (GU.Slider)arpUiWindow.GetChildByName("speed");
    playback = (GU.ProgressBar)arpUiWindow.GetChildByName("playback");

    Glide.MainWindow = arpUiWindow;
}

In the above code, I use GlideLoader.LoadWindow to prepare two screens for later use, then activate touch, then get references to a slider control and a progress bar control, so I can manipulate them in code, and then, finally, make the arpUIWindow the main window, which causes it to be displayed.

This is just a snippet, so you should definitely refer to the Glide documentation for more info.

http://www.ghielectronics.com/downloads/Glide/Library/Index.html

There are also examples of using Glide to be found on the Glide page:

http://www.ghielectronics.com/glide/examples/

Be aware that with Gadgeteer, there are some important differences in where you initialize your code…my code above is called from ProgramStarted. More info about the differences on the wiki:

Good luck!

I just want to add to what @ devhammer said.

If you want to build custom control, you can get Glide’s source code and follow the design

http://netmfglide.codeplex.com/