PageRenderTime 46ms CodeModel.GetById 22ms RepoModel.GetById 0ms app.codeStats 0ms

/SkyDriveSimpleViewer/MainWindow.xaml

#
XAML | 37 lines | 37 code | 0 blank | 0 comment | 0 complexity | a772983ed25ac8e55ce6e353cf6bdd64 MD5 | raw file
  1. <Window x:Class="SkyDriveSimpleViewer.MainWindow"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:proj="clr-namespace:SkyDriveSimpleViewer"
  5. Title="SkyDrive Simple Viewer" Height="400" Width="700" Loaded="OnWindowLoaded">
  6. <DockPanel Background="#EEEEEE">
  7. <Label DockPanel.Dock="Top" Name="Message" Style="{StaticResource Header}" Padding="10">Demonstrating WebDAV access to your SkyDrive folders</Label>
  8. <StackPanel DockPanel.Dock="Left" Width="200" Style="{StaticResource LeftBar}">
  9. <StackPanel Margin="5">
  10. <Label>Live ID User Name:</Label>
  11. <TextBox Name="UserName" />
  12. <Label>Live ID Password:</Label>
  13. <PasswordBox Name="Password" />
  14. <Button Click="OnLoginButton" Margin="0 5 0 0" IsDefault="True">Login to my SkyDrive</Button>
  15. <ListBox Name="FolderList" Margin="0 10 0 0" Visibility="Hidden" HorizontalContentAlignment="Stretch" BorderBrush="#CCCCCC"
  16. SelectionChanged="OnFolderSelected">
  17. <ListBox.ItemTemplate>
  18. <DataTemplate>
  19. <Label Content="{Binding Name}" Padding="5" />
  20. </DataTemplate>
  21. </ListBox.ItemTemplate>
  22. </ListBox>
  23. </StackPanel>
  24. </StackPanel>
  25. <StackPanel DockPanel.Dock="Top" Name="WebDAVUrlPanel" Margin="5" Visibility="Hidden">
  26. <Label Content="This is your WebDAV address for the selected SkyDrive folder:" />
  27. <TextBox DockPanel.Dock="Top" Name="WebDAVUrl" />
  28. </StackPanel>
  29. <ListBox Name="ItemList" Margin="5 0 5 5" Visibility="Hidden" BorderBrush="#CCCCCC">
  30. <ListBox.ItemTemplate>
  31. <DataTemplate>
  32. <Label Content="{Binding Name}" Padding="5" />
  33. </DataTemplate>
  34. </ListBox.ItemTemplate>
  35. </ListBox>
  36. </DockPanel>
  37. </Window>