Dim st As New FileStream(s.FileName, FileMode.Open) Dim gridl As New Viewbox gridl = System.Windows.Markup.XamlReader.Load(st) Panel.Children.Add(gridl) st.Close()
<?xml version="1.0" encoding="UTF-8"?> <Viewbox xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" Stretch="Uniform"> <Canvas Name="svg2" Width="744" Height="1052"> <Canvas.Resources/> <!--Unknown tag: sodipodi:namedview--> <!--Unknown tag: metadata--> <Canvas Name="layer1"> <Rectangle xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Canvas.Left="63" Canvas.Top="50" Width="606" Height="311" RadiusY="16.246428" RadiusX="16.246428" Name="rect2985" Fill="#FFFF0000"/> <TextBlock xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" FontSize="40" FontWeight="Normal" FontFamily="arial" FontStyle="normal" Foreground="#FF000000" Canvas.Left="109" Canvas.Top="370" Name="text2987"> <Span whiteSpaceCollapse="preserve" FontSize="40">123</Span> <Span whiteSpaceCollapse="preserve" FontSize="40">456</Span> <Span whiteSpaceCollapse="preserve" FontSize="40"> 7</Span> </TextBlock> </Canvas> </Canvas> </Viewbox>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)