test

来源:互联网 发布:判断是否存在sql注入 编辑:程序博客网 时间:2024/06/06 16:42
public static void main(){}
<Window x:Class="TestResources.MainWindow"        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"        xmlns:sys="clr-namespace:System;assembly=mscorlib"        Title="MainWindow" Height="350" Width="525">    <Window.Resources>        <!--ResourceDictionary标签可以省略-->        <ResourceDictionary>            <sys:String x:Key="str">字符串资源</sys:String>            <sys:Double x:Key="dbl">3.14</sys:Double>        </ResourceDictionary>    </Window.Resources>    <Grid>        <Grid.ColumnDefinitions>            <ColumnDefinition Width="*"/>            <ColumnDefinition Width="*"/>            <ColumnDefinition Width="*"/>        </Grid.ColumnDefinitions>        <StackPanel>            <TextBlock Text="{StaticResource ResourceKey=str}" />            <TextBlock Text="{StaticResource ResourceKey=dbl}" />        </StackPanel>    </Grid></Window>


0 0
原创粉丝点击