"Miles Journey--windows App development" control large Collection 2 "patching in"

Source: Internet
Author: User

Let's take a look at some of the controls that haven't been talked about before, but the controls are so many that they can't all be listed, so we have to extrapolate. (Does anyone still remember "learning Wang Yi three"?) )

The most commonly used control is the button, and the button has an interesting property, and when you place the mouse pointer over the button, a string of text pops up over the button's head. This is not very ah ...

<Button ToolTipService.ToolTip="Go to www.blog.csdn.net/nomasp" Margin="692,458,0,230"  />

There is also a control that looks like a button, like a switch.

<toggleswitch  x:Name  = "toggleSwitch1"  header  =" nomasp Toggle " oncontent  =" on "
       offcontent  = "OFF"  toggled  = "toggleswitch_toggled"  margin  =/> <toggleswitch x:name="ToggleSwitch2" Header="nomasp Toggle" oncontent= "on" offcontent= "Off" IsOn="True"  toggled= "toggleswitch_toggled" Margin="409,565,0,130"/>            

The ComboBox provides a drop-down list, which is naturally a very common control.

<combobox height=" the"Width=" the"Name="Cbox1"Selectionchanged="Cbox1_selectionchanged"margin="17,47,1049,671"> <x:String>Select 1</x:String> <x:String>Select 2</x:String> <x:String>Select 3</x:String> <x:String>Select 4</x:String></ComboBox>


The ListBox control is similar to a ComboBox, allowing the user to select an option that is already embedded in the list. Use the following:

<ListBox x:Name="listBox1" SelectionChanged="listBox1_SelectionChanged" Width="100">    <x:String>Item1</x:String>    <x:String>Item2</x:String>    <x:String>Item3</x:String></ListBox>

The control of the win platform setting time is very special, DatePicker and Timepicker.

<DatePicker Foreground="Red" Header="NoMasp Date" Margin="3,177,0,533"/><TimePicker Foreground="Green" Header="NoMasp Time" Margin="3,246,0,464" Width="289"/>

The following is the time to write this blog.

Flipview is a control that allows the user to browse through the collection of items individually, here is the relevant sample code. Commonassets folder can be completely defined in the shared directory, so WP can also be used. I have not cut the WP figure is because I did not install the virtual machine, I use the real machine debugging.

<FlipView>    <Image Source="CommonAssets/5083.jpg"/>    <Image Source="CommonAssets/5503.jpg"/>    <Image Source="CommonAssets/6121.jpg"/></FlipView>

If you have a zoom picture, and you can scroll to see the picture, you can use ScrollBar. This is mainly the position that can be left to the picture is too small to display all the pictures.

<scrollviewer  ZoomMode  = "Enabled"  maxzoomfactor  = "" " horizontalscrollmode  = horizontalscrollbarvisibility  =" Visible " verticalscrollbarvisibility  =" Visible " verticalscrollmode  =" Enabled "  height  = "$"  width  = "$"   Margin  = "363,35,803,533" ;     <Image Source="commonassets/6121.jpg" Height=" Width" ="/>" </ScrollViewer>

There is also a control that can zoom the picture to a specified size yo, that is viewbox. Look at the following picture, is not very cool it.

    <Viewbox maxheight=" MaxWidth" = " Margin" ="23.5,35,-26,-35">            <Image Source="commonassets/5503.jpg" Opacity="0.9"/>         </Viewbox>        <Viewbox maxheight=" MaxWidth" = " $" Margin ="26,35,-26,-35">            <Image Source="commonassets/5503.jpg" Opacity="0.6" />        </Viewbox>        <Viewbox maxheight= " MaxWidth " = "the" Margin= " 26,35,-26,-35 ">            <Image Source="commonassets/5503.jpg" Opacity="0.3" />        </Viewbox>

I believe you have seen the GridView control, many modern applications will be used. It is quite similar to the ComboBox.

<GridView x:Name="gView1" SelectionChanged="gView1_SelectionChanged">    <x:String>Item1</x:String>    <x:String>Item2</x:String>    <x:String>Item3</x:String></GridView>

Hyperlinkbutton can be used either as a button or as a hyperlink.

<HyperlinkButton Content="NoMasp--CSDN" NavigateUri="http://blog.csdn.net/nomasp" />

I believe we all like to play the progress bar, right? I personally feel that the Win8 progress bar has become more interesting than Win7 and Vista.

< ProgressBar  x:name  = "progressBar1"  Span class= "Hljs-attribute" >isindeterminate  = "True"  width  = "+"   Margin  = "607,377,659,385" />  <progressbar  x:name  = " ProgressBar2 " value  =" all " width  = margin  =< Span class= "Hljs-value" > "607,352,659,410" />   

The first diagram is a running progress bar, and the second figure, ProgressBar1, whose value is 70, determines the progress bar, which is progressBar2, which is the stationary state of the running progress bar in the designer.

Will the loop progress bar play better?

<ProgressRing x:Name="progressRing1" IsActive="True" />

"Miles Journey--windows App development" control large Collection 2 "patching in"

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.