Archive for 08:43 AM

How to disable offline Files in Vista

08:43 AM

I have tried it, offline files…. because we mapped a Share on a remote computer…. and my internet line is not the best… they have promised so much… but…

It’s a pain!

How to disable offline files? That was the greater pain. It’s hidden, really hidden.

Per this tutorial on scribd.com:

  1. Control Panel
  2. search for “offline”
  3. open “Offline Files”
  4. use the appearing dialog to disable offline files

How to style a WPF TabControl

01:42 PM

A very good example of how to style a WPF TabControl.

From Brandon Cannaday at Switch on the code.

I use this Style to surround each TabItem Content with a ScrollViewer:


        <Style TargetType="{x:Type TabControl}">
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="{x:Type TabControl}">
                        <Grid>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="Auto"/>
                                <RowDefinition Height="*"/>
                            </Grid.RowDefinitions>
                            <TabPanel Grid.Row="0" IsItemsHost="True" />
                            <ScrollViewer Grid.Row="1"
                                VerticalScrollBarVisibility="Auto"
                                Margin="5,5,5,5"
                                Background="White">
                                <ContentPresenter ContentSource="SelectedContent" />
                            </ScrollViewer>
                        </Grid>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>