Click here to Skip to main content
15,911,132 members
Home / Discussions / WPF
   

WPF

 
QuestionListView Item Style Pin
Snecx2-Apr-10 9:33
Snecx2-Apr-10 9:33 
AnswerRe: ListView Item Style Pin
Richard MacCutchan2-Apr-10 9:44
mveRichard MacCutchan2-Apr-10 9:44 
GeneralRe: ListView Item Style Pin
Snecx2-Apr-10 11:23
Snecx2-Apr-10 11:23 
GeneralRe: ListView Item Style Pin
Richard MacCutchan2-Apr-10 22:03
mveRichard MacCutchan2-Apr-10 22:03 
QuestionRemoving Underline of Hyperlink control in WPF Pin
Hema Bairavan31-Mar-10 18:43
Hema Bairavan31-Mar-10 18:43 
AnswerRe: Removing Underline of Hyperlink control in WPF Pin
Parwej Ahamad31-Mar-10 19:39
professionalParwej Ahamad31-Mar-10 19:39 
AnswerRe: Removing Underline of Hyperlink control in WPF Pin
shyam sohane29-Jun-10 19:26
shyam sohane29-Jun-10 19:26 
QuestionDimming the indicator of a custom progressbar Pin
2hdass31-Mar-10 18:36
2hdass31-Mar-10 18:36 
Hi there,
I am new to WPF, I have just learned how to customize the progressbar by using a control template. I made it so that the indicator part of the progressbar has a gradient effect.

Now i actually want it to fade in as the value increase, I know that I can make use of the triggers on the value of the progress bar and set the opacity of the indicator, but i am not sure how that can be done.

Also, I would like to have a box following the top of the indicator to indicate the value of the progessbar, my approach is to create another column from the grid, place a textbox inside, and then again using trigger change the coordinates of the box. But i am not sure how i can convert the value of the progressbar to the coordinates of the textbox.

here is what i have so far

<UserControl
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
	mc:Ignorable="d"
	x:Class="IceControls.CivicProgressbar"
	x:Name="UserControl" d:DesignHeight="492" Width="50">
<UserControl.Resources>
       
        <ControlTemplate x:Key="templateThermometer"
                         TargetType="{x:Type ProgressBar}">

            <ControlTemplate.Resources>
                <LinearGradientBrush x:Key="brushStem" 
                                     StartPoint="0 0" EndPoint="7 0">
					<LinearGradientBrush.Transform>
						<RotateTransform  Angle="90"></RotateTransform>
					</LinearGradientBrush.Transform>
                    <GradientStop Offset="0" Color="white" />
					<GradientStop Offset="1" Color="transparent" />
                </LinearGradientBrush>

            </ControlTemplate.Resources>
			
          
            <Grid>
                <Grid.RowDefinitions>
                    <RowDefinition Height="*" />
                </Grid.RowDefinitions>

              
                <Grid Grid.Row="0">
                    <Grid.ColumnDefinitions>
						<ColumnDefinition Width="100*" />
                    </Grid.ColumnDefinitions>

                  
                    <Border Grid.Column="0" BorderBrush="Gray" 
                            BorderThickness="1 1 1 1"
                            CornerRadius="6 6 0 0" >

                      
                        <Decorator Name="PART_Track">
                            <Border Name="PART_Indicator"
                                    CornerRadius="6 6 0 0"
                                    VerticalAlignment="Bottom"
                                    Background="{StaticResource brushStem}" />
                        </Decorator>
                    </Border>
                </Grid>


            </Grid>
        </ControlTemplate>
     </UserControl.Resources>

    <StackPanel>

        <ProgressBar Template="{StaticResource templateThermometer}" 
    		Orientation="Vertical" Minimum="0" Maximum="100"
    		Width="auto" Height="350" Margin="0,0,0,0" 
    		Value="{Binding ElementName=scroll,Path=Value}" />
        <ScrollBar x:Name="scroll" Orientation="vertical" 
        	Minimum="0" Maximum="100"
        	SmallChange="1" LargeChange="10" 
        	Margin="16.5,0" Height="120.5" />

    </StackPanel>
</UserControl>

QuestionChecking if User-Control DLL is being used by EXE Pin
Prasoon Chaudhary31-Mar-10 0:19
Prasoon Chaudhary31-Mar-10 0:19 
AnswerRe: Checking if User-Control DLL is being used by EXE Pin
Pete O'Hanlon31-Mar-10 0:28
mvePete O'Hanlon31-Mar-10 0:28 
GeneralRe: Checking if User-Control DLL is being used by EXE Pin
Prasoon Chaudhary31-Mar-10 0:42
Prasoon Chaudhary31-Mar-10 0:42 
GeneralRe: Checking if User-Control DLL is being used by EXE Pin
Pete O'Hanlon31-Mar-10 0:45
mvePete O'Hanlon31-Mar-10 0:45 
Questionsilverlight application template missing Pin
lkrfan30-Mar-10 18:37
lkrfan30-Mar-10 18:37 
AnswerRe: silverlight application template missing Pin
Abhinav S31-Mar-10 19:14
Abhinav S31-Mar-10 19:14 
GeneralRe: silverlight application template missing Pin
lkrfan1-Apr-10 3:43
lkrfan1-Apr-10 3:43 
GeneralRe: silverlight application template missing Pin
Abhinav S1-Apr-10 5:41
Abhinav S1-Apr-10 5:41 
GeneralRe: silverlight application template missing Pin
lkrfan1-Apr-10 7:42
lkrfan1-Apr-10 7:42 
GeneralNo experience, learning C# & WPF Pin
tim.gent@gmail.com30-Mar-10 5:22
tim.gent@gmail.com30-Mar-10 5:22 
GeneralRe: No experience, learning C# & WPF Pin
Parwej Ahamad30-Mar-10 9:34
professionalParwej Ahamad30-Mar-10 9:34 
GeneralRe: No experience, learning C# & WPF Pin
tim.gent@gmail.com30-Mar-10 12:49
tim.gent@gmail.com30-Mar-10 12:49 
GeneralRe: No experience, learning C# & WPF Pin
Parwej Ahamad30-Mar-10 17:13
professionalParwej Ahamad30-Mar-10 17:13 
GeneralRe: No experience, learning C# & WPF Pin
Pete O'Hanlon30-Mar-10 21:48
mvePete O'Hanlon30-Mar-10 21:48 
GeneralRe: No experience, learning C# & WPF Pin
Jammer1-Apr-10 14:17
Jammer1-Apr-10 14:17 
GeneralRe: No experience, learning C# & WPF Pin
Pete O'Hanlon2-Apr-10 10:02
mvePete O'Hanlon2-Apr-10 10:02 
GeneralRe: No experience, learning C# & WPF Pin
Jammer12-Apr-10 10:52
Jammer12-Apr-10 10:52 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.