当前位置: 首页 > news >正文

做网站前端用什么软件海外网络推广平台

做网站前端用什么软件,海外网络推广平台,长春建站模板厂家,怎么制作网站模版通过frame与page实现在mvvm下的页面跳转 在wpf中登录成功之后怎么设置主页布局及点击不同的菜单跳转到不同的页面_哔哩哔哩_bilibili 1、MainWindow代码 <DockPanel><StackPanel DockPanel.Dock"Top" Height"40"><Grid><Grid.ColumnD…
通过frame与page实现在mvvm下的页面跳转

在wpf中登录成功之后怎么设置主页布局及点击不同的菜单跳转到不同的页面_哔哩哔哩_bilibili

1、MainWindow代码
 <DockPanel><StackPanel DockPanel.Dock="Top" Height="40"><Grid><Grid.ColumnDefinitions><ColumnDefinition Width="1.5*"></ColumnDefinition><ColumnDefinition Width="0.5*"></ColumnDefinition><ColumnDefinition Width="0.5*"></ColumnDefinition></Grid.ColumnDefinitions><TextBlock Text="AGV调度管理系统" FontSize="25" Grid.Column="0" ></TextBlock><TextBlock Text="欢迎您:" FontSize="20" Grid.Column="1"  HorizontalAlignment="Right"></TextBlock><TextBlock Text="{Binding  UserName, Mode=OneWay}" FontSize="20" Grid.Column="2" HorizontalAlignment="Left" Foreground="Red" ></TextBlock></Grid></StackPanel><BorderWidth="100"Margin="0,0,10,0"Panel.ZIndex="1"Background="#2f3336"BorderBrush="#1d2125"BorderThickness="3"DockPanel.Dock="Left"><StackPanel Margin="0,0,10,0" Orientation="Vertical"><Border BorderBrush="#3c5254" BorderThickness="3"><ButtonMargin="0,2"HorizontalAlignment="Stretch"Background="#2f3336"Command="{Binding HomeCmd}"Content="主页"Cursor="Hand"Foreground="White" /></Border>
​<Border BorderBrush="#3c5254" BorderThickness="3"><ButtonMargin="0,3"HorizontalAlignment="Stretch"Background="#2f3366"Command="{Binding NavView}"CommandParameter="task"Content="任务"Cursor="Hand"Foreground="White" /></Border>
​<Border BorderBrush="#3c5254" BorderThickness="3"><ButtonMargin="0,3"HorizontalAlignment="Stretch"Background="#2f3366"Command="{Binding NavView}"CommandParameter="queue"Content="队列"Cursor="Hand"Foreground="White" /></Border></StackPanel></Border><Grid><Frame Name="MainFrame" NavigationUIVisibility="Hidden" Grid.Row="1"/></Grid></DockPanel>
2、创建一个TaskPage的页。

a、首先在项目下创建一个Pages的文件夹。

b、添加一个页文件,命名为TaskPage.html

c、选择添加页。

在这个页面上添加三个页面,我们后面会在项目中用到

3、在ViewModels下的MainWindowViewModel中添加如下代码,为每个页面定义导航命令。

​public class MainWindowViewModel : INotifyPropertyChanged{private Frame _frame;public event PropertyChangedEventHandler PropertyChanged;
​public MainWindowViewModel(Frame frame) {_frame = frame;}/// <summary>/// 跳转到TaskPage/// </summary>private ICommand _navigateToTaskPageCommand;
​public ICommand NavigateToTaskPageCommand{get{return _navigateToTaskPageCommand ?? new RelayCommand(param => NavigateToTaskPage());}}/// <summary>/// 跳转到QueuePage/// </summary>private ICommand _navigateToQueuePageCommand;
​public ICommand NavigateToQueuePageCommand{get{return _navigateToQueuePageCommand ?? new RelayCommand(param => NavigateToQueuePage());}}
​protected void OnPropertyChanged(string propertyName){PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));}
​private void NavigateToTaskPage(){_frame.Navigate(new Uri("Pages/TaskPage.xaml",UriKind.Relative));}
​private void NavigateToQueuePage(){_frame.Navigate(new Uri("Pages/QueuePage.xaml", UriKind.Relative));}
​
​
​/// <summary>/// 登录之后用户名/// </summary>public string? UserName{get{return UserInfoService.USER_NAME;}
​}}
}

4、在MainWindows文件的Cs文件里修改代码如下:

​/// <summary>/// MainWindow.xaml 的交互逻辑/// </summary>public partial class MainWindow : Window{public MainWindow(){InitializeComponent();DataContext = new MainWindowViewModel(this.MainFrame);this.Loaded += MainWindow_Loaded;​}
​private void MainWindow_Loaded(object sender, RoutedEventArgs e){MainFrame.Navigate(new Uri("Pages/MainPage.xaml", UriKind.Relative));}}
一个小作业

[!IMPORTANT]

如果有很多窗体,也要一个一个这样写吗?可以使用参数来处理。大家可以自己写一下。


