Click here to Skip to main content
16,007,885 members
Home / Discussions / WPF
   

WPF

 
GeneralRe: Debugging Silverlight Pin
Michael Sync10-Apr-08 20:34
Michael Sync10-Apr-08 20:34 
GeneralRe: Debugging Silverlight Pin
Edmundisme11-Apr-08 7:54
Edmundisme11-Apr-08 7:54 
GeneralUsing a Grid as an ItemsPanel Pin
Ed.Poore9-Apr-08 10:00
Ed.Poore9-Apr-08 10:00 
GeneralRe: Using a Grid as an ItemsPanel Pin
Pete O'Hanlon11-Apr-08 10:54
mvePete O'Hanlon11-Apr-08 10:54 
GeneralRe: Using a Grid as an ItemsPanel Pin
Ed.Poore11-Apr-08 11:50
Ed.Poore11-Apr-08 11:50 
GeneralRe: Using a Grid as an ItemsPanel Pin
Pete O'Hanlon11-Apr-08 12:18
mvePete O'Hanlon11-Apr-08 12:18 
GeneralRe: Using a Grid as an ItemsPanel Pin
Ed.Poore11-Apr-08 13:32
Ed.Poore11-Apr-08 13:32 
GeneralRe: Using a Grid as an ItemsPanel Pin
Pete O'Hanlon14-Apr-08 9:07
mvePete O'Hanlon14-Apr-08 9:07 
Have a look at this:
<Window
  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/2006" 
  xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
  mc:Ignorable="d"
  x:Class="OutlookWeekView.Window1"
  x:Name="Window"
  Title="Window1"
  Width="640" Height="480" Activated="Window_Activated">

  <Window.Resources>
    <XmlDataProvider x:Key="SummaryData" d:IsDataSource="True" 
                         Source="D:\wpf\OutlookWeekView\Events.xml"/>
    <DataTemplate x:Key="EventTemplate">
      <Grid>
         <Grid.ColumnDefinitions>
            <ColumnDefinition/>
            <ColumnDefinition/>
         </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
          <RowDefinition/>
          <RowDefinition/>
        </Grid.RowDefinitions>
        <TextBlock Padding="2" 
                           Grid.Column="1" 
                           Grid.RowSpan="2" 
                           Text="{Binding Mode=OneWay, XPath=Summary}"/>
        <TextBlock Grid.Row="0" Padding="2" 
                           Grid.Column="0" Text="{Binding Mode=OneWay, XPath=Start}"/>
        <TextBlock Grid.Row="1" Padding="2" 
                           Grid.Column="0" Text="{Binding Mode=OneWay, XPath=End}"/>
      </Grid>
    </DataTemplate>
  </Window.Resources>

  <Grid x:Name="LayoutRoot">
    <ListBox ItemTemplate="{DynamicResource EventTemplate}" 
                 ItemsSource="{Binding Mode=Default, 
            Source={StaticResource SummaryData}, 
            XPath=/Events/Event}"/>
  </Grid>
</Window>
Does it help in any way?


Deja View - the feeling that you've seen this post before.

My blog | My articles



GeneralRe: Using a Grid as an ItemsPanel Pin
Ed.Poore14-Apr-08 9:41
Ed.Poore14-Apr-08 9:41 
GeneralRe: Using a Grid as an ItemsPanel Pin
Pete O'Hanlon14-Apr-08 9:54
mvePete O'Hanlon14-Apr-08 9:54 
GeneralRe: Using a Grid as an ItemsPanel Pin
Ed.Poore14-Apr-08 10:48
Ed.Poore14-Apr-08 10:48 
GeneralRe: Using a Grid as an ItemsPanel Pin
Pete O'Hanlon14-Apr-08 11:11
mvePete O'Hanlon14-Apr-08 11:11 
GeneralRe: Using a Grid as an ItemsPanel Pin
Ed.Poore14-Apr-08 11:57
Ed.Poore14-Apr-08 11:57 
GeneralRe: Using a Grid as an ItemsPanel Pin
Pete O'Hanlon14-Apr-08 12:02
mvePete O'Hanlon14-Apr-08 12:02 
GeneralRe: Using a Grid as an ItemsPanel Pin
Ed.Poore14-Apr-08 12:12
Ed.Poore14-Apr-08 12:12 
GeneralRe: Using a Grid as an ItemsPanel Pin
Ed.Poore17-Apr-08 12:07
Ed.Poore17-Apr-08 12:07 
GeneralRe: Using a Grid as an ItemsPanel Pin
Pete O'Hanlon17-Apr-08 23:12
mvePete O'Hanlon17-Apr-08 23:12 
GeneralRe: Using a Grid as an ItemsPanel Pin
Ed.Poore17-Apr-08 23:20
Ed.Poore17-Apr-08 23:20 
GeneralRe: Using a Grid as an ItemsPanel Pin
Pete O'Hanlon18-Apr-08 4:21
mvePete O'Hanlon18-Apr-08 4:21 
GeneralRe: Using a Grid as an ItemsPanel Pin
Ed.Poore18-Apr-08 4:29
Ed.Poore18-Apr-08 4:29 
QuestionHow to add multiple column in a single column of gridview in WPF? Pin
bankey10108-Apr-08 21:42
bankey10108-Apr-08 21:42 
AnswerRe: How to add multiple column in a single column of gridview in WPF? Pin
Pete O'Hanlon9-Apr-08 2:44
mvePete O'Hanlon9-Apr-08 2:44 
GeneralRe: How to add multiple column in a single column of gridview in WPF? Pin
User 2710099-Apr-08 3:24
User 2710099-Apr-08 3:24 
GeneralRe: How to add multiple column in a single column of gridview in WPF? Pin
Pete O'Hanlon9-Apr-08 3:31
mvePete O'Hanlon9-Apr-08 3:31 
GeneralRe: How to add multiple column in a single column of gridview in WPF? Pin
User 2710099-Apr-08 3:39
User 2710099-Apr-08 3:39 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.