我可以更改登录按钮的 public MainWindow()
{
InitializeComponent();
string userName = System.Security.Principal.WindowsIdentity.GetCurrent().Name;
if (!cl.ViewingData.HasPath) // L
{
if (!File.Exists("BaseDirFile.txt"))
{
MessageBox.Show("To load a saved file sheet just open it with this program, or navigate to it from the bottom of the setup page", "ReadMe");
MessageBox.Show("Now set where to save the setup sheets", "ReadMe");
CommonOpenFileDialog dialog = new CommonOpenFileDialog();
dialog.InitialDirectory = "C:\\Users\\" + userName + "\\Documents";
dialog.IsFolderPicker = true;
dialog.Title = "Pick the directory to store the saved data sheets";
if (dialog.ShowDialog() == CommonFileDialogResult.Ok)
{
File.Create("BaseDirFile.txt").Close();
using (StreamWriter sw = new StreamWriter("BaseDirFile.txt"))
{
sw.WriteLine(dialog.FileName);
}
}
else
{
Close();
}
}
}
frame1.Navigate(new Pages.Setup_Pages.SetupPage.SetupPage());
}
}
public partial class App
{
void Application_Start(object sender, StartupEventArgs e)
{
if (e.Args.Length > 0)
{
cl.ViewingData.HasPath = true;
cl.ViewingData.Path = e.Args[0];
}
}
}`
:
,但是当我这样做时,它会比徽标增加更多-所以我也需要增加徽标的大小。
textSize
有什么主意吗?
答案 0 :(得分:0)
使用线性布局,在其中使用水平的图像和文本视图。并使线性布局的onclickable为真