This library is my latest custom control library, which currently contains three controls: ImageWT (image with text), OpenFileDialog, and Expand. Currently, this library is not complete yet and new controls will be continuously added, and there may be bugs. Welcome to try this custom control library, if you have any questions can go to my website http://www.daisy123.com/have a question to have in the raise.
This is the three controls, the first is imagewt, the second is openfiledialog, and the third is expand. Before using these controls, add Daisy. wp7.Controls. dll to the project. You can see these controls in the toolbar and drag them to the Project interface for use.
- ImageWT: this control is mainly used to display a line of text below the image. You can add borders and change the background color.
<My: ImageWT HorizontalAlignment = "Left" Margin = "328," Name = "imageWT1" VerticalAlignment = "Top" Width = "" ImageUri = "testDaisyControls; component/daisy.jpg "Height =" 95 "Background =" {StaticResource PhoneAccentBrush} "BorderBrush =" Beige "BorderThickness =" 10 "CornerRadius =" 20 "/>
2. Expand.
<My: Expand HorizontalAlignment = "Left" Margin = "12,265, 429" Name = "expand1" verticalignment = "Top" Height = "456" Width = "">
<My: Expand. HeaderContent>
<StackPanel Orientation = "Horizontal">
<Image Source=”daisy.jpg "Width =" 60 "Height =" 50 "/>
<TextBlock Text = "Test Expand" FontSize = "30"/>
</StackPanel>
</My: Expand. HeaderContent>
<My: Expand. Content>
<StackPanel>
<Button Margin = "4" Padding = "4" Content = "Test? 1 ° ?" />
<Button Margin = "4" Padding = "4" Content = "Test? 2 t "/>
<Button Margin = "4" Padding = "4" Content = "Test? 3. y "/>
<Image Source=”daisy.jpg "Margin =" 4 "Width =" 200 "Height =" 150 "Stretch =" UniformToFill "/>
</StackPanel>
</My: Expand. Content>
</My: Expand>
3. OpenFileDialog: because there is no file operation interface on phone7, It is very troublesome, so I wrote a file to operate the file.
<My: OpenFileDialog HorizontalAlignment = "Left" Margin = "180,157, 0, 0 "Name =" openFileDialog1 "VerticalAlignment =" Top "FileFilter =" * "SelectedChanged =" openFileDialog1_SelectedChanged "SelectedCompleted =" openFileDialog1_SelectedCompleted "/>
Custom Library: http://www.daisy123.com /? Page_id = 427 Daisy. wp7.Controls