Can I bind two sliders in two different windows ?
You can bind two sliders, one on each of two windows and both of them linked to the same data. But they both have to be bound to the same instance of your data. [C#] yourDataType yourDataInstance = new YourDataType(); yourWindow1Instance.DataContext = yourDataInstance; yourWindow2Instance.DataContext= yourDataInstance; [XAML] <Window1> <Slider Value='{Binding ValueProperty}’ /> </Window1> <Window2> <Slider Value='{Binding ValueProperty}’ /> </Window2>
How can I customize the Ticks on a Slider ?
The ticks on the slider can be customized using the code given below. [XAML] <Slider Width=’100′ Value=’50’ Orientation=’Horizontal’ HorizontalAlignment=’Left’ IsSnapToTickEnabled=’True’ Maximum=’3′ TickPlacement=’BottomRight’ AutoToolTipPlacement=’BottomRight’ AutoToolTipPrecision=’2′ Ticks=’0, 1.1, 2.5, 3’/>
How do I enable the mnemonics (underlines) being displayed when an application is launched ?
Usually the underline appears only after you press the Alt Key, but you can enable it by changing the Operating System Settings. On Windows XP, Right Click ‘Desktop’ to bring up the Display Properties Dialog, then click on the ‘Appearance’ tab and finally on the ‘Effects’ Button and uncheck the checkbox ‘Hide Underlined letters for keyboard navigation until I press the ALT Key’.
Why does adding images to an ImageList in the Designer cause them to lose their alpha channel ?
It looks like the ImageList editor loses the transparency when it does some internal copy or clone of the images. However, it seems that it does work when you add the images in code to the ImageList. One workaround (not so tidy) is to add the images to the ImageList at design-time (so that your design-time will be closer to the run-time) and then clear that ImageList and refill it with the images in code.
How can I make sure that a GridSplitter Is visible ?
To prevent hidden GridSplitter controls, do one of the following : Make sure that the GridSplitter controls are the last Children added to the Grid. The following example shows the GridSplitter as the last element in the Children collection of the Grid. [XAML] <Grid> <Grid.ColumnDefinitions> <ColumnDefinition/> <ColumnDefinition/> </Grid.ColumnDefinitions> <Button Grid.Column=’0’/> <GridSplitter Grid.Column =’0′ Background=’Blue’/> </Grid> Set the ‘Zindex’ Property on the GridSplitter to be higher than a control that would otherwise hide it. The following example gives the GridSplitter control a higher ’Zindex’ Property than the Button control. [XAML] <Grid> <Grid.ColumnDefinitions> <ColumnDefinition/> <ColumnDefinition/> </Grid.ColumnDefinitions> <GridSplitter Grid.Column=’0′ Background=’Blue’ Panel.ZIndex=’1’/> <Button Grid.Column=’0’/> </Grid> Set margins on the control that would otherwise hide the GridSplitter so that the GridSplitter is exposed. The following example sets margins on a control that would otherwise overlay and hide the GridSplitter. [XAML] <Grid> <Grid.ColumnDefinitions> <ColumnDefinition/> <ColumnDefinition/> </Grid.ColumnDefinitions> <GridSplitter Grid.Column =’0′ Background=’Blue’/> <Button Grid.Column=’0′ Margin=’0,0,5,0’/> </Grid>