leppie wrote:
surprisingly does not feel as heavy as I thought.
Really? I was mucking around with one recently, and it felt quite heavy to handle. Granted I'm used to using a Nokia e63 though.
leppie wrote:
surprisingly does not feel as heavy as I thought.
Really? I was mucking around with one recently, and it felt quite heavy to handle. Granted I'm used to using a Nokia e63 though.
Wow.. has CP been around for that long? Nice :) Congratulations to Chris and everyone who make this place tick!
Eh? You reply to those? That would be fun :laugh:
Hahaha.. oh man. There's a blockbuster right there :laugh: Also starring, The President[^]
Hand written - I find it easier.
*sees thread title* I'm getting coffee now. :doh: I was 2 days clean.
Hmm.. needs some strategically placed vowels, this one. How about "fep"?
Is this the thing where, if I forward it to everyone in my address book, Bill Gates'll give me heaps of moniez? Link's broken for me :-D
Well, it tries me and my patience all day long. :laugh: But I think I'm in love.
Jeepers! :omg: At least she sounds like a friendly ghost.. She made you laugh.
I stumbled on to this while googling for stuff: http://xfgr.com/ Do we know about this? What is it? Some sort of back up dump? Copycat? :| It's creepy.
Thanks for the tip. I found that changes to ActualHeight could be used as a trigger. I've tried to use an event trigger, and am currently stuck. Here's what I've done:
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="{Binding gridHeight}" />
</Grid.RowDefinitions>
<ListBox ItemsSource="{Binding PhotoList}" Grid.Row="0" >
<ListBox.Style>
<Style>
<Style.Triggers>
<EventTrigger RoutedEvent="SizeChanged">
<!-- Set {Binding tabHeight} to ActualHeight here -->
</EventTrigger>
</Style.Triggers>
</Style>
</ListBox.Style>
</ListBox>
</Grid>
The problem is, I can't figure out how to tell it to update tabHeight
once the event is triggered. I initially thought I could use a Setter
to update {Binding Path=tabHeight}
. But that doesn't seem to be the case. Suggestions are much appreciated :)
I have a ListBox whose Height is bound one way to source. As you can see from the XAML below, the listbox is supposed to take up all the space available to it, and it's height is not initialised to anything in C# code.
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<ListBox ItemsSource="{Binding PhotoList}" Grid.Row="0" Height="{Binding Path=listBoxH, Mode=OneWayToSource}">
</ListBox>
</Grid>
My problem is that I need to get a numerical value for listBoxH
in the code behind (bounded code, it's actually the ViewModel of my UI). But this value is double.NaN
. This is expected as the Height/listBoxH
is not "set" anywhere, but is there a way to get the ActualHeight of the ListBox? I need to get the current height of the ListBox, use it do a calculation which decides what to display in the ListBox. I can't directly reference the ListBox in C# code as it doesn't belong to the same class, and this is not the approach I want to take. Workarounds, anyone?
I actually find it helpful when presenters code during the presentation. Specially when it's on something new to me. Just thought I'd say :-O Even though this post in no way helps with your question.
Hmm.. true, that does seem like the only way. Thanks Pete!
null
or an empty string, perhaps? I need to know that resource is not localized. I don't want to get an alternative from another language returned.
Hi all, How would I find out if a resource is localized for a given culture? E.g.: For ResourceManager.GetString(String, CultureInfo)
"if the resource is not localized for this culture, the lookup will fall back using the current thread's Parent
property, stopping after looking in the neutral culture." (From MSDN) But I don't want it to fall-back or look in neutral cultures, is there a way I could get a value returned if the resource is simply not localized? :confused:
I'm always polite :cool: I ask them to please provide a valid entry, if they don't, tough - they just don't get what they want :-D But yes, like Mycroft Holmes mentioned, it's dependent on your audience: would be different for games etc.
modified on Sunday, July 25, 2010 6:15 PM
Never heard of that before. Sounds interesting. Got a recipe for that? :-D