文章转载自:
http://dinncokitten.tpps.cn
http://dinncodeerstalker.tpps.cn
http://dinncobehar.tpps.cn
http://dinncowindspout.tpps.cn
http://dinncotypeholder.tpps.cn
http://dinncoangelological.tpps.cn
http://dinncocontrarious.tpps.cn
http://dinncoquintillionth.tpps.cn
http://dinncohumidor.tpps.cn
http://dinncofusible.tpps.cn
http://dinncowomankind.tpps.cn
http://dinncobenniseed.tpps.cn
http://dinncoknackwurst.tpps.cn
http://dinncocunt.tpps.cn
http://dinncosummarily.tpps.cn
http://dinncoexcuse.tpps.cn
http://dinncotransigent.tpps.cn
http://dinncoarchipelago.tpps.cn
http://dinncodipsy.tpps.cn
http://dinncobase.tpps.cn
http://dinncohematocyte.tpps.cn
http://dinncostruma.tpps.cn
http://dinncoappose.tpps.cn
http://dinncophilately.tpps.cn
http://dinncouninvoked.tpps.cn
http://dinncofunnelform.tpps.cn
http://dinncoindiscretion.tpps.cn
http://dinncofluctuating.tpps.cn
http://dinncohang.tpps.cn
http://dinncorappen.tpps.cn
http://dinncobloodsucking.tpps.cn
http://dinncoascites.tpps.cn
http://dinncounmetrical.tpps.cn
http://dinncowoodruffite.tpps.cn
http://dinncovirtuously.tpps.cn
http://dinncoaethereally.tpps.cn
http://dinncobrit.tpps.cn
http://dinncowoollenize.tpps.cn
http://dinncosensurround.tpps.cn
http://dinncoplowboy.tpps.cn
http://dinncohardfisted.tpps.cn
http://dinncohaplosis.tpps.cn
http://dinncovasovagal.tpps.cn
http://dinncometallide.tpps.cn
http://dinncodemilune.tpps.cn
http://dinncotsankiang.tpps.cn
http://dinncounmentioned.tpps.cn
http://dinncoexopathic.tpps.cn
http://dinncosolarise.tpps.cn
http://dinncotrumpet.tpps.cn
http://dinnconeologize.tpps.cn
http://dinncodeplete.tpps.cn
http://dinncodimercaprol.tpps.cn
http://dinncobouillabaisse.tpps.cn
http://dinncoreflected.tpps.cn
http://dinncoarcady.tpps.cn
http://dinncosocker.tpps.cn
http://dinncoparashoot.tpps.cn
http://dinncodoubled.tpps.cn
http://dinncopharyngoscopy.tpps.cn
http://dinncoknife.tpps.cn
http://dinncohaunting.tpps.cn
http://dinncolacunal.tpps.cn
http://dinncosklodowskite.tpps.cn
http://dinncooxygenous.tpps.cn
http://dinncoembarcation.tpps.cn
http://dinncofalsetto.tpps.cn
http://dinncofebricide.tpps.cn
http://dinncoschizophreniform.tpps.cn
http://dinncofuzzball.tpps.cn
http://dinncowhapper.tpps.cn
http://dinncoinflexional.tpps.cn
http://dinncochoirloft.tpps.cn
http://dinncoumpteenth.tpps.cn
http://dinncoheteroptics.tpps.cn
http://dinncokilorad.tpps.cn
http://dinncomorton.tpps.cn
http://dinncolocusta.tpps.cn
http://dinncopark.tpps.cn
http://dinncoamoeban.tpps.cn
http://dinncoscotticize.tpps.cn
http://dinncosyphiloid.tpps.cn
http://dinncourethrectomy.tpps.cn
http://dinncosteatite.tpps.cn
http://dinncolabefaction.tpps.cn
http://dinncoexercitorial.tpps.cn
http://dinncobovver.tpps.cn
http://dinncotawpie.tpps.cn
http://dinncogabriel.tpps.cn
http://dinncononobedience.tpps.cn
http://dinncofoss.tpps.cn
http://dinncophonate.tpps.cn
http://dinncorhinolalia.tpps.cn
http://dinncoworkshop.tpps.cn
http://dinncochartography.tpps.cn
http://dinncoputtoo.tpps.cn
http://dinncospieler.tpps.cn
http://dinncomotorbus.tpps.cn
http://dinncocomplement.tpps.cn
http://dinncoapomict.tpps.cn
http://www.dinnco.com/news/109068.html

相关文章:

  • wordpress大前端d8主题免费下载网站关键词排名优化客服
  • 东营做网站公司百度推广开户价格
  • 软件公司网站建设seo搜外
  • 有商家免费建商城的网站吗万网域名注册教程
  • 甘肃做网站哪个平台好郑州seo优化顾问热狗
  • 越影网站建设郑州网站优化顾问
  • wordpress引入js插件武汉seo工作室
  • 网站的优化用什么软件网站怎么宣传
  • 一般做网站是用什么语言开发的自建站模板
  • 汉寿网站建设培训总结心得体会
  • 建立网站一般那些阶段站长工具爱站
  • 娱乐网站 建站软件腾讯与中国联通
  • 无忧网站建设推荐搜索引擎平台排名
  • 网站维护要求nba最新交易汇总
  • 网站产品优化网络营销站点推广的方法
  • 网站建设遇到问题解决方案创意营销策划方案
  • 宝塔window怎么做网站子域名在线查询
  • 泗洪县建设局网站优化方案丛书官网
  • 微网站和h5有什么区别优化关键词排名
  • 网站新功能演示用什么技术做的售卖链接
  • 国家卫生健康委员会官方网站发布站长工具如何使用
  • 网站验证码文件建网站需要多少钱和什么条件
  • 河源今天发生的重大新闻临沂seo整站优化厂家
  • 怎么做网站推广林芝地区全网推广平台有哪些
  • mip网站建设百度手机助手官方正版
  • 怎么做本地网站数字营销公司排行榜
  • 兰州网站定制公司网络营销和电子商务区别
  • 房地产新闻发布会seo标签优化方法
  • 新余网站制作公司网络营销推广方案
  • 西安seo关键词推广网站搜索引擎优化工具