Click here to Skip to main content
15,912,932 members
Home / Discussions / WPF
   

WPF

 
GeneralRe: How can i use DataGridView in WPF Application? Pin
Pete O'Hanlon11-Apr-08 4:51
mvePete O'Hanlon11-Apr-08 4:51 
AnswerRe: How can i use DataGridView in WPF Application? Pin
User 27100911-Apr-08 3:31
User 27100911-Apr-08 3:31 
GeneralDebugging Silverlight Pin
Edmundisme10-Apr-08 11:47
Edmundisme10-Apr-08 11:47 
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 
Nope, sorry.  What I'm actually trying to do is create a schedule-like component (think Outlook week view).  If you imagine the following class which stores the "Event information:
public class Event
{
    public string Summary { get; set; }
    public DateTime Start { get; set; }
    public DateTime End { get; set; }
}
Then the following XAML:
<ListBox ItemsSource="{StaticResource Events}">
    <ListBox.ItemTemplate>
        <StackPanel
            Grid.Row="{Binding Path=Start, Converter={StaticResource HourToRowConverter}}"
            Grid.Column="{Binding Path=Start, Converter={StaticResource DayToColumnConverter}}"
            Grid.RowSpan="{Binding Converter={StaticResource DurationToRowSpanConverter}}">
	        <TextBlock Text="{Binding Path=Summary}" />
                <!-- Other stuff -->
        </StackPanel>
    </ListBox>
    <ListBox.ItemsPanel>
        <!-- Grid Goes here -->
    </ListBox.ItemsPanel>
</ListBox>
Hope that makes things a bit clearer, to be honest I was surprised when it didn't work but maybe it's something to do with the Grid.Row etc being an attached property?  The UniformGrid works but I think that's something to do with the fact that you can just set the rows and columns and add children controls and they're each added to a cell in the order in which they appear in the XAML, whereas this does not happen with the normal Grid.

I'd really appreciate not having to go off and write a custom control just to manage what seemingly seems so simple. Roll eyes | :rolleyes:



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 
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 

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.