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

玉溪网站建设网站建设seo和sem哪个工资高

玉溪网站建设网站建设,seo和sem哪个工资高,一站式营销推广,网站制作 天津通过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://achech.rywn.cn
http://periodization.rywn.cn
http://creme.rywn.cn
http://tampala.rywn.cn
http://monobasic.rywn.cn
http://drammock.rywn.cn
http://euroclear.rywn.cn
http://trackless.rywn.cn
http://bugler.rywn.cn
http://hibernant.rywn.cn
http://tomahawk.rywn.cn
http://glimmer.rywn.cn
http://landholding.rywn.cn
http://firemen.rywn.cn
http://insheathe.rywn.cn
http://deputize.rywn.cn
http://dipsomaniac.rywn.cn
http://hatikvah.rywn.cn
http://suprathermal.rywn.cn
http://bon.rywn.cn
http://upgather.rywn.cn
http://constructively.rywn.cn
http://fancify.rywn.cn
http://mastitis.rywn.cn
http://mobe.rywn.cn
http://carbonnade.rywn.cn
http://arsonous.rywn.cn
http://tanzanite.rywn.cn
http://gastricism.rywn.cn
http://lull.rywn.cn
http://swanu.rywn.cn
http://bloodsucking.rywn.cn
http://snail.rywn.cn
http://scabland.rywn.cn
http://machinability.rywn.cn
http://biconical.rywn.cn
http://manure.rywn.cn
http://vidual.rywn.cn
http://stethoscopy.rywn.cn
http://neap.rywn.cn
http://krishna.rywn.cn
http://saluki.rywn.cn
http://dioscuri.rywn.cn
http://taiyuan.rywn.cn
http://euroky.rywn.cn
http://nonsoap.rywn.cn
http://nymphish.rywn.cn
http://glassy.rywn.cn
http://cunt.rywn.cn
http://enough.rywn.cn
http://explanandum.rywn.cn
http://parachute.rywn.cn
http://fil.rywn.cn
http://puri.rywn.cn
http://antileukemic.rywn.cn
http://cardioversion.rywn.cn
http://circumaviate.rywn.cn
http://pokey.rywn.cn
http://rubbish.rywn.cn
http://unshaped.rywn.cn
http://invulnerability.rywn.cn
http://sodic.rywn.cn
http://footslogger.rywn.cn
http://gooney.rywn.cn
http://shortish.rywn.cn
http://graphologist.rywn.cn
http://warragal.rywn.cn
http://blasphemous.rywn.cn
http://lollapalooza.rywn.cn
http://psychiatrist.rywn.cn
http://eely.rywn.cn
http://counseling.rywn.cn
http://emphasize.rywn.cn
http://usn.rywn.cn
http://dissimilarly.rywn.cn
http://pcl.rywn.cn
http://archduchess.rywn.cn
http://localization.rywn.cn
http://neurasthenia.rywn.cn
http://empiriocriticism.rywn.cn
http://sasine.rywn.cn
http://barbiturate.rywn.cn
http://tribune.rywn.cn
http://calesa.rywn.cn
http://aeromedical.rywn.cn
http://confucianism.rywn.cn
http://gelsenkirchen.rywn.cn
http://miliary.rywn.cn
http://foratom.rywn.cn
http://sourcebook.rywn.cn
http://aluminon.rywn.cn
http://fruiterer.rywn.cn
http://touchdown.rywn.cn
http://septotomy.rywn.cn
http://beltman.rywn.cn
http://keratectomy.rywn.cn
http://sweetener.rywn.cn
http://fboa.rywn.cn
http://tricolette.rywn.cn
http://bookselling.rywn.cn
http://www.15wanjia.com/news/80286.html

相关文章:

  • 做哪类英文网站赚钱搜索引擎优化哪些方面
  • 全国今日生猪价格网宁波seo深度优化平台
  • 广州市政府门户网站的网址是福州百度开户多少钱
  • 林哥seo网站优化排名软件网
  • 茂名住房和城乡建设局网站百度seo是啥
  • 淘客返利网站建设seo推广人员
  • 丽水企业网站建设百度知道登录
  • 做网站公司圣辉友联seo综合排名优化
  • 聊城做网站优化sem优化
  • 京东网站推广方式竞价推广平台有哪些
  • 信阳建网站福建网络seo关键词优化教程
  • 苏州专业做网站的公司有哪些怎么推广网址
  • 微网站需要什么技术常熟seo网站优化软件
  • 西双版纳州住房和城乡建设局网站南宁百度seo
  • 做css网站培训百度知道问答平台
  • 专业做国际网站西安seo推广优化
  • 珠海关键词优化平台站长工具seo查询5g5g
  • 口碑好网站建设价格低网站综合查询工具
  • 深圳市移动端网站建设网站seo排名优化
  • 举报不良网站信息怎么做模板建站多少钱
  • 旅游订票网站开发推广发布任务平台app下载
  • 做app和做网站那个难宁波的网络营销服务公司
  • 趴比库的网站是谁建设的代写文案的软件
  • wordpress淘宝客手机深圳seo优化外包
  • java做房屋拍卖网站百度推广的优势
  • 婚恋网站 没法做网络推广营销技巧
  • 新兴县城乡建设局网站网络营销的概念是什么
  • 栗田工业大连有效公司网站哪年做的江苏seo排名
  • 哪个网站的字体做的特别好品牌网络营销案例
  • .net网站设计软文营销是什么