Forum Replies Created

Viewing 15 posts - 31 through 45 (of 14,507 total)
  • Author
    Posts
  • User (Old forums)
    Member
    Post count: 23064

    Fawzi, I would like ask you more about the second question:

    I’ve
    managed to create new VeiwTemplate called FeatureViewTemplate. Special thanks
    to you, Fawzi [Xceed]. 
    At start of
    the program I always see my FeatureViewTemplate is show at the right side
    within FileStatsViewTemplate like that:
     enter image description here 

    But
    I would like the arrange of areas
      in
    such order File Stats at the left side and the FeatureArea at the Right side.
    Like that:
     

    enter image description here 

    But I really would like to show a such order at the start of program when AvalonDock.config is not created by AvalonDock.MVVMTestApp application. Please, help me Fawzi[Xceed] .

    Imported from legacy forums. Posted by Stepan (had 0 views)

    User (Old forums)
    Member
    Post count: 23064

    Fawzi [Xceed], thanks a lot. You are awesome! Thanks you very much!

    Imported from legacy forums. Posted by Stepan (had 211 views)

    User (Old forums)
    Member
    Post count: 23064

    I found out the solution by reading this documentation.
    http://doc.xceedsoft.com/products/XceedFileSystem/topic172.html

    Imported from legacy forums. Posted by Ha (had 53 views)

    User (Old forums)
    Member
    Post count: 23064

    Done. Have just sent a mail to support. Thanks in advance. Hope that you’ll manage to find a solution.

    Imported from legacy forums. Posted by Anastasia (had 36 views)

    User (Old forums)
    Member
    Post count: 23064

    Hi Fawzi,

    1. I am sorry but I know that I am dummy. I could not find method AnchorablesSourceElementsChanged” at DockingManager.cs. I’ve tried to write at the constructor of SearchViewModel:

    DockingManager dm = new DockingManager() {Width=5000 };

    but there is no result. The size of SearchViewmodel is not changed.

    2. Am I right that I wrote code at the constructor of SearchViewModel to define desired size of SearchViewTemplate?

    3. Regarding my second question to set location, you really have given me a good answer. Thanks. 

     

    Imported from legacy forums. Posted by Stepan (had 76 views)

    User (Old forums)
    Member
    Post count: 23064

    Fawzi, I’ve found very strange behavior of FileStatsViewTemplate.

    1. If I click “Tools->Properties” , it creates new FileStatsViewTemplate and all FileStatsViewTemplates are ordered in a LayoutDocumentPane.

    But I would like just have one “FileStats”, It is not depend on how many an user clicks at “Files->Properties”

    enter image description here 

    2. I would like to load FileStatsViewTemplate at first, not SearchViewTemplate. At start of program I always see SearchViewTemplate at first, however I would like to show FileStats at first, and no SearchViewTemplate till an user clicks “Tools->SearchWindow”.

    It is really shameful, but I’ve spent 2 days and cannot figured out how to solve this tasks. Help me, please, Fawzi.

     

    Imported from legacy forums. Posted by Stepan (had 52 views)

    User (Old forums)
    Member
    Post count: 23064

    Fawzi, Thank you very much!!!

    A lot! 🙂 

    Man, you are awesome programmer!!!

    Imported from legacy forums. Posted by Stepan (had 105 views)

    User (Old forums)
    Member
    Post count: 23064

    May be I didn’t explained my problem clearly

     

    How to change IsFocused (or) Selected column
    style of Grid. My Default Background  Color is Blue and Foreground is White

    When I select a column,  I cant read Text

    I Tried below and it is not working properly

           <Style TargetType=”{x:Type xcdg:ColumnManagerCell}”>
                <Setter Property=”HorizontalContentAlignment”
                    Value=”Center”/>
                <Setter Property=”VerticalContentAlignment”
                    Value=”Center” />
                <Setter Property=”Background” 
                    Value=”Blue” />
                <Setter Property=”Foreground”  
                    Value=”White” />
                <Style.Triggers>
                    <Trigger Property=”IsFocused” Value=”True”>
                        <Setter Property=”Foreground” Value=”Blue”/>
                        <Setter Property=”Background” Value=”White” />
                    </Trigger>
                </Style.Triggers>
            </Style>

     

    Imported from legacy forums. Posted by Sathish (had 0 views)

    User (Old forums)
    Member
    Post count: 23064
    Hi, Fawzi! 🙂
    When I click at the program AvalonDock.MVVMTestApp:
    1. “File -> New” – the program creates new window(FileViewTemplate) at the right side with each click. It is okay.
    2. “Tools -> Properties” – the program creates always one window(FileStatsViewTemplate) at the left side with each click. It is okay
    3. “Tools -> Search Window” – the program does not create any window(SearchViewTemplate). Where can I define the code to locate the position to show SearchViewTemplate when SearchViewModel is created at the program(at the left side or at the right side).
     
    What I did to create SearchViewModel: 
    1. I’ve created SearchViewTemplate at the PanesTemplateSelector class
    class SearchViewModel : ToolViewModel
        {  //I’ve pasted the code from  FileStatsViewModel class    }
     
    2 . I’ve declared SearchViewTemplate:
    <local:PanesTemplateSelector.SearchViewTemplate>
       <DataTemplate>
          <TextBlock Text=”Hello World”/>
       </DataTemplate>
    </local:PanesTemplateSelector.SearchViewTemplate> 
     
    3. I’ve added PaneStyleSelector:
    class PanesStyleSelector : StyleSelector    {
            …
            public Style SearchStyle
            {
                get;
                set;
            }
            public override System.Windows.Style SelectStyle(object item, System.Windows.DependencyObject container)
            {
                …..
                if (item is SearchViewModel)
                    return SearchStyle;
                return base.SelectStyle(item, container);
            }
        } 
     
    4. <avalonDock:DockingManager.LayoutItemContainerStyleSelector>
                    <local:PanesStyleSelector>
                        <local:PanesStyleSelector.ToolStyle>
                            <Style TargetType=”{x:Type avalonDock:LayoutAnchorableItem}”>
                                …..
                            </Style>
                        </local:PanesStyleSelector.ToolStyle>   
                        <local:PanesStyleSelector.FileStyle>
                            <Style TargetType=”{x:Type avalonDock:LayoutItem}”>
                                ….. 
                            </Style>
                        </local:PanesStyleSelector.FileStyle>
                        <local:PanesStyleSelector.SearchStyle>
                            <!– I’ve just copied the style from FileStyle. Is it normal? –> 
                            <Style TargetType=”{x:Type avalonDock:LayoutItem}”>
                                <Setter Property=”Title” Value=”{Binding Model.Title}”/>
                                <Setter Property=”ToolTip” Value=”{Binding Model.FilePath}”/>
                                <Setter Property=”CloseCommand” Value=”{Binding Model.CloseCommand}”/>
                                <Setter Property=”IconSource” Value=”{Binding Model.IconSource}”/>
                                <Setter Property=”ContentId” Value=”{Binding Model.ContentId}”/>
                            </Style>                       
                        </local:PanesStyleSelector.SearchStyle>
                    </local:PanesStyleSelector>
                </avalonDock:DockingManager.LayoutItemContainerStyleSelector>           
    Questions:
    1. Am I right to inherit from ToolViewModel to create another ViewTemplate(the third template SearchViewTemplate)?
    2. Is it possible to create three types of ViewTemplates(FileViewTemplate, FileStatsViewTemplate, SearchViewModel) simultaneously?
    3. Is it normal just copy style from FileStyle into SearchStyle? 
     
    I’ve attached my code. Please, see it, please:)

    Imported from legacy forums. Posted by Stepan (had 77 views)

    User (Old forums)
    Member
    Post count: 23064

    Purpose:

    1. Keep IsLocked Column Editable always

    2. StartDate Column to be editable only on insertion of new Row

     DataCell Styling:

      <Style TargetType=”xcdg:DataCell”>

                            <Style.Triggers>

    <DataTrigger Binding=”{Binding RelativeSource={RelativeSource Self}, Path=ParentColumn.FieldName}” Value=”IsLocked”>

                                    <Setter Property=”ReadOnly” Value=”False”/>

                                </DataTrigger>

                                <DataTrigger Binding=”{Binding RelativeSource={RelativeSource Self}, Path=ParentColumn.FieldName}” Value=”StartDate”>

                                    <Setter Property=”ReadOnly” Value=”False”/>

                                </DataTrigger>

    </Style.Triggers> 

    </Style>

     Insertion Cell Styling

    <Style TargetType=”{x:Type xcdg:InsertionCell}”>

                            <Style.Triggers>

                                <DataTrigger Binding=”{Binding RelativeSource={RelativeSource Self}, Path=ParentColumn.FieldName}” Value=”IsLocked”>

                                    <Setter Property=”ReadOnly” Value=”False”/>

                                </DataTrigger>

                                <DataTrigger Binding=”{Binding RelativeSource={RelativeSource Self}, Path=ParentColumn.FieldName}” Value=”StartDate”>

                                    <Setter Property=”ReadOnly” Value=”False”/>

                                </DataTrigger> 

    </Style.Triggers>

    </Style> 

    Imported from legacy forums. Posted by Tapas (had 280 views)

    User (Old forums)
    Member
    Post count: 23064

    Hi,

    I have tried this but, once we make the Data cells as Readonly = True, and then when we add Styling for InsertionCell and make it REadonly = False, the newly added cells are not editable.

     

    Imported from legacy forums. Posted by Tapas (had 92 views)

    User (Old forums)
    Member
    Post count: 23064

    [quote user=”Fawzi [Xceed]”]Hi,
    DockingManager has a property called “LayoutItemTemplateSelector”, which let you define the template selector to use for anchorable and document templates.
    From what I can see in the image you attached, this selector will be a “PanesTemplateSelector” class, defined locally on your end. From there, you try to set the PanesTemplateSelector.FileViewTemplate and PanesTemplateSelector.FileStatsViewTemplate properties.
    These properties are not part of AvalonDock or the Toolkit. I believe you will have to add a new ViewTemplate property in your PanesTemplateSelector class in order to create other ViewTemplates.[/quote]

    Thanks for your reply! I’ve done it. I’ve done all actions in PanesTemplateSelector class. Please, see my question(the first message of this topic) again and you will see what I’ve done. However, new template cannot be seen in the run program. 

    <avalonDock:DockingManager.LayoutItemTemplateSelector>

                    <local:PanesTemplateSelector>

                        <local:PanesTemplateSelector.FileViewTemplate>

                            <DataTemplate>

                                <!–This FileViewTemplate is perfectly shown in my program. The code omitted for brevity–>

                            </DataTemplate>

                        </local:PanesTemplateSelector.FileViewTemplate>

                        <local:PanesTemplateSelector.FileStatsViewTemplate>

                            <DataTemplate>

                                <!–This FileStatsViewTemplate is perfectly shown in my program. The code omitted for brevity–>

                            </DataTemplate>

                        </local:PanesTemplateSelector.FileStatsViewTemplate>

                        <local:PanesTemplateSelector.SearchViewTemplate>

                            <DataTemplate>

                                <TextBlock Text=”Hello World!:)”/>

                                <!–This SearchViewTemplate is perfectly NOT shown in my program. What am I doing wrong?–> 

                            </DataTemplate>

                        </local:PanesTemplateSelector.SearchViewTemplate>

                    </local:PanesTemplateSelector>

                </avalonDock:DockingManager.LayoutItemTemplateSelector> 

    So I have two questions:

    1. Why is new template now shown in the run program. 

    2. Where or how can I assign place where new template will be shown?(For example, FileStatsViewTemplate is always shown at the left side of a Window at start of program) 

     Thanks!:)

     

     

     

    Imported from legacy forums. Posted by Stepan (had 83 views)

    User (Old forums)
    Member
    Post count: 23064

    [quote user=”CharlesB”]You said it yourself, the XceedBkp.dll needs to be register to prevent this error. There may be a problem with the registration of the .dll with InstallShield?[/quote]

     I unfortunately have to bump this old thread because it is now happening on Windows 10. The component is listed in the registry, however, trying to register it manually gives the below error;

      “The module “XceedBkp.dll” was loaded but the call to DLLRegisterServer failed with error code 0x800200009″.

     What does this mean and how can I fix it? Is this component compatible with Windows 10? 

    Imported from legacy forums. Posted by Gary (had 190 views)

    User (Old forums)
    Member
    Post count: 23064

    Hi Fawzi,

           I tried to upload my sample solution but I am unable to upload any files in  private message section I am getting below error

    ‘You do not have permission to upload or link to files. Please contact your system administrator.’

     

    Imported from legacy forums. Posted by Sathish (had 55 views)

    User (Old forums)
    Member
    Post count: 23064

    [quote user=”Fawzi [Xceed]”]Hi,

    We will need a complete sample that can compile in order to debug exactly what you have. Also, please specify how you fire the FileStats property in the application and what you expect when that property is fired.[/quote]

    Hi! Thanks for the answer!  The Master Brian Lagunas helped me to find an error in my project. I’ve made a really rough error and the program says to me that:

    IOException was unhalded 

    Cannot locate resource images/property-blue.png’.
    However, I run and run my program and it works without this piece of xaml:

    <avalonDock:DockingManager.LayoutItemTemplateSelector>

                    <local:PanesTemplateSelector>

                        <local:PanesTemplateSelector.FileViewTemplate>

                            <DataTemplate>

                                <TextBox Text=”{Binding TextContent, UpdateSourceTrigger=PropertyChanged}”/>

                            </DataTemplate>

                        </local:PanesTemplateSelector.FileViewTemplate>

                        <local:PanesTemplateSelector.FileStatsViewTemplate>

                            <DataTemplate>

                                <StackPanel Orientation=”Vertical”>

                                    <TextBlock Text=”{Binding FileSize}”/>

                                    <TextBlock Text=”{Binding LastModified}”/>

                                    <TextBox Text=”test”/>

                                    <TreeViewItem Header=”—Level 1″ />                                                                  

                                </StackPanel>

                            </DataTemplate>

                        </local:PanesTemplateSelector.FileStatsViewTemplate>

                    </local:PanesTemplateSelector>

     

                </avalonDock:DockingManager.LayoutItemTemplateSelector>

     

    Brian Lagunas said that I should comment this code and the program will work:

    public FileStatsViewModel()

                : base(“File Stats”)

            {

                Workspace.This.ActiveDocumentChanged += new EventHandler(OnActiveDocumentChanged);

                ContentId = ToolContentId;

                /*BitmapImage bi = new BitmapImage();

                bi.BeginInit();

                bi.UriSource = new Uri(“pack://application:,,/Images/property-blue.png”);

                bi.EndInit();

                IconSource = bi;*/

            }

    And it really started to work! Thank you guys for cool library! 🙂

     

     

     

    Imported from legacy forums. Posted by Stepan (had 151 views)

Viewing 15 posts - 31 through 45 (of 14,507 total)