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
J

Josh Fischer

@Josh Fischer
About
Posts
3
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Why do WPF storyboards lock/freeze target properties?
    J Josh Fischer

    Found the answer to my own question: FillBehavior="Stop" http://msdn.microsoft.com/en-us/library/aa970493.aspx

    Josh Fischer

    modified on Wednesday, December 10, 2008 10:23 AM

    WPF csharp wpf question tutorial

  • Why do WPF storyboards lock/freeze target properties?
    J Josh Fischer

    Hi everyone. I might be missing something obvious, but after I run a simple WPF storyboard to animate an object's width, I am no longer able to change the width manually. I have created the simple example below to demonstrate my point. The width change done by the first button works before you animate with the second button, but not after. What am I missing here? How can I "unfreeze" my width property so I can set it again? XAML:

    <Canvas>
    <Button Click="Button_Click">
    Set width to 100
    </Button>

    <Button Canvas.Top="30"
        Animate width to 250
    <Button.Triggers>
        <EventTrigger RoutedEvent="Button.Click">
            <BeginStoryboard>
                <Storyboard>
                    <DoubleAnimation Storyboard.TargetName="RedRectangle" Storyboard.TargetProperty="Width" To="250" Duration="0:0:1" />
                </Storyboard>
            </BeginStoryboard>
        </EventTrigger>
    </Button.Triggers>
    </Button>
    
    <Rectangle Name="RedRectangle" Width="25" Height="25" Canvas.Top="70" Fill="Red" Stroke="Black" />
    

    </Canvas>

    C# code behind:

    private void Button_Click(object sender, RoutedEventArgs e)
    {
    RedRectangle.Width = 100;
    }

    Thanks in advance

    Josh Fischer

    WPF csharp wpf question tutorial

  • Missing LINQ?
    J Josh Fischer

    I think you are assuming that LINQ is solely intended to be a SQL replacement which it is not. It is meant to be (yet another) layer of abstraction that allows you to interact with the query related aspects of databases, XML, DataSets and even your business objects in a common fashion. I have no special love for M$ and tend to agree with the other posts that we should wait and see how the final (or second) version turns out, but I think we may find it to be a useful tool. The use of attributes on class and property names is very similar to what I do to simply query generation and sproc parameter passing in my own code. Having something like that built into the framework (or is it technically a langugue feature?) should be nice. I have found that the main project page has some good information.

    Josh Fischer

    The Lounge database csharp linq com tools
  • Login

  • Don't have an account? Register

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