"<local:clEffects x:Name='myclEffects' x:Name='myclEffects'/>
"<RowDefinition Height='107*'/>" & "</Grid.RowDefinitions>" & "<StackPanel Orientation='Horizontal' TextElement.FontWeight='Bold' TextElement.FontSize='72pt' Margin='2,-3,163,0' Height='177' VerticalAlignment='Top'>" & "<StackPanel.Resources>" & "<Storyboard x:Name='myStoryboard' x:Key='myFold'>" & "<DoubleAnimation Storyboard.TargetProperty='clEffects.Left' Storyboard.TargetName='mysbLeft' " & "/>" & "</Storyboard>" & "<Storyboard x:Name='myStoryboard2' x:Key='myDropShadow'>" & "<DoubleAnimation Storyboard.TargetProperty='ShadowDepth' Storyboard.TargetName='mysbDropShadow'" & "/>" & "</Storyboard>" & "</StackPanel.Resources>" & "<Button x:Name='myButton1' Content='Click!' Width='91' " & "Margin='60' Height='42' FontSize='24' Padding='1'>" & "<Button.Effect>" & "<local:clEffects x:Name='myclEffects' x:Name='myclEffects'/>" & "</Button.Effect>" & "</Button>" & "</StackPanel>" & "</Grid>"
Dim stringReader As New StringReader(xaml) Dim xmlReader_1 As XmlReader = XmlReader.Create(stringReader) Dim tree As UIElement = DirectCast(XamlReader.Load(xmlReader_1), UIElement) LayoutRoot.Children.Add(tree) End Sub
Dim xmlReader_1 As XmlReader = XmlReader.Create(stringReader)
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)