Advertisement
Scorpunduk

FileFolderOpenDialogs.XAML

Mar 24th, 2022
1,109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 1.15 KB | None | 0 0
  1. <Window
  2.    x:Class="OpenFileOrFolder.MainWindow"
  3.    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  4.    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  5.    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6.    xmlns:local="clr-namespace:OpenFileOrFolder"
  7.    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  8.    Title="MainWindow"
  9.    Width="300"
  10.    Height="150"
  11.    mc:Ignorable="d">
  12.     <Grid>
  13.         <StackPanel>
  14.             <TextBox x:Name="filePath" />
  15.             <Button
  16.                x:Name="selectFileBtn"
  17.                Click="selectFileBtn_Click"
  18.                Content="Win 32 Style File Dialog" />
  19.  
  20.             <TextBox x:Name="winFormsFilePath" />
  21.             <Button
  22.                x:Name="winFormsFilePathBtn"
  23.                Click="selectWinFormsFileBtn_Click"
  24.                Content="Win Forms Style File Dialog" />
  25.  
  26.             <TextBox x:Name="folderPath" />
  27.             <Button
  28.                x:Name="selectFolderBtn"
  29.                Click="selectFolderBtn_Click"
  30.                Content="Select Folder" />
  31.         </StackPanel>
  32.  
  33.     </Grid>
  34. </Window>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement