Forum Replies Created

Viewing 15 posts - 16 through 30 (of 5,588 total)
  • Author
    Posts
  • Xceed Support
    Member
    Post count: 5658

    Hi,

    You will need to redo the GroupHeaderControl template in order to change the format of the writing. Some of the available themes have all of the xaml of which you can change to accommodate to your theme for your application.You can find the XAML in the Themes folder where the files are installed. The default location for them can be found here:

    Aero Theme:
    C:\Program Files (x86)\Xceed\Xceed DataGrid for WPF Professional Edition v4.3\Themes\Aero

    All Themes:
    C:\Program Files (x86)\Xceed\Xceed DataGrid for WPF Professional Edition v4.3\Themes

    I have included the relevant code below of which you can copy/paste it into you application and then refer to it using a style.

    XAML

    —————–

    <!–**************************
        * TEMPLATE: GroupHeaderControl (When top level sticky)
        ************************** –>
       <ControlTemplate x:Key=”tableflowViewGroupHeaderTopLevelStickyControlTemplate”
                        TargetType=”local:GroupHeaderControl”>

          <!– Using this decorator will prevent the GroupHeaderControl of exceeding the width
               defined by the grid’s column. –>
          <views:PassiveLayoutDecorator Axis=”Horizontal”>
             <!– This DockPanel is used to layout the GroupLevelIndicatorPane placeholder and the GroupHeaderControl Content. –>
             <DockPanel>

                <!– GroupLevelIndicatorPane is a placeholder for individual GroupLevelIndicator elements that are added
                  whenever this GroupHeaderControl is part of a group. –>
                <local:HierarchicalGroupLevelIndicatorPane DockPanel.Dock=”Left” />
                <local:GroupLevelIndicatorPane DockPanel.Dock=”Left”
                                               Indented=”False”
                                               local:GroupLevelIndicatorPane.GroupLevel=”{Binding RelativeSource={RelativeSource TemplatedParent}, Path=(local:GroupLevelIndicatorPane.GroupLevel), Converter={StaticResource groupHeaderControlGroupLevelConverter}, ConverterParameter=-1}” />

                <Grid>
                   <Border x:Name=”outerBorder”
                           BorderBrush=”#FF03395B”
                           BorderThickness=”0,1,0,1″>
                      <Grid>
                         <Grid.RowDefinitions>
                            <RowDefinition Height=”0.5*” />
                            <RowDefinition Height=”0.5*” />
                         </Grid.RowDefinitions>
                         <Border Grid.RowSpan=”2″>
                            <Border.Background>
                               <LinearGradientBrush EndPoint=”0,0.5″
                                                    StartPoint=”1,0.5″>
                                  <GradientStop Color=”#FF196C77″
                                                Offset=”0″ />
                                  <GradientStop Color=”#FF065F99″
                                                Offset=”1″ />
                               </LinearGradientBrush>
                            </Border.Background>
                         </Border>
                         <Border Opacity=”0.2″
                                 Grid.RowSpan=”2″>
                            <Border.Background>
                               <LinearGradientBrush EndPoint=”0.5,0.5″
                                                    StartPoint=”0.5,0″>
                                  <GradientStop Color=”#CCFFFFFF”
                                                Offset=”1″ />
                                  <GradientStop Color=”#4CFFFFFF”
                                                Offset=”1″ />
                               </LinearGradientBrush>
                            </Border.Background>
                         </Border>
                      </Grid>
                   </Border>

                   <!– Main Border for the GroupHeaderControl. It is Focusable to make the InputBindings work. –>
                   <Border x:Name=”mainBorder”
                           Background=”Transparent”
                           BorderBrush=”{TemplateBinding BorderBrush}”
                           BorderThickness=”{TemplateBinding BorderThickness}”
                           Padding=”{TemplateBinding Padding}”
                           Focusable=”True”
                           FocusVisualStyle=”{TemplateBinding FocusVisualStyle}”>

                      <!– Define all the standard InputBindings for a GroupHeaderControl. –>
                      <Border.InputBindings>
                         <KeyBinding Command=”{x:Static local:DataGridCommands.ToggleGroupExpansion}”
                                     Key=”Space” />

                         <KeyBinding Command=”{x:Static local:DataGridCommands.ExpandGroup}”
                                     Key=”Right” />

                         <KeyBinding Command=”{x:Static local:DataGridCommands.ExpandGroup}”
                                     Key=”Add” />

                         <KeyBinding Command=”{x:Static local:DataGridCommands.CollapseGroup}”
                                     Key=”Left” />

                         <KeyBinding Command=”{x:Static local:DataGridCommands.CollapseGroup}”
                                     Key=”Subtract” />

                         <MouseBinding Command=”{x:Static local:DataGridCommands.ToggleGroupExpansion}”
                                       MouseAction=”LeftDoubleClick” />

                      </Border.InputBindings>

                      <DockPanel>

                         <!– ToggleButton that is used to expand/collapse the group. –>
                         <ToggleButton DockPanel.Dock=”Left”
                                       OverridesDefaultStyle=”True”
                                       Template=”{StaticResource groupExpanderToggleButtonTemplate}”
                                       VerticalAlignment=”{TemplateBinding VerticalContentAlignment}”
                                       Focusable=”False”
                                       IsChecked=”{Binding RelativeSource={RelativeSource TemplatedParent},Path=Group.IsExpanded}” />

                         <!– ContentPresenter in charge of displaying this GroupHeaderControl’s Content, which is
                        a Group by default. –>
                         <ContentPresenter DockPanel.Dock=”Left”
                                           Margin=”3,0,0,0″
                                           TextElement.Foreground=”{TemplateBinding Foreground}”
                                           Content=”{TemplateBinding Content}”
                                           ContentTemplate=”{TemplateBinding ContentTemplate}”
                                           ContentTemplateSelector=”{TemplateBinding ContentTemplateSelector}”
                                           VerticalAlignment=”{TemplateBinding VerticalContentAlignment}” />
                      </DockPanel>
                   </Border>
                </Grid>
             </DockPanel>
          </views:PassiveLayoutDecorator>

          <ControlTemplate.Triggers>
             <Trigger Property=”local:DataGridControl.NavigationBehavior”
                      Value=”None”>
                <Setter TargetName=”mainBorder”
                        Property=”Focusable”
                        Value=”False” />
             </Trigger>
          </ControlTemplate.Triggers>

       </ControlTemplate>

    —————–

    Imported from legacy forums. Posted by Marc [Xceed] (had 766 views)

    Xceed Support
    Member
    Post count: 5658

    Hi Mitt,

    What is probably happening is that the old user had the exe on his computer with the license key set in the registry and not in code. Unfortunately, I cannot help you retrieve the license key, but our sales department can help you. You can email them at sales@xceed.com or you can call them. The phone number is shown at the top right of this web page.

    Imported from legacy forums. Posted by Marc [Xceed] (had 1200 views)

    Xceed Support
    Member
    Post count: 5658

    Hi,

    Which version of the Xceed Zip Compression Library are you using? If you are not using the latest version (6.5), are you able to download and try the component to see if it meets your needs? Also, are you able to send us a small self-contained sample application so that we can investigate to see exactly what you are doing? You can download the trial here (trial period is valid for 45 days).

    Imported from legacy forums. Posted by Marc [Xceed] (had 1251 views)

    Xceed Support
    Member
    Post count: 5658

    Hi anuka,

    If you want the user the choose the background, I would suggest having a style for each background theme you want to apply. For example

    XAML

    ————-

    <Style x:Key=”style1″ TargetType=”{x:Type Window}”>
                    <Setter Property=”Background” Value=”{x:Static xcpt:LiveExplorerResources.ApplicationBackgroundBrush}” />
                    <Setter Property=”FontSize” Value=”16″ />
                </Style>

                <Style x:Key=”style2″ TargetType=”{x:Type Window}”>
                    <Setter Property=”Background” Value=”Blue” />
                    <Setter Property=”ResizeMode” Value=”NoResize” />
                    <Setter Property=”ShowInTaskbar” Value=”False” />
                </Style>

    ————-

    Then, in code behind, you can simply choose which style you want to apply based on the user. For example:

    C#

    ————-

    private void btnTest_Click(object sender, RoutedEventArgs e)
            {
                isTest = !isTest;

                if (isTest)
                    this.Style = (Style) this.Resources[“style1”];
                else
                    this.Style = (Style) this.Resources[“style2”];
            }

    ————-

    Imported from legacy forums. Posted by Marc [Xceed] (had 431 views)

    Xceed Support
    Member
    Post count: 5658

    Hi kun,

    I’m not exactly sure what is going on in your application. The behavior that you have explained is not the default behavior of that feature nor is it expected. Are you able to replicate the issue in a simpler, and smaller self contained sample application? If it is, can you provide it to us so that we can investigate the issue further and provide you with more information and insight. 

    Imported from legacy forums. Posted by Marc [Xceed] (had 900 views)

    Xceed Support
    Member
    Post count: 5658

    Hi anuka,

    If you just want to set the Background property of the Window, this can be easily achieve by setting Background property in XAML without Binding. There is no Binding required and you can just do the following:

    XAML

    ————–

    <Window x:Class=”TestProject.MainWindow”
            xmlns=”http://schemas.microsoft.com/winfx/2006/xaml/presentation&#8221;
            xmlns:x=”http://schemas.microsoft.com/winfx/2006/xaml&#8221;
            xmlns:xcpt=”http://schemas.xceed.com/wpf/xaml/themes&#8221;
            Title=”MainWindow” Height=”350″ Width=”525″
            Background=”{x:Static xcpt:LiveExplorerResources.ApplicationBackgroundBrush}”>

    ————–

    This XAML code was also posted on the online documentation that is available to all developers for free here. You can access the whole online documentation with the table of contents here. Moreover, you can check the list of documentation resources that we provide to the public to view and use them all here.

    I hope this helps!

    Imported from legacy forums. Posted by Marc [Xceed] (had 561 views)

    Xceed Support
    Member
    Post count: 5658

    Hi Bil,

    You can also refer to this document from our online documentation here. In the example, you are explicitly stating where the file resides on. It is a much simpler example with more explanation as to what is being done and what is required. Is there a pattern as to how the file names are constructed? Knowing the file name is essential to the component so that it understands which file to extract.

    I hope this makes it clearer for you!

    Imported from legacy forums. Posted by Marc [Xceed] (had 1350 views)

    Xceed Support
    Member
    Post count: 5658

    Hi Pritesh,

    In order to match the columns with the properties in your business object, you can do 2 things.

    1) Have them automatically generated.

         -> This will display every member from your business object

    2) Define the columns you want to display manually

         -> You have the choice to choose which columns gets displayed to the user

     

    If you choose option 1, then you can set the AutoCreateColumns property to true on the DataGridControl.

    If you choose option 2, then you will need to manually define your columns in XAML and provide the FieldName property. The FieldName property corresponds with the name of the members in your BusinessObject, such as: FirstName, LastName, Age, EyeColor, etc.Your XAML should look like this when define your columns:

    XAML

    —————-

    <xcdg:DataGridControl Name=”MyDGC” AutoCreateColumns=”False” ItemScrollingBehavior=”Immediate” Grid.Row=”1″
                              ReadOnly=”False” ItemsSource=”{Binding Source={StaticResource MyPeopleCollectionCollectionView}}”
                                  >
                <xcdg:DataGridControl.Columns>
                    <xcdg:Column FieldName=”FirstName” Title=”Column1″ />
                    <xcdg:Column FieldName=”LastName” Title=”Column2″ />
                    <xcdg:Column FieldName=”Age” Title=”Column3″ />
                    <xcdg:Column FieldName=”EyeColor” Title=”Column4″ />
                    <xcdg:Column FieldName=”BirthDate” Title=”Column5″ />
                    <xcdg:Column FieldName=”Prefix” Title=”Column6″ />
                </xcdg:DataGridControl.Columns>
            </xcdg:DataGridControl>

    —————-

    Imported from legacy forums. Posted by Marc [Xceed] (had 862 views)

    Xceed Support
    Member
    Post count: 5658
    in reply to: column selection #25240

    Hi Pritesh,

    This feature is currently not supported and we have no plans to implement this at the moment.

    Imported from legacy forums. Posted by Marc [Xceed] (had 718 views)

    Xceed Support
    Member
    Post count: 5658

    Hi kun,

    If you see an hourglass after something is being done to the grid, this means that you might be doing something that is causing this. Currently, the Xceed DataGrid for WPF does not show an hourglass if it is doing something. The UI will actually lock up and freeze if it even gets to that point. And you would need a lot of graphics and millions of records to attempt to freeze the grid.

    Are you doing anything while the grid filters? Are you overriding the Filter event on the DataGridCollectionView? If you are, you will need to analyze and check to see exactly what you are doing when the user filters that triggers this event. Please remember that the Filter event gets triggered for every item in your Items collection. The objective of the Filter event is to provide a criterion or criteria as to what needs to get filtered.

    Imported from legacy forums. Posted by Marc [Xceed] (had 499 views)

    Xceed Support
    Member
    Post count: 5658

    Hi Bil,

    I’m not clear as to what your requirements are as there is no question. If you require any help with simple commands on tarring and untarring, you can always refer to the Xceed FileSystem Snippet Explorer. In the application, you will find various topics concerning the Xceed components that use the FileSystem architecture that we provide. You can find the application installed on your machine. If you have installed the component and left the directories to the default ones, then you should be able to find it here:

    C:\Program Files (x86)\Xceed\Xceed Zip for .NET v5.1\Bin\Xceed.FileSystem.SnippetExplorer.exe

    In the executable, you can quickly go to topic #5 for the use of the Tar classes. You can find an example for basic scenarios when dealing with tar files. Remember, you are not limited to the functionality shown in the snippet explorer. You can find more information in the online documentation. If you have any more questions, please feel free to ask!

     

    Imported from legacy forums. Posted by Marc [Xceed] (had 222 views)

    Xceed Support
    Member
    Post count: 5658

    Hi,

    I have forwarded this case to the lead developer of the component. I now see why you were having issues. Currently, the style will only get applied if it is added implicitly, but like you said, this is an issue if you don’t want 2 buttons to have the same theme. I will forward you his feedback as soon as I receive it. Also, if possible, I will provide you with a solution. I am not saying there is one, but if there is, I will give it to you.

    Imported from legacy forums. Posted by Marc [Xceed] (had 1025 views)

    Xceed Support
    Member
    Post count: 5658

    Hi Olivia,

    This can be done. However, this should require an extensive amount of XAML.  By default there is a filter icon that you will click on when the mouse hovers about the ColumnManagerCell. Will your Filter button do the same thing? In any case, you will need to open up the template for the ColumnManagerCell. You can find the default templates and styles installed on your machine:

    C:\Program Files (x86)\Xceed\Xceed DataGrid for WPF Professional Edition v4.3\Themes\Aero

    You can open up the TableflowView if you are using this view.

    Do a search (Ctrl + F) for “TEMPLATE: ColumnManagerCell”. From here, you have the template for the ColumnManagerCell. I would recommend copy/pasting the xaml in a resource dictionary file in your application. Then you can play around with the XAML and change the template to your liking.

    Imported from legacy forums. Posted by Marc [Xceed] (had 328 views)

    Xceed Support
    Member
    Post count: 5658

    Hi Olivia,

    I’m not able to replicate this issue. My next question is how do you refresh the data? Are you calling the Refresh method on the DataGridCollectionView or are you re-binding the ItemsSource of the DataGridControl? If you need the event for when the data source gets refreshed (Refresh method), you will need to
    subscribe to the CollecionChanged event on the DataGridCollectionView.
    You must do this from the ItemsSourceChangedCompleted event first. For
    example:

    C#
    ———–
    private void MyDGC_ItemsSourceChangeCompleted(object sender, EventArgs e)
    {
        Debug.WriteLine(“MyDGC_ItemsSourceChangeCompleted”);
        ((this.MyDGC.ItemsSource as DataGridCollectionView) as
    INotifyCollectionChanged).CollectionChanged += new
    NotifyCollectionChangedEventHandler(MainWindow_CollectionChanged);
    }

    void MainWindow_CollectionChanged(object sender, NotifyCollectionChangedEventArgs e)
    {
        if (e.Action == NotifyCollectionChangedAction.Reset)
        {
            Debug.WriteLine(“Called”);
        }
    }
    ———–

    Imported from legacy forums. Posted by Marc [Xceed] (had 226 views)

    Xceed Support
    Member
    Post count: 5658

    Hi,

    This works for me. The theme is applied to my header. I have attached a sample application. It is very simple, just enough to see if the theme is applied. You will just need to put your license key in XAML and make sure you have the proper DLLs installed. I just decided to use the LiveExplorer for this example.

    Imported from legacy forums. Posted by Marc [Xceed] (had 300 views)

Viewing 15 posts - 16 through 30 (of 5,588 total)