6

I´m using the librariay Extended WPF Toolkit

https://wpftoolkit.codeplex.com/

Is it possible to resize a ChildWindow like a ordinary Window?

The documentation shows some properties that seem to be related, but they are not accessible via xaml. https://wpftoolkit.codeplex.com/wikipage?title=ChildWindow

This is the example that I´m trying:

<Window x:Class="WpfApplication1.MainWindow"
         xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
         xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
         xmlns:local="clr-namespace:WpfApplication1"
         xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit"
         xmlns:xcad="http://schemas.xceed.com/wpf/xaml/avalondock"
         xmlns:s="clr-namespace:System;assembly=mscorlib">
    <xctk:WindowContainer>
        <xctk:ChildWindow WindowBackground="Blue"
                    Left="75"
                    Top="50"
                    Width="275"
                    Height="125"
                    WindowState="Open" Canvas.Top="52">
            <TextBlock Text="This is a Child Window" Padding="10"/>
        </xctk:ChildWindow>
    </xctk:WindowContainer>
</Window>
Charles
  • 50,943
  • 13
  • 104
  • 142
Alejandro Martin
  • 5,691
  • 1
  • 17
  • 21
  • Just to make sure I'm reading this right, are you just referring to [ResizeMode](http://msdn.microsoft.com/en-us/library/system.windows.window.resizemode(v=vs.110).aspx) wherein you can just set `ResizeMode="CanResizeWithGrip` ? – Chris W. Nov 05 '13 at 21:22
  • I´m trying to make "resizeable" the ChildWindow object.. the documentation tells that this object also has a property named "ResizeMode", but I can´t find how to use it in the xaml code – Alejandro Martin Nov 05 '13 at 21:30
  • You would just declare it up with the namespaces of the window, or is that the part not working for you? – Chris W. Nov 05 '13 at 21:37
  • 1
    Yes, this is the problem, I mean, the ResizeMode property is present in the object, but it is not in the , even though the documentation says that it is there. – Alejandro Martin Nov 05 '13 at 21:51

1 Answers1

2

It appears as though the Resize functionality is only available in the Plus Edition of the software, the documentation can be found at the link below.

Based on the link you provided, it looks like you are using the same version as I am, which is the free one.

https://wpftoolkit.codeplex.com/wikipage?title=ChildWindow%20Plus

Kind of disappointing, we don't utilize the toolkit enough to warrant the cost.

StayOnTarget
  • 11,743
  • 10
  • 52
  • 81
WebDevNewbie
  • 1,833
  • 1
  • 13
  • 17
  • Have you tried [WindowContainer](https://wpftoolkit.codeplex.com/wikipage?title=WindowContainer)? (From docs: "Many actions performed on its children are managed by the WindowContainer (movement and positioning, resizing...") – kmote Jun 09 '17 at 20:23