Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > Avalon

Vista - Dec CTP caused very simple app to stop working - request help

 
 
Old 01-31-2006   #1 (permalink)
PeteCIS


 
 

Dec CTP caused very simple app to stop working - request help

I have a small set of very simple WPF examples that I played around with just
to start to get a rudimentary understanding of things. One of them is a very
simple slider and a circle where the circles width is tied to the slider.
The problem is that I had a working executable at the beginning of December
(using the Nov. CTP), but now with the Dec CTP rebuilding .exe's or just
running the old .exe's that I have backed up in an old directory cause
exceptions. Here is the XAML code. No C# code has been added.

<Window x:Class="SliderAndCircleProj.Window1"
xmlns="http://schemas.microsoft.com/winfx/avalon/2005"
xmlns:x="http://schemas.microsoft.com/winfx/xaml/2005"
Title="SliderAndCircleProj"
>

<Grid>
<DockPanel>

<!-- The slider will control the rectangle's width -->
<Slider Name="PBHSlider" Minimum="20" Maximum="100" Value="20"
DockPanel.Dock="Top"/>

<!-- The rectangle's width is being controlled by the slider
Width="{BindingElementName=TheSlider, Path=Value}"/>-->
<Rectangle Name="PBHRect"
Fill="Black"
Width="{Binding Path=Value, Source={StaticResource PBHSlider}}"

/>

<!-- The ellipse will take up any leftover real estate,
due to the DockPanel's "auto-fill" behavior -->
<Ellipse Fill="Green" />
</DockPanel>
</Grid>
</Window>

Any comments would be greatly appreciated.

My System SpecsSystem Spec
Old 01-31-2006   #2 (permalink)
PeteCIS


 
 

RE: Dec CTP caused very simple app to stop working - request help

That worked. Thanks!

"viliescu" wrote:

> Put
> Width="{Binding Path=Value, ElementName=PBHSlider}"
> in the rectangle.
>
> --
> Valentin Iliescu [MVP C#]
>
>
> "PeteCIS" wrote:
>
> > I have a small set of very simple WPF examples that I played around with just
> > to start to get a rudimentary understanding of things. One of them is a very
> > simple slider and a circle where the circles width is tied to the slider.
> > The problem is that I had a working executable at the beginning of December
> > (using the Nov. CTP), but now with the Dec CTP rebuilding .exe's or just
> > running the old .exe's that I have backed up in an old directory cause
> > exceptions. Here is the XAML code. No C# code has been added.
> >
> > <Window x:Class="SliderAndCircleProj.Window1"
> > xmlns="http://schemas.microsoft.com/winfx/avalon/2005"
> > xmlns:x="http://schemas.microsoft.com/winfx/xaml/2005"
> > Title="SliderAndCircleProj"
> > >

> > <Grid>
> > <DockPanel>
> >
> > <!-- The slider will control the rectangle's width -->
> > <Slider Name="PBHSlider" Minimum="20" Maximum="100" Value="20"
> > DockPanel.Dock="Top"/>
> >
> > <!-- The rectangle's width is being controlled by the slider
> > Width="{BindingElementName=TheSlider, Path=Value}"/>-->
> > <Rectangle Name="PBHRect"
> > Fill="Black"
> > Width="{Binding Path=Value, Source={StaticResource PBHSlider}}"
> >
> > />
> >
> > <!-- The ellipse will take up any leftover real estate,
> > due to the DockPanel's "auto-fill" behavior -->
> > <Ellipse Fill="Green" />
> > </DockPanel>
> > </Grid>
> > </Window>
> >
> > Any comments would be greatly appreciated.

My System SpecsSystem Spec
 

Thread Tools


Similar Threads
Thread Forum
A problem caused the application to stop working correctly. Vista General
A problem caused the program to stop working correctly.... Vista installation & setup
A problem with your video hardware caused Windows to stop working correctly. Vista hardware & devices
A problem with your video hardware caused Windows to stop working. Vista General
RTM Caused My DVD Burner To Stop Working, Just FYI! RTM Should Be Re-Called, Just FYI! Vista General


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46