Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
L

la01

@la01
About
Posts
38
Topics
7
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Got my new toy
    L la01

    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.

    The Lounge com beta-testing

  • Code Project goes to 11
    L la01

    Wow.. has CP been around for that long? Nice :) Congratulations to Chris and everyone who make this place tick!

    The Lounge question

  • Bizarre and random - true story!
    L la01

    Eh? You reply to those? That would be fun :laugh:

    The Lounge com question lounge

  • Take your computer for repair, find out you're the target of international terrorism??????
    L la01

    Hahaha.. oh man. There's a blockbuster right there :laugh: Also starring, The President[^]

    The Lounge com question announcement

  • Little WPF designer poll! [modified]
    L la01

    Hand written - I find it easier.

    The Lounge wpf csharp question lounge

  • Caffienne
    L la01

    *sees thread title* I'm getting coffee now. :doh: I was 2 days clean.

    The Lounge com tools question

  • Argghhhhh!!!!
    L la01

    Hmm.. needs some strategically placed vowels, this one. How about "fep"?

    The Lounge php com tools question

  • Pssst! Want to win 10,000 from MS?
    L la01

    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

    The Lounge question

  • Does any try vs2010?
    L la01

    Well, it tries me and my patience all day long. :laugh: But I think I'm in love.

    The Lounge help question

  • Things that go bump in the night
    L la01

    Jeepers! :omg: At least she sounds like a friendly ghost.. She made you laugh.

    The Lounge

  • What's this... thing?
    L la01

    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.

    The Lounge question com

  • Getting the value of Height through OneWayToSource binding
    L la01

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

    WPF wpf csharp css wcf design

  • Getting the value of Height through OneWayToSource binding
    L la01

    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?

    WPF wpf csharp css wcf design

  • Presentation Suggestions
    L la01

    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.

    The Lounge csharp asp-net visual-studio tools architecture

  • Find out if resource localized for given culture
    L la01

    Hmm.. true, that does seem like the only way. Thanks Pete!

    .NET (Core and Framework) com question learning

  • Find out if resource localized for given culture
    L la01

    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.

    .NET (Core and Framework) com question learning

  • Find out if resource localized for given culture
    L la01

    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:

    .NET (Core and Framework) com question learning

  • Melon
    L la01

    Oh fine.[^] :-O

    The Lounge

  • Displaying Messages To Users -- "Command" or "Polite"?
    L la01

    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

    C# question csharp tutorial learning

  • Melon
    L la01

    Never heard of that before. Sounds interesting. Got a recipe for that? :-D

    The Lounge
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups