Recommended

Skip Navigation LinksHome / Search

Search

 
Results Per Page

Found 22 results for Nikolay Raychev.
Date between: <not defined> and <not defined>
Search in: News , Articles , Tips , Shows , Showcase , Books

Page 
Order by Publish Date   Ascending Title   Rating  

  • 3 comments  /  posted by  Nikolay Raychev  on  Jun 17, 2008 (more than a year ago)

    Introduction

    When you are making a web request from a Silverlight application the cookies associated with the current browser-server session are automatically sent within each request.

    A common scenario is when you have a web site with some kind of a cookie driven authentication implemented and a Silverlight application within your web site that shows different content depending on whether the user is logged in or not. The Silverlight application may use some resources on the server, which are accessible only to authenticated users. The good thing is that if you are logged in the web site and make requests from the Silverlight application the server “knows” that your requests come from an authenticated user. You do not need to login both on the web site and the Silverlight application.

    Example

    I made a simple example to test if all this stuff really works. I just want to have a simple web site with Form authentication and a Silverlight application which uses a resource from the server. The resource behaves differently when the user is logged in and when not. I won’t describe how I created the web site and the authentication system because you are not limited about the server technology. Currently it is ASP.NET web site with the standard ASP.NET membership. But you can also make it with PHP for example.



  • 0 comments  /  posted by  Nikolay Raychev  on  Jun 11, 2008 (more than a year ago)

    Introduction

    The RepeatButton is a Silverlight control which does an action repeatedly from the time a user presses it till the time it is released.

    See also: 
    Button Controls Article
    Button Article
    HyperlinkButton Article
    ToggleButton Article

    Overview

    To demonstrate the common use of the RepeatButton I’ll give an example:

    When we press the RepeatButton the TextBlock starts showing the current time.

    XAML:

  • 9 comments  /  posted by  Nikolay Raychev  on  Jun 03, 2008 (more than a year ago)

    Introduction

    The ToggleButton is a Silverlight control which allows the user to change its state. It is the base class for CheckBox and RadioButton controls but it can also be used as a standalone control.

    See also:
    Button Controls Article
    Button Article
    HyperlinkButton Article
    RepeatButton Article

    Overview

    To demonstrate the use of the ToggleButton I’ll give an example:

    XAML:

  • Using the HyperlinkButton control in Silverlight 2

    11 comments  /  posted by  Nikolay Raychev  on  May 26, 2008 (more than a year ago)

    Introduction

    The HyperlinkButton is a Silverlight control which acts as a hyperlink.

    See also:
    Button Controls Article
    Button Article
    ToggleButton Article
    RepeatButton Article

    Overview

    Here is a little example showing how to use the HyperlinkButton:

    XAML:

    Read more ...
  • 4 comments  /  posted by  Nikolay Raychev  on  May 11, 2008 (more than a year ago)

    Introduction

    The Button is a Silverlight control which responds when the user clicks on it.

    See also:
    Button Controls Article
    HyperlinkButton Article
    ToggleButton Article
    RepeatButton Article

    Overview

    Since the Button derives directly from the ButtonBase class and there isn’t an additional functionality, I’ll use the examples from the Button Controls Article.

    The most important event of the Button, inherited from ButtonBase class is the Click event. It occurs when a user clicks on the button. For example:

    XAML:

  • 6 comments  /  posted by  Nikolay Raychev  on  May 11, 2008 (more than a year ago)

    Introduction

    Button controls are Silverlight controls which in the common scenario respond in some way to the user who is clicking on them. There are a lot of button controls: Button, HyperlinkButton, RepeatButton, ToggleButton, CheckBox, RadioButton.

    See also:
    Button Article
    HyperlinkButton Article
    ToggleButton Article
    RepeatButton Article

    Overview

    Four button controls derive from the base ButtonBase class: Button, HyperlinkButton, RepeatButton, and ToggleButton. The ToggleButton is a base class for the CheckBox and RadioButton controls but it can also be used as a standalone control. There are two descendants of the Button class named CalendarButton and CalendarDayButton.

    The most important member of the ButtonBase class is the Click event. It occurs when a user clicks on the button control. For example:

    XAML:

  • 10 comments  /  posted by  Nikolay Raychev  on  Apr 21, 2008 (more than a year ago)

    As its name says the Border is a Silverlight control that acts as a border. You can put ONE other control in it and it will act as border of the child control.

    See also:
    Silverlight Layout controls
    Canvas Article
    StackPanel Article
    Grid Article

    Overview

    The following examples demonstrate Border’s key properties:

    We want to have the following frame:

    Here is the XAML code:

  • 19 comments  /  posted by  Nikolay Raychev  on  Apr 14, 2008 (more than a year ago)

    Introduction

    The Grid is a layout control used as a container for other Silverlight controls. It acts like a table in HTML but there are many differences in the markup representation.

    See also:
    Silverlight Layout controls
    Canvas Article
    StackPanel Article
    GridSplitter Article

    Overview

    The following example demonstrates how to use a Grid and how to create rows and columns:

    We want to have the following table structure:

    The most important thing about the Grid is how to define its RowDefinitions and ColumnDefinitions collections and how to specify to which row and column every control in the Grid belongs.

    Here is the XAML code:

  • 12 comments  /  posted by  Nikolay Raychev  on  Apr 14, 2008 (more than a year ago)

    Introduction

    To use the GridSplitter you should be familiar with the Grid control. It is a control that allows the user to resize dynamically the width or height of the Grid cells.

    See also:
    Grid Article

    Overview

    The following example demonstrates how to use the GridSplitter:

    We want to have two cells whose width can be redistributed. The blue line can be moved left or right when clicking on it, holding the mouse button and dragging. Thus the neighbor cells can be resized.

    The XAML code:

  • 1 comments  /  posted by  Nikolay Raychev  on  Apr 09, 2008 (more than a year ago)

    In response to Joe’s comment on the Canvas article about how the Canvas control deals with the Measure/Arrange process when it is laid out by a parent Panel:

    It seems that during Measure/Arrange process the child Canvas will take zero width and height provided these properties are not set, even if it contains some controls. Here is a little example:

    XAML:

    <UserControl x:Class="CanvasInCanvas.Page"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Width="400" Height="300">
        <Canvas x:Name="cnvControlHolder" Background="White" Height="300" Width="400">
            <Canvas x:Name="cnvInner" Canvas.Top="10" Canvas.Left="10" Background="Blue">
                <Button x:Name="btnHello" Content="Hello Joe :)" Canvas.Top="0" Canvas.Left="0" Margin="10"></Button>
            </Canvas>
        </Canvas>
    </UserControl>

    We don’t see the Blue background of the inner Canvas because its size is zero.


Page 
Help us make SilverlightShow even better. Whether you'd like to suggest a change in the structure, content organization, section layout or any other aspect of SilverlightShow appearance - we'd love to hear from you! Need material (article, tutorial, or other) on a specific topic? Let us know and SilverlightShow content authors will work to have that prepared for you. (hide this)