Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/xpath/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# WPF页面中的类似于Post back的功能_C#_Wpf_Xaml - Fatal编程技术网

C# WPF页面中的类似于Post back的功能

C# WPF页面中的类似于Post back的功能,c#,wpf,xaml,C#,Wpf,Xaml,我正在构建一个包含大量页面的WPF应用程序。我想知道Asp.Net中是否有类似IsPostBack的功能。我只是想知道这是第一次加载特定页面。提前谢谢 xaml 如果您的页面导航是通过框架进行的,请附加到框架。已导航的事件。如果您提供更多详细信息(一些XAML和代码),那么我们可能会更有帮助……windows窗体没有回发功能。。。事实上,也没有回发的网站。但微软想吸引windows窗体开发人员加入asp.net,他们试图提供windows窗体,如DevelopmentNet体验,这样我们就可

我正在构建一个包含大量页面的WPF应用程序。我想知道Asp.Net中是否有类似IsPostBack的功能。我只是想知道这是第一次加载特定页面。提前谢谢

xaml



如果您的页面导航是通过
框架进行的,请附加到
框架。已导航的
事件。如果您提供更多详细信息(一些XAML和代码),那么我们可能会更有帮助……

windows窗体没有回发功能。。。事实上,也没有回发的网站。但微软想吸引windows窗体开发人员加入asp.net,他们试图提供windows窗体,如DevelopmentNet体验,这样我们就可以使用按钮。单击事件IsPostBack是这种抽象的副作用。
<Window x:Class="Custom_Track_Reports.LoginWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="LoginWindow" >
<Viewbox Stretch="Fill">
<Grid Background="#FF58B0DF" Height="401">
        <Rectangle Fill="#FFF0F3F4" Height="173" Margin="45,197,58,0" Stroke="Black" VerticalAlignment="Top" AllowDrop="True" />
        <Image Height="125" Margin="340,10,330,0" VerticalAlignment="Top" Source="Images/logo_lrg.png"/>
        <Label Content="Custom Track Reports" HorizontalAlignment="Left" Margin="287,147,0,0" VerticalAlignment="Top" RenderTransformOrigin="0.607,1.112" Width="268" Height="47" FontFamily="Arial" FontSize="26" Foreground="White"/>
        <TextBox Margin="128,0,0,110" TextWrapping="Wrap" VerticalAlignment="Bottom" Height="25" BorderThickness="1" FontFamily="Arial" FontSize="21" Text="" Name="userTextBox" FontStretch="Expanded" Opacity="1" HorizontalAlignment="Left" Width="546" AcceptsReturn="False" KeyDown="userTextBox_KeyDown" />
        <Button x:Name="enterButton" Content="Enter" HorizontalAlignment="Right" Margin="0,311,166,0" VerticalAlignment="Top" Width="110" Height="26" FontSize="14" Style="{DynamicResource button}" Click="enterButton_Click"/>
        <Label Content="User ID" FontSize="20" FontWeight="Bold" Height="40" HorizontalAlignment="Left" Margin="122,215,0,0" Name="label1" VerticalAlignment="Top" Width="105" />
    </Grid>
</Viewbox>