首页

设置控件的相对布局位置不变

c#

2020-10-27

下载地址

在背景图上写控件时,控制所写控件的相对布局不变,WPF 控件的相对布局

启动:

未按等比例设置的放大效果,可以看出我们事先绘制的红色框线已经偏离原先在内的Button

按等比例缩放效果:

可以看出,等比例缩放效果,是一直红色框线和Butong的位置保持相对不变

未按等比例缩放

资源下载此资源下载价格为2D币,请先

资源文件列表

WpfApp1/.vs/WpfApp1/v16/.suo , 66560
WpfApp1/.vs/WpfApp1/v16/Browse.VC.db , 253952
WpfApp1/.vs/WpfApp1/v16/Server/sqlite3/db.lock , 0
WpfApp1/.vs/WpfApp1/v16/Server/sqlite3/storage.ide , 716800
WpfApp1/WpfApp1/App.config , 189
WpfApp1/WpfApp1/App.xaml , 365
WpfApp1/WpfApp1/App.xaml.cs , 334
WpfApp1/WpfApp1/bg.png , 1470
WpfApp1/WpfApp1/bin/Debug/WpfApp1.exe , 12800
WpfApp1/WpfApp1/bin/Debug/WpfApp1.exe.config , 189
WpfApp1/WpfApp1/bin/Debug/WpfApp1.pdb , 38400
WpfApp1/WpfApp1/obj/Debug/App.g.cs , 2346
WpfApp1/WpfApp1/obj/Debug/App.g.i.cs , 2346
WpfApp1/WpfApp1/obj/Debug/DesignTimeResolveAssemblyReferences.cache , 664
WpfApp1/WpfApp1/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache , 7243
WpfApp1/WpfApp1/obj/Debug/GeneratedInternalTypeHelper.g.i.cs , 3015
WpfApp1/WpfApp1/obj/Debug/MainWindow.g.i.cs , 5229
WpfApp1/WpfApp1/obj/Debug/MarqueeControl.g.i.cs , 4429
WpfApp1/WpfApp1/obj/Debug/TempPE/Properties.Resources.Designer.cs.dll , 3584
WpfApp1/WpfApp1/obj/Debug/UserControl1.g.i.cs , 3981
WpfApp1/WpfApp1/obj/Debug/Window1.g.i.cs , 3041
WpfApp1/WpfApp1/obj/Debug/Window2.g.i.cs , 4418
WpfApp1/WpfApp1/obj/Debug/Window3 - 复制.g.i.cs , 3447
WpfApp1/WpfApp1/obj/Debug/Window3.baml , 1556
WpfApp1/WpfApp1/obj/Debug/Window3.g.cs , 3686
WpfApp1/WpfApp1/obj/Debug/Window3.g.i.cs , 3686
WpfApp1/WpfApp1/obj/Debug/Window4.baml , 1596
WpfApp1/WpfApp1/obj/Debug/Window4.g.cs , 3395
WpfApp1/WpfApp1/obj/Debug/Window4.g.i.cs , 3395
WpfApp1/WpfApp1/obj/Debug/WpfApp1.csproj.CoreCompileInputs.cache , 42
WpfApp1/WpfApp1/obj/Debug/WpfApp1.csproj.FileListAbsolute.txt , 1071
WpfApp1/WpfApp1/obj/Debug/WpfApp1.csproj.GenerateResource.cache , 954
WpfApp1/WpfApp1/obj/Debug/WpfApp1.exe , 12800
WpfApp1/WpfApp1/obj/Debug/WpfApp1.g.resources , 4916
WpfApp1/WpfApp1/obj/Debug/WpfApp1.pdb , 38400
WpfApp1/WpfApp1/obj/Debug/WpfApp1.Properties.Resources.resources , 180
WpfApp1/WpfApp1/obj/Debug/WpfApp1_Content.g.i.cs , 527
WpfApp1/WpfApp1/obj/Debug/WpfApp1_MarkupCompile.cache , 245
WpfApp1/WpfApp1/obj/Debug/WpfApp1_MarkupCompile.i.cache , 243
WpfApp1/WpfApp1/obj/Debug/WpfApp1_MarkupCompile.i.lref , 115
WpfApp1/WpfApp1/obj/Debug/WpfApp1_MarkupCompile.lref , 115
WpfApp1/WpfApp1/Properties/AssemblyInfo.cs , 2302
WpfApp1/WpfApp1/Properties/Resources.Designer.cs , 2827
WpfApp1/WpfApp1/Properties/Resources.resx , 5612
WpfApp1/WpfApp1/Properties/Settings.Designer.cs , 1094
WpfApp1/WpfApp1/Properties/Settings.settings , 201
WpfApp1/WpfApp1/Window3.xaml , 1109
WpfApp1/WpfApp1/Window3.xaml.cs , 1140
WpfApp1/WpfApp1/Window4.xaml , 1349
WpfApp1/WpfApp1/Window4.xaml.cs , 978
WpfApp1/WpfApp1/WpfApp1.csproj , 4409
WpfApp1/WpfApp1.sln , 1127
没有账号? 忘记密码?

社交账号快速登录