如何使用WPF管理软件更新的控件布局 [英] How to manage control layout on software update using WPF

查看:184
本文介绍了如何使用WPF管理软件更新的控件布局的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



我有一个WPF应用程序,应用程序将在启动时自动更新(检查服务器上的新版本)。对于版本1.0.0.0,我有一个WPF窗口,其中包含函数A的复选框。

在新版本1.2.0.0上,我在此WPF窗口2上有函数A1和A2的复选框,因为此函数有分为两部分。



我的问题非常简单,如何在新应用程序中设置一个复选框来保持旧布局。



我希望很清楚。



我尝试了什么:



我应该为每个包含XAML文件的版本创建一个dll吗?

Hi Everybody,

I have a WPF application, the application will be automatically update at startup (check new version on server). for a version 1.0.0.0 I have a WPF window with a checkbox for function A.
On the new version 1.2.0.0 I have on this WPF window 2 checkbox for function A1 and A2 because this function has been divided in two parts.

My question is very simple, how I can manage to keep the old layout with one checkbox on the new application.

I hope it is clear.

What I have tried:

Shall I create a dll for each version which contains the XAML file ?

推荐答案

我们要创建两个好方法具有已定义布局的XAML文件。因此,您可以在需要时以编程方式调用它。
A good approach will we to create two XAML files with your defined layout. So, you can call it when you need it programmatically.


这篇关于如何使用WPF管理软件更新的控件布局的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