Click here to Skip to main content
15,891,423 members
Articles / Productivity Apps and Services / Sharepoint

SharePoint 2010 Client Object Model, Part 2

Rate me:
Please Sign up or sign in to vote.
4.55/5 (11 votes)
13 Oct 2011CPOL9 min read 95.4K   2.7K   27  
An investigation of SharePoint 2010 Client Object Model and how to use it
<UserControl x:Class="SilverlightCSOM.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    d:DesignHeight="300" d:DesignWidth="400" Loaded="UserControl_Loaded">

    <Grid x:Name="LayoutRoot">
        <Grid.Background>
            <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                <GradientStop Color="Black" Offset="0"/>
                <GradientStop Color="White" Offset="1"/>
            </LinearGradientBrush>
        </Grid.Background>
        <TextBlock HorizontalAlignment="Left" TextWrapping="Wrap" Text="Title" Width="34" Margin="203,0,0,252" VerticalAlignment="Bottom" Foreground="White"/>
        <TextBox x:Name="wpTitle" TextWrapping="Wrap" Margin="231,0,0,248" VerticalAlignment="Bottom" HorizontalAlignment="Left" Width="157" />
        <Button Content="Update" HorizontalAlignment="Right" Width="75" Margin="0,0,165,12" Click="OnUpdate" VerticalAlignment="Bottom"/>
        <TextBlock HorizontalAlignment="Left" TextWrapping="Wrap" Text="Webparts" VerticalAlignment="Top" Margin="8,8,0,0" Foreground="White"/>
        <ListBox x:Name="wpList" Margin="13,28,0,61" HorizontalAlignment="Left" Width="185" SelectionChanged="OnSelectWebpart"/>
        <Button Content="Delete" HorizontalAlignment="Right" Margin="0,0,84,12" VerticalAlignment="Bottom" Width="75" Click="OnDelete" />
        <Button Content="Add" HorizontalAlignment="Right" Margin="0,0,246,12" VerticalAlignment="Bottom" Width="75" Click="OnAdd" />
        <TextBlock HorizontalAlignment="Left" TextWrapping="Wrap" Text="Title" Width="34" Margin="203,0,0,252" VerticalAlignment="Bottom" Foreground="White"/>
        <TextBlock HorizontalAlignment="Left" TextWrapping="Wrap" Text="Zone" Width="34" Margin="203,0,0,212" VerticalAlignment="Bottom" Foreground="White" RenderTransformOrigin="0.529,3.375"/>
        <ComboBox x:Name="wpZone" HorizontalAlignment="Right" VerticalAlignment="Top" Width="120" Margin="0,68,39,0" IsDropDownOpen="True">
            <ComboBoxItem Content="Left" />
            <ComboBoxItem Content="Right" IsSelected="True" />
        </ComboBox>
    </Grid>
</UserControl>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



Comments and Discussions