Archive for the ·

MS_Silverlight

· Category...

실버라이트4 베타 (silverlight4 beta)

1 comment

Silverlight4 beta -> 구글 언어 번역 페이지 보기

New Features for Application Developers

  • Comprehensive printing support enabling hardcopy reports and documents as well as a virtual print view, independent of screen content.
  • A full set of forms controls with over 60 customizable, styleable components. New controls include RichTextbox with hyperlinks, images and editing and Masked textbox for complex field validation. Enhanced controls include DataGrid with sortable/resizeable columns and copy/paste rows.
  • WCF RIA Services introduces enterprise class networking and data access for building n-tier applications including transactions, paging of data, WCF and HTTP enhancements.
  • Localization enhancements with Bi-Directional text, Right-to-Left support and complex scripts such as Arabic, Hebrew and Thai and 30 new languages.
  • The .NET Common Runtime (CLR) now enables the same compiled code to be run on the desktop and Silverlight without change.
  • Enhanced databinding support increases flexibility and productivity through data grouping/editing and string formatting within bindings.
  • Managed Extensibility Framework supports building large composite applications.
  • Exclusive tooling support for Silverlight, new in Visual Studio 2010. Including a full editable design surface, drag & drop data-binding, automatically bound controls, datasource selection, integration with Expression Blend styling resources, Silverlight project support and full IntelliSense.

Developer tools

  • Fully editable design surface for drawing out controls and layouts.
  • Rich property grid and new editors for values
  • Drag and drop support for databinding and automatically creating bound controls such as listbox, datagrid. New datasources window and picker.
  • Easy to pick styles and resources to make a good looking application based on designer resources built in Expression Blend.
  • Built in project support for Silverlight applications
  • Editor with full intellisense for XAML and C# and VB languages.

Empowering richer, more interactive experiences

Silverlight is already in use as a comprehensive platform for building rich experiences both for application and pure media scenarios including HD quality, interactive video through Smooth Streaming. Silverlight 4 introduces additional capabilities to enable creation of ever more rich, appealing high-performance interactive experiences and innovative media experiences:

  • Fluid interface enhancements advance application usability through animation effects.
  • Webcam and microphone to allow sharing of video and audio for instance for chat or customer service applications.
  • Audio and video local recording capabilities capture RAW video without requiring server interaction, enabling a wide range of end-user interaction and communication scenarios for example video conferencing.
  • Bring data in to your application with features such as copy and paste or drag and drop.
  • Long lists can now be scrolled effortlessly with the mouse wheel.
  • Support conventional desktop interaction models through new features such as right-click context menu.
  • Support for Google’s Chrome browser.
  • Performance optimizations mean Silverlight 4 applications start quicker and run 200% faster than the equivalent Silverlight 3 application.
  • Multi-touch support enables a range of gestures and touch interactions to be integrated into user experiences.
  • Multicast networking, enabling Enterprises to lower the cost of streaming broadcast events such as company meetings and training, interoperating seamlessly with existing Windows Media Server streaming infrastructure.
  • Content protection for H.264 media through Silverlight DRM powered by PlayReady.
  • Output protection for audio/video streams allowing content owners or distributors to ensure protected content is only viewed through a secure video connection.

SL4 : 웹캠과 마이크로폰 접근

no comments

Install Silverlight
소스다운

SL3 : Rendering – 반복 메서드

no comments

public static event System.EventHandler Rendering
System.Windows.Media.CompositionTarget의 멤버

요약:
핵심 Silverlight 렌더링 프로세스가 프레임을 렌더링할 때 발생합니다.

아래와 같이 반복을 시킬 수 있다.

source download

XAML

1
2
3
4
5
6
7
8
9
10
11
<UserControl x:Class="_20091114_LayoutRendering.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
    mc:Ignorable="d" d:DesignWidth="640" d:DesignHeight="480">
    <StackPanel x:Name="LayoutRoot" Background="Black">
        <TextBlock x:Name="tb1" FontSize="20" Foreground="Wheat" Margin="5"></TextBlock>
        <TextBlock x:Name="tb2" FontSize="20" Foreground="Wheat" Margin="5"></TextBlock>
        <TextBlock x:Name="tb3" FontSize="20" Foreground="Wheat" Margin="5"></TextBlock>
    </StackPanel>
</UserControl>

C#

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
namespace _20091114_LayoutRendering
{
    public partial class MainPage : UserControl
    {
        int renderCount = 0;
 
        public MainPage()
        {
            InitializeComponent();
            CompositionTarget.Rendering += new EventHandler(CompositionTarget_Rendering);
        }
 
        void CompositionTarget_Rendering(object sender, EventArgs e)
        {
            renderCount += 1;
            tb1.Text = "sender = " + sender.ToString();
            tb2.Text = "e = " + e.ToString();
            tb3.Text = "renderCont = " + renderCount;
        }
    }
}

XAML을 사용하여 TextBlock을 그린 후 C#으로 반복 프레임을 등록하여 화면을 렌더링하는 개념이다. 기존에 MaxFrameRate에 대해서 알게되었다. 이것으로 현재 MaxFrameRate이 60으로 기본 값으로 작동된다는 것을 알 수 있다.