Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
665
XamTrader
posted

Hello,

I am trying to replicate the XamTrader to a certain extent, but not in entirety. I am especially curious about the XamDataGrid to the left of the page. How is the data put up there manually and also how do I bind it to a SQL Stored Procedure. Also, there is a link "Add", I was wondering how to add a link in a XamDataGrid?

Any help on this is greatly appreciated as I have just started using WPF and never worked on it before!

Thanks

Parents
  • 2426
    Suggested Answer
    posted

    The Add button in the sample is actually a styled button. You can see the example below:

      <Style x:Key="btnStyle" TargetType="{x:Type Button}">
        <Setter Property="Template">
          <Setter.Value>
            <ControlTemplate TargetType="{x:Type Button}">
              <Grid>
                <TextBlock FontFamily="Segoe UI"
                           FontSize="10" FontWeight="Normal" Foreground="#FF000000"
                           Text="{TemplateBinding Content}" VerticalAlignment="Center"
                           HorizontalAlignment="Center" x:Name="textBlock"/>
         </Grid>
              <ControlTemplate.Triggers>
                <Trigger Property="IsFocused" Value="True"/>
                <Trigger Property="IsDefaulted" Value="True"/>
                <Trigger Property="IsMouseOver" Value="True">
                  <Setter Property="TextDecorations" TargetName="textBlock" Value="Underline"/>
                </Trigger>
                <Trigger Property="IsPressed" Value="True"/>
                <Trigger Property="IsEnabled" Value="False"/>
              </ControlTemplate.Triggers>
            </ControlTemplate>
          </Setter.Value>
        </Setter>
        <Setter Property="Cursor" Value="Hand"/>
      </Style>

Reply Children
No Data