1 Rich Internet Application 2010 1 학기 동서대학교 김남우. 2/12 Control Text Control 1.TextBlock 2.TextBox 3.PasswordBox Content Control 1.Button 2.CheckBox 3.ListBoxItem.

Slides:



Advertisements
Similar presentations
1111 Creating ASPX Controls Programatically Objectives You will be able to Dynamically add controls to a page. Dynamically alter properties of controls.
Advertisements

Creating Windows Store Apps. 1. Overview of Windows Store applications 2. Worked example 3. Adding controls and event handlers Contents 2.
Presenter: James Huang Date: Sept. 26,  Introduction  Basics  Lists  Links  Forms  CSS 2.
CSS CSS Precise Aesthetic Control. Cascading Style Sheets Though they can be put in HTML header, usually a separate page that the HTML links to Contains.
Stylin’ with CSS. 2 Topics What is CSS? Why CSS? CSS Examples.
Html Karl W Broman Department of Biostatistics Johns Hopkins University
Technologies for web publishing Ing. Václav Freylich Lecture 6.
Dinko Jakovljević Microsoft Student Partner | BambooLab
T U T O R I A L  2009 Pearson Education, Inc. All rights reserved Painter Application Introducing Graphics with Windows Presentation Foundation.
Beginning Web Site Creation: Dreamweaver CS4. XHTMLCSS  Describes the structure  Content  Collection of styles  Formatting body { background-color:
1 Moderne GUI og Silverlight Windows Presentation Foundation.
Getting Started with Windows Phone 7.0 Development Creating a Silverlight Application Sergey Barskiy
Style sheets can also affect the BODY. style4.css BODY {BACKGROUND-COLOR : white} H1 {COLOR : red; FONT-SIZE : 50; FONT-FAMILY : arial} H2 {COLOR : green}
Style sheets can also affect the body. style4.css body {background-color : white} h1 {color : red; font-size : 50; font-family : arial} h2 {color : green}
CSS to Know And this is just the beginning. What to What?  Tags = regular HTML  Ids = #id, only one hashtag per page  Class =.class, many as you want.
Microsoft Visual Basic 2012 CHAPTER TWELVE (ENRICHMENT CHAPTER) Windows Store Apps.
Charles Petzold Controls and Data Binding.
Cascading Style Sheets Billy Toy Cascading Style Sheets Syntax review How to Implement style sheets Background properties Text properties.
Cascading style sheets (CSS)
Chapter 7 Web Typography Principles of Web Design, 4 th Edition.
Week 4.  Three ways to apply CSS: Inline CSS Internal style sheets ( header style information) External style sheets.
Tutorial #3 Cascading Style Sheets. Review: Last Class Image sizing Pathnames Project Default Path Relative Path Absolute Path Blackboard Homework Submission.
XP New Perspectives on XML Tutorial 5 1 TUTORIAL 5 CSS Tutorial – Carey ISBN
Doncho Minkov Telerik School Academy academy.telerik.com Technical Trainer
1 Intro XAML Attribute syntax & property syntax Panels Reusable resources Controls Data binding Steen Jensen, spring 2014.
V 1.1 Programming III. GUI APIs WPF Hello World Important UI elements UI elements / content models UI elements / inheritance.
Cascading Style Sheets Class 1, Lecture 1 Rachel A Ober
CSS – Cascading Style Sheets Fred Durao
CSS My favourite ICT lesson By Federico Boschi Cascading Style Sheets.
V 1.0 Programming III. Comparison of GUI APIs WPF Hello World UI elements Content models Inheritance chains.
Microsoft Visual Basic 2008 CHAPTER SEVEN Creating Web Applications.
UNIVERSITY of GREENWICH 1E. I. Teodorescu Dependency/Attached properties Enumerations Starting a game – flying pig Visual Application Development E. I.
Tutorial #3 Cascading Style Sheets. Tutorial #2 Review - Anchors Links to Site DMACC Internal Links Go to Top Mail To me Local.
Basic WPF Controls Doncho Minkov Telerik School Academy schoolacademy.telerik.com Technical Trainer
Cascading Style Sheets Class 2, Lecture 2 Rachel A Ober
LAYOUT CONTROLS. XAML Overview XAML : eXtensible Application Markup Language pronounced (ZAMEL) is a markup language used to design user interfaces XML-based.
Files you will need ... Black Goose Bistro Summer Menu
Lesson 03 // Cascading Style Sheets. CSS Stands for Cascading Style Sheets. We’ll be using a combination of Html and CSS to create websites. CSS is a.
Copyright ©2004 Virtusa Corporation | CONFIDENTIAL Windows Presentation Foundation Ruwan Wijesinghe.
Windows Presentation Foundation Maximilian Knor Developer Evangelist Developer and Plattform Group Microsoft Österreich
Creating Your Own Webpage COSC Cascading Stylesheets Think of: HTML: content of your webpage HTML has tags CSS: presentation and appearance of your.
More exercises with C# Fateme Rajabi #W6. Add an image to your project Right click on your project name in solution explorer Add -> Existing item -> browse.
C# kursus Rohde & Schwarz1 Moderne GUI Windows Presentation Foundation.
CSS with XHTML Please use speaker notes for additional information!
Cascading Style Sheets Eugenia Fernandez IUPUI. CSS Purpose CSS allow you to specify the style in which your XML elements are displayed. CSS were originally.
Module 3 Designing and Developing a User Interface.
[ServiceContract] public interface IJokeOfTheDayService { [OperationContract] string GetJoke(int jokeStrength); }
OV Copyright © 2008 Element K Content LLC. All rights reserved.  Format Text  Format Lists  Format Images  Modify Page Background Applying Styles.
تقنيات الإنترنت وبرمجة الويب “ العملي “ أ. غادة الرواشدة 1 CSS Cascading Style Sheets.
T U T O R I A L  2009 Pearson Education, Inc. All rights reserved Bookstore Web Application: Client Tier Introducing Web Controls.
WebClient client; 10 // Constructor public MainPage() { InitializeComponent(); client = new WebClient(); client.DownloadStringCompleted.
private void Application_Launching(object sender, LaunchingEventArgs e) { } private void Application_Activated(object.
CPSC 481 – Week #7 Sowmya Somanath
Web Design (14) CSS Formatting Text. Formatting Text In Brackets, go to your ‘externalcss’ website and find the ‘formattingtext’ page. Use the ‘main’
Windows Phone Materi 4. Control Layout & Grouping Border Canvas ContentControl Grid Panorama Pivot StackPanel VirtualizingStackPanel ScrollViewer.
CIS67 Foundations for Creating Web Pages Professor Al Fichera Rev. September 22, 2010—All HTML code brought to XHTML standards. Reference for CIS127 and.
Html Karl W Broman Department of Biostatistics Johns Hopkins University
Cascading Style Sheet Fix the Errors Lesson 4. / Pat Learner / h1, h2, h3, h4 { font-family: tahoma, arial, helvetica, sans-serif text-align: left; }.skyblue.
REC [ ] How to implement CAMERA RECORDING for USB WEBCAM or IP CAMERA in C#.NET SOURCE CODE: ! Welcome to this presentation that explains.
JavaScript and Ajax (JavaScript Dynamic HTML (DHTML)) Week 7 Web site:
HTML & CSS Contents: the different ways we can use to apply CSS to The HTML documents CSS Colors and Background CSS Fonts CSS Text CSS box model: padding,
Unit 3 - Review. Topics 1. Tag, Attribute, Value 2. CSS Rule Syntax + link 3. Categories of Selectors 4. Inline vs Block Tags 5. CSS Layout 6. CSS Box.
Introduction to Silverlight
Prashanth Vijayaraghavan
Introduction to Silverlight
Visual programming Chapter 3: GUI (Graphical User Interface) Part I
المحاضرة الأولى Lab(1) أ.ساره الأحمدي برمجة حاسب 2.
XAML Deep Dive for Windows & Windows Phone Apps Jump Start
04 | UI Presentation & XAML
Presentation transcript:

1 Rich Internet Application 학기 동서대학교 김남우

2/12 Control Text Control 1.TextBlock 2.TextBox 3.PasswordBox Content Control 1.Button 2.CheckBox 3.ListBoxItem 4.ComboBoxItem Content Control & Header TabItem Item Control ListBox ComboBox & ComboBoxItem Range Control ProgressBar Slider ScrollBar Calendar & DatePicker Control

3/12 <UserControl x:Class="SilverlightApplication1.MainPage" xmlns=" xmlns:x=" xmlns:d=" xmlns:mc=" mc:Ignorable="d" d:DesignWidth="640" d:DesignHeight="480"> Wow! Silverlight TextBlock_XAML

4/12 public partial class MainPage : UserControl { public MainPage() { InitializeComponent(); this.Loaded += new RoutedEventHandler(MainPage_Loaded); } void MainPage_Loaded(object sender, RoutedEventArgs e) { TextBlock txtBlock = new TextBlock(); SolidColorBrush txtBlueBrush = new SolidColorBrush(); txtBlueBrush.Color = Colors.Blue; txtBlock.Foreground = txtBlueBrush; txtBlock.FontFamily = new FontFamily("Arial"); txtBlock.FontSize = 80; txtBlock.FontWeight = FontWeights.Bold; txtBlock.FontStyle = FontStyles.Italic; txtBlock.Text = "Wow! Silverlight“; LayoutRoot.Children.Add(txtBlock); } TextBlock_C#

5/12 <UserControl x:Class="SilverlightApplication1.MainPage" xmlns=" xmlns:x=" xmlns:d=" xmlns:mc=" mc:Ignorable="d" d:DesignWidth="640" d:DesignHeight="480"> Wow! Silverlight TextBlock_Inlines_XAML

6/12 void MainPage_Loaded(object sender, RoutedEventArgs e) { TextBlock txtBlock = new TextBlock(); Run txtRun1 = new Run(); SolidColorBrush txtBlueBrush = new SolidColorBrush(); txtBlueBrush.Color = Colors.Blue; txtRun1.Foreground = txtBlueBrush; txtRun1.FontFamily = new FontFamily("Arial"); txtRun1.FontSize = 80; txtRun1.FontWeight = FontWeights.Bold; txtRun1.FontStyle = FontStyles.Italic; txtRun1.Text = "Wow!“; txtBlock.Inlines.Add(txtRun1); txtBlock.Inlines.Add(new LineBreak()); Run txtRun2 = new Run(); SolidColorBrush txtOrangeBrush = new SolidColorBrush(); txtOrangeBrush.Color = Colors.Orange; txtRun2.Foreground = txtGoldBrush; txtRun2.FontFamily = new FontFamily("Courier New"); txtRun2.FontSize = 50; txtRun2.FontWeight = FontWeights.Bold; txtRun2.Text = "Silverlight“; txtBlock.Inlines.Add(txtRun2); LayoutRoot.Children.Add(txtBlock); } TextBlock_Inlines_C#

7/12 <UserControl x:Class="SilverlightApplication1.MainPage" xmlns=" xmlns:x=" xmlns:d=" xmlns:mc=" mc:Ignorable="d" d:DesignWidth="640" d:DesignHeight="480"> TextWrapping="Wrap" 사용 예 TextBox_XAML

8/12 void MainPage_Loaded(object sender, RoutedEventArgs e) { TextBox txtBox = new TextBox(); txtBox.Width = 150; txtBox.Height = 100; SolidColorBrush txtBlueBrush = new SolidColorBrush(); txtBlueBrush.Color = Colors.Blue; txtBox.Foreground = txtBlueBrush; txtBox.FontFamily = new FontFamily("Arial"); txtBox.FontSize = 20; txtBox.FontWeight = FontWeights.Bold; txtBox.FontStyle = FontStyles.Italic; txtBox.Text = "Wow! Silverlight“; LayoutRoot.Children.Add(txtBox); } TextBox_C#

9/12 <UserControl x:Class="PasswordBoxExample.MainPage" xmlns=" xmlns:x=" xmlns:d=" xmlns:mc=" mc:Ignorable="d" d:DesignWidth="640" d:DesignHeight="480"> <PasswordBox HorizontalAlignment="Left" VerticalAlignment="Top" Width="200" Height="35" Password="Wow! Silverlight" PasswordChar="*"/> <PasswordBox HorizontalAlignment="Left" VerticalAlignment="Top" Margin="0,40,0,0" Width="200" Height="35" Password="Wow! Silverlight" <PasswordBox HorizontalAlignment="Left" VerticalAlignment="Top" Margin="0,80,0,0" Width="200" Height="35" Password="Wow! Silverlight" PasswordChar="A"/> PasswordBox_XAML

10/12 void MainPage_Loaded(object sender, RoutedEventArgs e) { PasswordBox passWordBox1 = new PasswordBox(); passWordBox1.SetValue(Grid.HorizontalAlignmentProperty, HorizontalAlignment.Left); passWordBox1.SetValue(Grid.VerticalAlignmentProperty, VerticalAlignment.Top); passWordBox1.Width = 200; passWordBox1.Height = 35; passWordBox1.Password = "Wow! Silverlight "; passWordBox1.PasswordChar = '*'; LayoutRoot.Children.Add(passWordBox1); PasswordBox passWordBox2 = new PasswordBox(); passWordBox2.SetValue(Grid.HorizontalAlignmentProperty, HorizontalAlignment.Left); passWordBox2.SetValue(Grid.VerticalAlignmentProperty, VerticalAlignment.Top); passWordBox2.Margin = new Thickness(0, 40, 0, 0); passWordBox2.Width = 200; passWordBox2.Height = 35; passWordBox2.Password = "Wow! Silverlight "; passWordBox2.PasswordChar = LayoutRoot.Children.Add(passWordBox2); PasswordBox passWordBox3 = new PasswordBox(); passWordBox3.SetValue(Grid.HorizontalAlignmentProperty, HorizontalAlignment.Left); passWordBox3.SetValue(Grid.VerticalAlignmentProperty, VerticalAlignment.Top); passWordBox3.Margin = new Thickness(0, 80, 0, 0); passWordBox3.Width = 200; passWordBox3.Height = 35; passWordBox3.Password = "Wow! Silverlight "; passWordBox3.PasswordChar = 'A'; LayoutRoot.Children.Add(passWordBox3); } PasswordBox_C#

11/12 <UserControl x:Class="ContentControlExample.MainPage" xmlns=" xmlns:x=" xmlns:d=" xmlns:mc=" compatibility/2006" mc:Ignorable="d" d:DesignWidth="640" d:DesignHeight="480“> <Rectangle Canvas.Left="0" Canvas.Top="0" Width="200" Height="100" Fill="Gold" RadiusX="15" RadiusY="15"/> ContentControl_XAML

12/12 Hover : Mouse Cursor 가 Button Control 위에 올라왔을 때 Click Press : Mouse 로 Button Control 을 눌렀을 때 Click Release : Mouse 로 Button Control 을 눌렀다가 땔 때 Click Button

13/12 Button public partial class MainPage : UserControl { public MainPage() { InitializeComponent(); } private void btnHover_Click(object sender, RoutedEventArgs e) { MessageBox.Show("Mouse Hover"); } private void btnPress_Click(object sender, RoutedEventArgs e) { MessageBox.Show("Mouse Presss"); } private void btnRelease_Click(object sender, RoutedEventArgs e) { MessageBox.Show("Mouse Release"); }

14/12 Delay : Mouse 로 RepeatButton Control 을 누른 후 Click Event 발생 반복 작업이 시작하기 전까지 대기하는 시간. 단위는 밀리세컨드 (Default : 250) Interval : Click Event 발생 후 다음 Click Event 발생까지의 간격. 단위는 밀리세컨드 (Default : 250) RepeatButton

15/12 <RepeatButton x:Name="btnMinusSec" Width="30" Height="30" Canvas.Left="5" Canvas.Top="10" Content="-" Click="btnMinusSec_Click"/> <TextBlock x:Name="txtBlkSec" Width="25" Height="30" Canvas.Left="40" Canvas.Top="15" Text="3 초 " TextAlignment="Center"/> <RepeatButton x:Name="btnPlusSec" Width="30" Height="30" Canvas.Left="70" Canvas.Top="10" Content="+" Click="btnPlusSec_Click"/> RepeatButton public partial class MainPage : UserControl { private Int32 playTime = 3; public MainPage() { InitializeComponent(); } private void btnMinusSec_Click(object sender, RoutedEventArgs e) { playTime = Math.Max(1, --playTime); txtBlkSec.Text = String.Format("{0} 초 ", playTime); } private void btnPlusSec_Click(object sender, RoutedEventArgs e) { playTime = Math.Min(60, ++playTime); txtBlkSec.Text = String.Format("{0} 초 ", playTime); }

16/12 _blank, _media, _search : Link Page 를 새로운 PopUP 창으로 띄움 _parent, _self, _top. “” : Link Page 를 현재의 Page 로 Load Window Name : Link Page 를 해당 이름을 가진 PopUP 창으로 띄움 HyperlinkButton

17/12 <UserControl x:Class="SilverlightApplication1.MainPage" xmlns=" xmlns:x=" xmlns:d=" xmlns:mc=" mc:Ignorable="d" d:DesignWidth="640" d:DesignHeight="480"> <HyperlinkButton Content="_blank 로 이동 " NavigateUri=" TargetName="_blank"/> <HyperlinkButton Content="_self 로 이동 " NavigateUri=" TargetName="_self"/> HyperlinkButton

18/12 IsThreeState 가 True 일 경우 : Checked, Indeterminate, Unchecked IsThreeState 가 False 일 경우 : Checked, Unchecked Default 는 IsThreeState=“False” CheckBox

19/12 <UserControl x:Class="CheckBoxExample.MainPage" xmlns=" xmlns:x=" xmlns:d=" xmlns:mc=" mc:Ignorable="d" d:DesignWidth="640" d:DesignHeight="480"> <CheckBox x:Name="chkBoxTwoState" Content="Two State CheckBox" Checked="chkBoxTwoState_Checked" Unchecked="chkBoxTwoState_Unchecked" /> <CheckBox x:Name="chkBoxThreeState" Content="Three State CheckBox" IsThreeState="True" Checked="chkBoxThreeState_Checked“ Indeterminate="chkBoxThreeState_Indeterminate" Unchecked="chkBoxThreeState_Unchecked" /> CheckBox

20/12 public partial class MainPage : UserControl { public MainPage() { InitializeComponent(); } private void chkBoxTwoState_Checked(object sender, RoutedEventArgs e) { //chkBoxTwoState 체크박스의 상태가 Checked 일 때 루틴 추가 } private void chkBoxTwoState_Unchecked(object sender, RoutedEventArgs e) { //chkBoxTwoState 체크박스의 상태가 Unchecked 일 때 루틴 추가 } private void chkBoxThreeState_Checked(object sender, RoutedEventArgs e) { //chkBoxThreeState 체크박스의 상태가 Checked 일 때 루틴 추가 } private void chkBoxThreeState_Indeterminate(object sender, RoutedEventArgs e) { //chkBoxThreeState 체크박스의 상태가 Indeterminate 일 때 루틴 추가 } private void chkBoxThreeState_Unchecked(object sender, RoutedEventArgs e) { //chkBoxThreeState 체크박스의 상태가 Unchecked 일 때 루틴 추가 } CheckBox