![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| 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. |
| |||||||
| |
| | #1 (permalink) |
| | 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 Specs![]() |
| | #2 (permalink) |
| | 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 Specs![]() |
| 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 | |||