<UserControl xmlns: basics = "clr-namespace: System. windows. controls; assembly = System. windows. controls "xmlns: data =" clr-namespace: System. windows. controls; assembly = System. windows. controls. data "x: Class =" SilverlightInterview. page"
Xmlns = "http://schemas.microsoft.com/winfx/2006/xaml/presentation"
Xmlns: x = "http://schemas.microsoft.com/winfx/2006/xaml"
Width = "800" Height = "1000">
<Grid x: Name = "LayoutRoot" Background = "White">
<Grid. ColumnDefinitions>
<ColumnDefinition/>
</Grid. ColumnDefinitions>
<Grid. RowDefinitions>
<RowDefinition Height = "30"/>
<RowDefinition Height = "30"/>
<RowDefinition Height = "30"/>
<RowDefinition Height = "200" type = "regxph" text = "yourobjectname"/>
<RowDefinition Height = "500" type = "regxph" text = "yourobjectname"/>
</Grid. RowDefinitions>
<TextBlock Grid. Column = "1" Grid. Row = "0" Text = "announcement management" FontSize = "30" HorizontalAlignment = "Center" verticalignment = "Center"/>
<StackPanel x: Name = "s1" Grid. Row = "1" Grid. Column = "0" Orientation = "Horizontal" MouseEnter = "s1_MouseEnter">
<StackPanel. Resources>
<Storyboard x: Name = "colorStoryboard2">
<ColorAnimation BeginTime = "00:00:00" Storyboard. TargetName = "mySolidColorBrush"
Storyboard. TargetProperty = "Color" From = "AliceBlue" To = "Bisque" Duration = "0:0:4" FillBehavior = "Stop"/>
</Storyboard>
</StackPanel. Resources>
<StackPanel. Background>
<SolidColorBrush x: Name = "mySolidColorBrush" Color = "AliceBlue"/>
</StackPanel. Background>
<TextBlock Text = "title:" FontSize = "14"> </TextBlock>
<Border Background = "Coral" Width = "200" Padding = "2" CornerRadius = "20">
<TextBox Width = "170" x: Name = "topic">
<ToolTipService. ToolTip>
<StackPanel Orientation = "Vertical">
<Image Source = "image/a. JPG"> </Image>
<TextBlock Text = "azu big lapels card tuyere Kazakh"> </TextBlock> <Ellipse x: name = "ellipse1" Width = "120" Height = "120" Fill = "Orange"> </Ellipse>
<CheckBox Content = "Haha"> </CheckBox>
<CheckBox Content = ""> </CheckBox>
<CheckBox Content = "hehe"> </CheckBox>
<ProgressBar Value = ""> </ProgressBar>
<Button Content = "" Width = "90"> </Button>
<Slider Value = "200" Minimum = "100" Maximum = "800" SmallChange = "10" LargeChange = "25"> </Slider>
<Basics: Calendar> </basics: Calendar>
</StackPanel>
</ToolTipService. ToolTip>
</TextBox>
</Border>
<TextBlock HorizontalAlignment = "Right" Text = "content:" FontSize = "14"> </TextBlock>
<Border Background = "Coral" Width = "200" Padding = "2" CornerRadius = "20">
<TextBox Width = "170" x: Name = "remark" MouseEnter = "remark_MouseEnter" MouseLeftButtonDown = "remark_MouseLeftButtonDown">
<ToolTipService. ToolTip>
<MediaElement x: Name = "media1" AutoPlay = "True" Grid. column = "0" Grid. row = "4" Source = "http: // localhost: 4384/image/lake. wmv "Width =" 340 "Height =" 180 "> </MediaElement>
</ToolTipService. ToolTip>
</TextBox>
</Border>
<Border Background = "Coral" Width = "80" Padding = "2" CornerRadius = "20">
<Button Content = "add" Width = "60" Click = "Button_Click">
<ToolTipService. ToolTip>
<TextBlock TextWrapping = "Wrap" Text = "Click here to add"/>
</ToolTipService. ToolTip>
</Button>
</Border>
<Border Background = "Coral" Width = "80" Padding = "2" CornerRadius = "20">
<Button Content = "refresh" Width = "60" Click = "Button_Click_1">
<ToolTipService. ToolTip>
<Data: DataGrid x: Name = "myGrid1" AutoGenerateColumns = "False">
<Data: DataGrid. Columns>
<Data: DataGridTextColumn Header = "no." Width = "120" Binding = "{Binding ID}"/>
<Data: Maid Header = "title" Width = "220" Binding = "{Binding Topic}"/>
<Data: DataGridTextColumn Header = "content" Width = "260" Binding = "{Binding Remark}"/>
</Data: DataGrid. Columns>
</Data: DataGrid>
</ToolTipService. ToolTip>
</Button>
</Border>
<Border Background = "Coral" Width = "80" Padding = "2" CornerRadius = "20">
<Button Content = "Search" Width = "60" Click = "Button_Click_2">
</Button>
</Border>
<Thumb> </Thumb>
<TextBlock x: Name = "msg" Text = "" FontSize = "14"> </TextBlock>
</StackPanel>
<StackPanel x: Name = "s2" Grid. Row = "2" Grid. Column = "0" Orientation = "Horizontal" MouseLeave = "s2_MouseLeave" MouseEnter = "s2_MouseEnter">
<StackPanel. Resources>
<! -- Animates the rectangle's opacity. -->
<Storyboard x: Name = "opacityStoryboard1">
<DoubleAnimation
Storyboard. TargetName = "s2"
Storyboard. TargetProperty = "Opacity"
From = "1.0" To = "0.0" Duration ="
AutoReverse = "True"
/>
</Storyboard>
</StackPanel. Resources>
</StackPanel>
<Border Grid. Column = "0" Grid. Row = "3" Background = "Coral" Width = "auto" Padding = "20" CornerRadius = "20">
<Data: DataGrid x: Name = "myGrid" MouseEnter = "myGrid_MouseEnter" MouseLeave = "myGrid_MouseLeave" Grid. column = "0" Grid. row = "2" AutoGenerateColumns = "False" LoadingRow = "maid">
<Data: DataGrid. Columns>
<Data: DataGridTextColumn Header = "no." Width = "30" Binding = "{Binding ID}"/>
<Data: Maid Header = "title" Width = "200" Binding = "{Binding Topic}"/>
<Data: DataGridTextColumn Header = "content" Width = "260" Binding = "{Binding Remark}"/>
<Data: Maid Header = "" Width = "80">
<Data: DataGridTemplateColumn. CellTemplate>
<DataTemplate>
<StackPanel Orientation = "Horizontal">
<Button Content = "details" x: Name = "ButtonDetail" Click = "ButtonDetail_Click" Tag = "">
</Button>
<Button Content = "delete" x: Name = "ButtonDel" Click = "ButtonDel_Click_1" Tag = ""> </Button>
</StackPanel>
</DataTemplate>
</Data: DataGridTemplateColumn. CellTemplate>
</Data: DataGridTemplateColumn>
<Data: Maid Header = "" Width = "80">
<Data: DataGridTemplateColumn. CellTemplate>
<DataTemplate>
<StackPanel Orientation = "Horizontal">
<CheckBox Content = "Haha"> </CheckBox>
<ComboBox> </ComboBox>
</StackPanel>
</DataTemplate>
</Data: DataGridTemplateColumn. CellTemplate>
</Data: DataGridTemplateColumn>
</Data: DataGrid. Columns>
</Data: DataGrid>
</Border>
<StackPanel Loaded = "StartTimer" x: Name = "SP3" Grid. Column = "0" Grid. Row = "4" Orientation = "Vertical"> </StackPanel>
<TextBlock x: Name = "Stock1"> </TextBlock>
<Slider x: Name = "Slider1" ValueChanged = "Slider1_ValueChanged" Minimum = "100" Maximum = "800" SmallChange = "10" LargeChange = "25"> </Slider>
</Grid>
</UserControl>