Quantcast
Channel: Extended WPF Toolkit™ Community Edition
Viewing all 4964 articles
Browse latest View live

Released: Extended WPF Toolkit - 2.0.0 (May 21, 2013)

$
0
0

What's new in the 2.0.0 Community Edition?

Improvements and bug fixes
  • New! Live Explorer app available online as a Click Once app. Try it now!

Want an easier way to install the Extended WPF Toolkit?

The Extended WPF Toolkit will is available on Nuget.

.NET Framework notes:

Requires .NET Framework 4.0. A build for .NET 3.5 is provided but also requires the WPFToolkit to be installed.

Instructions for using the Extended WPF Toolkit binaries:

  1. Install .NET Framework 4.0
  2. Download the ExtendedWPFToolkit_Binaries
  3. Right-click ExtendedWPFToolkit_Binaries.zip -> Properties -> Unblock
  4. Unzip the ExtendedWPFToolkit_Binaries.zip
  5. Add a using statement ("using Xceed.Wpf.Toolkit;") to the top of .cs files
  6. Add a new xmlns (for example, xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit") to the top of XAML files
  7. In your XAML, use the namespace prefix (in the above example, <xctk: ...>)

Updated Release: Extended WPF Toolkit - 2.0.0 (May 21, 2013)

$
0
0

What's new in the 2.0.0 Community Edition?

Improvements and bug fixes
  • New! Live Explorer app available online as a Click Once app. Try it now!

Want an easier way to install the Extended WPF Toolkit?

The Extended WPF Toolkit will is available on Nuget.

.NET Framework notes:

Requires .NET Framework 4.0. A build for .NET 3.5 is provided but also requires the WPFToolkit to be installed.

Instructions for using the Extended WPF Toolkit binaries:

  1. Install .NET Framework 4.0
  2. Download the ExtendedWPFToolkit_Binaries
  3. Right-click ExtendedWPFToolkit_Binaries.zip -> Properties -> Unblock
  4. Unzip the ExtendedWPFToolkit_Binaries.zip
  5. Add a using statement ("using Xceed.Wpf.Toolkit;") to the top of .cs files
  6. Add a new xmlns (for example, xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit") to the top of XAML files
  7. In your XAML, use the namespace prefix (in the above example, <xctk: ...>)

Commented Unassigned: [IntegerUpDown] InvalidOperationException thrown on double-click when IsEnabled=false [19762]

$
0
0
If you double-click on an IntegerUpDown when it is disabled, it will throw an InvalidOperationException stating: 'EditItem' is not allowed for this view.

Steps:
1. On an IntegerUpDown control in XAML, set IsEnabled="False" on the control.
2. Run your application in debug mode.
3. In the window that contains the control, double-click on the control. Observe the exception that is thrown.

I was using both IsEnable=false and IsReadOnly=true when I stumbled upon this bug. IsReadOnly=true allows the control to not be edited, and IsEnabled=false grays out the control. You only need to set IsEnabled=false to reproduce this bug. I believe it is a valid configuration to want the control set to read only AND have it grayed out. If it is grayed out, it tells the user it cannot be edited.
Comments: ** Comment from web user: michael_yanni **

Hmm. It seems I may be mistaken. I continued to test this after I submitted this bug, and found that inbetween my controls if I double click, or double click on any disabled controls, this exception occurs.

Further investigation reveals that the problem is caused because I have the controls on a DataGrid. My bad. You can delete this bug. Some more information can be found here: http://stackoverflow.com/a/5183104/1824821

Commented Unassigned: [IntegerUpDown] InvalidOperationException thrown on double-click when IsEnabled=false [19762]

$
0
0
If you double-click on an IntegerUpDown when it is disabled, it will throw an InvalidOperationException stating: 'EditItem' is not allowed for this view.

Steps:
1. On an IntegerUpDown control in XAML, set IsEnabled="False" on the control.
2. Run your application in debug mode.
3. In the window that contains the control, double-click on the control. Observe the exception that is thrown.

I was using both IsEnable=false and IsReadOnly=true when I stumbled upon this bug. IsReadOnly=true allows the control to not be edited, and IsEnabled=false grays out the control. You only need to set IsEnabled=false to reproduce this bug. I believe it is a valid configuration to want the control set to read only AND have it grayed out. If it is grayed out, it tells the user it cannot be edited.
Comments: ** Comment from web user: michael_yanni **

Yup. Problem solved. I set IsReadOnly=True for the DataGrid that the control is on, and the exception doesn't occur anymore. Please, close this issue.

Closed Unassigned: [IntegerUpDown] InvalidOperationException thrown on double-click when IsEnabled=false [19762]

$
0
0
If you double-click on an IntegerUpDown when it is disabled, it will throw an InvalidOperationException stating: 'EditItem' is not allowed for this view.

Steps:
1. On an IntegerUpDown control in XAML, set IsEnabled="False" on the control.
2. Run your application in debug mode.
3. In the window that contains the control, double-click on the control. Observe the exception that is thrown.

I was using both IsEnable=false and IsReadOnly=true when I stumbled upon this bug. IsReadOnly=true allows the control to not be edited, and IsEnabled=false grays out the control. You only need to set IsEnabled=false to reproduce this bug. I believe it is a valid configuration to want the control set to read only AND have it grayed out. If it is grayed out, it tells the user it cannot be edited.

New Comment on "Improvements200"

Updated Wiki: ChildWindow

$
0
0

ChildWindow

Starting with version 2.0, ChildWindow (and MessageBox) is derived from WindowControl and no longer manages its parent’s background or the positioning of itself based on its parent’s size. The old version of ChildWindow will remain available, but obsolete.

A WindowContainer should now be used to contain these controls. It provides an area where WindowControl-derived controls (ChildWindow or MessageBox controls) can be displayed. This is particularly interesting in an XBAP application where windows can't be popped up. In this case the WindowContainer can be sized to fit the application and the window-like control can be moved around in the WindowContainer.

The WindowContainer derives from Canvas and positions its children according to its size. Many actions performed on its children are managed by the WindowContainer (movement and positioning, resizing, visibility, modal, and mouse click). This will restrict the WindowControl movements and resizing to the WindowContainer’s size.

When no Width and Height are specified in the WindowContainer, its DesiredSize will be the size of its biggest child.

Show the dialog by calling ChildWindow.Show or by setting the ChildWindow.WindowState property.
childwindow.jpg

<xctk:WindowContainer>
  <xctk:ChildWindow WindowBackground="Blue"
                    Left="75"
                    Top="50"
                    Width="275"
                    Height="125"
                    WindowState="Open">
    <TextBlock Text="This is a Child Window" Padding="10"/>
  </xctk:ChildWindow>

  <xctk:ChildWindow WindowBackground="Green"
                    Left="175"
                    Top="125"
                    Width="275"
                    Height="125"
                    WindowState="Open">
    <TextBlock Text="This is another Child Window" Padding="10"/>
  </xctk:ChildWindow>

  <xctk:MessageBox Caption="MessageBox"
                   Text="This is a MessageBox"/>
</xctk:WindowContainer>

Public Properties / Methods / Events

Property Description
Caption Gets or sets the caption of the ChildWindow. (Inherited from Xceed.Wpf.Toolkit.Primitives.WindowControl)
CaptionForeground Gets or sets the foreground color of the caption text. (Inherited from Xceed.Wpf.Toolkit.Primitives.WindowControl)
CaptionIcon Gets or sets the caption icon. (Inherited from Xceed.Wpf.Toolkit.Primitives.WindowControl)
CaptionShadowBrush Gets or sets the brush of the caption's shadow. (Inherited from Xceed.Wpf.Toolkit.Primitives.WindowControl)
CloseButtonStyle Gets or sets the style of the ChildWindow's close button. (Inherited from Xceed.Wpf.Toolkit.Primitives.WindowControl)
CloseButtonVisibility Gets or sets the visibility of the ChildWindow's close button. (Inherited from Xceed.Wpf.Toolkit.Primitives.WindowControl)
DesignerWindowState Gets or sets the state of the ChildWindow in the designer.
DialogResult Gets or sets a value indicating whether the ChildWindow was accepted or canceled
FocusedElement Gets or sets the FrameworkElement that currently has focus.
IsActive Gets or sets whether the control is active. (Inherited from Xceed.Wpf.Toolkit.Primitives.WindowControl)
IsMaximized Gets or sets whether the control is maximized. (Inherited from Xceed.Wpf.Toolkit.Primitives.WindowControl)
IsModal Gets or sets a value indicating whether the ChildWindow is modal.
Left Gets or sets the left position of the ChildWindow. (Inherited from Xceed.Wpf.Toolkit.Primitives.WindowControl)
MaximizeButtonStyle Gets or sets the Maximize button's style. (Inherited from Xceed.Wpf.Toolkit.Primitives.WindowControl)
MinimizeButtonStyle Gets or sets the Minimize button's style. (Inherited from Xceed.Wpf.Toolkit.Primitives.WindowControl)
ResizeMode Gets or sets the resize mode. (Inherited from Xceed.Wpf.Toolkit.Primitives.WindowControl)
RestoreButtonStyle Gets or sets the Restore button's style. (Inherited from Xceed.Wpf.Toolkit.Primitives.WindowControl)
Top Gets or sets the top position of the ChildWindow. (Inherited from Xceed.Wpf.Toolkit.Primitives.WindowControl)
WindowBackground Gets or sets the background color of the ChildWindow. (Inherited from Xceed.Wpf.Toolkit.Primitives.WindowControl)
WindowBorderBrush Gets or sets the BorderBrush of the ChildWindow. (Inherited from Xceed.Wpf.Toolkit.Primitives.WindowControl)
WindowBorderThickness Gets or sets the window's border thickness. (Inherited from Xceed.Wpf.Toolkit.Primitives.WindowControl)
WindowInactiveBackground Gets or sets the window's inactive background. (Inherited from Xceed.Wpf.Toolkit.Primitives.WindowControl)
WindowOpacity Gets or sets the opacity of the ChildWindow. (Inherited from Xceed.Wpf.Toolkit.Primitives.WindowControl)
WindowStartupLocation Gets or sets the startup location of the ChildWindow.
WindowState Gets or sets the current state of the ChildWindow.
WindowStyle Gets or sets the window's style. (Inherited from Xceed.Wpf.Toolkit.Primitives.WindowControl)
WindowThickness Gets or sets the window's thickness. (Inherited from Xceed.Wpf.Toolkit.Primitives.WindowControl)


Event Description
CloseButtonClicked Raised when the Close button is clicked. (Inherited from Xceed.Wpf.Toolkit.Primitives.WindowControl)
Closed Occurs when the ChildWindow is closed.
Closing Occurs when the ChildWindow is closing.
HeaderDragDelta Occurs as the mouse changes position when a header has logical focus and mouse capture. (Inherited from Xceed.Wpf.Toolkit.Primitives.WindowControl)
HeaderIconClicked Raised when the header icon is clicked. (Inherited from Xceed.Wpf.Toolkit.Primitives.WindowControl)
HeaderIconDoubleClicked Raised when the header icon is double-clicked. (Inherited from Xceed.Wpf.Toolkit.Primitives.WindowControl)
HeaderMouseLeftButtonClicked Raised when the header is clicked using the left mouse button. (Inherited from Xceed.Wpf.Toolkit.Primitives.WindowControl)
HeaderMouseLeftButtonDoubleClicked Raised when the header is double-clicked using the left mouse button. (Inherited from Xceed.Wpf.Toolkit.Primitives.WindowControl)
HeaderMouseRightButtonClicked Raised when the header is clicked using the right mouse button. (Inherited from Xceed.Wpf.Toolkit.Primitives.WindowControl)
MaximizeButtonClicked Raised when the Maximize button is clicked. (Inherited from Xceed.Wpf.Toolkit.Primitives.WindowControl)
MinimizeButtonClicked Raised when the Minimize button is clicked. (Inherited from Xceed.Wpf.Toolkit.Primitives.WindowControl)
WindowResizeThumbDrag Raised when the window resize thumb is dragged. (Inherited from Xceed.Wpf.Toolkit.Primitives.WindowControl)



Method Description
Close Closes the ChildWindow and sets the WindowState to Closed.
OnApplyTemplate Overridden. Invoked whenever application code or internal processes call ApplyTemplate.
Show Shows the ChildWindow and sets the WindowState to Open.


Get all 60 awesome WPF controls in the Plus Edition.
---

Updated Wiki: ChildWindow

$
0
0

ChildWindow

Starting with version 2.0, ChildWindow (and MessageBox) is derived from WindowControl and no longer manages its parent’s background or the positioning of itself based on its parent’s size. The old version of ChildWindow will remain available, but obsolete.

A WindowContainer should now be used to contain these controls. It provides an area where WindowControl-derived controls (ChildWindow or MessageBox controls) can be displayed. This is particularly interesting in an XBAP application where windows can't be popped up. In this case the WindowContainer can be sized to fit the application and the window-like control can be moved around in the WindowContainer.

The WindowContainer derives from Canvas and positions its children according to its size. Many actions performed on its children are managed by the WindowContainer (movement and positioning, resizing, visibility, modal, and mouse click). This will restrict the WindowControl movements and resizing to the WindowContainer’s size.

When no Width and Height are specified in the WindowContainer, its DesiredSize will be the size of its biggest child.

Show the dialog by calling ChildWindow.Show or by setting the ChildWindow.WindowState property.
childwindow.jpg

<xctk:WindowContainer>
  <xctk:ChildWindow WindowBackground="Blue"
                    Left="75"
                    Top="50"
                    Width="275"
                    Height="125"
                    WindowState="Open">
    <TextBlock Text="This is a Child Window" Padding="10"/>
  </xctk:ChildWindow>

  <xctk:ChildWindow WindowBackground="Green"
                    Left="175"
                    Top="125"
                    Width="275"
                    Height="125"
                    WindowState="Open">
    <TextBlock Text="This is another Child Window" Padding="10"/>
  </xctk:ChildWindow>

  <xctk:MessageBox Caption="MessageBox"
                   Text="This is a MessageBox"/>
</xctk:WindowContainer>

Public Properties / Methods / Events

Property Description
Caption Gets or sets the caption of the ChildWindow. (Inherited from Xceed.Wpf.Toolkit.Primitives.WindowControl)
CaptionForeground Gets or sets the foreground color of the caption text. (Inherited from Xceed.Wpf.Toolkit.Primitives.WindowControl)
CaptionIcon Gets or sets the caption icon. (Inherited from Xceed.Wpf.Toolkit.Primitives.WindowControl)
CaptionShadowBrush Gets or sets the brush of the caption's shadow. (Inherited from Xceed.Wpf.Toolkit.Primitives.WindowControl)
CloseButtonStyle Gets or sets the style of the ChildWindow's close button. (Inherited from Xceed.Wpf.Toolkit.Primitives.WindowControl)
CloseButtonVisibility Gets or sets the visibility of the ChildWindow's close button. (Inherited from Xceed.Wpf.Toolkit.Primitives.WindowControl)
DesignerWindowState Gets or sets the state of the ChildWindow in the designer.
DialogResult Gets or sets a value indicating whether the ChildWindow was accepted or canceled
FocusedElement Gets or sets the FrameworkElement that currently has focus.
IsActive Gets or sets whether the control is active. (Inherited from Xceed.Wpf.Toolkit.Primitives.WindowControl)
IsMaximized Gets or sets whether the control is maximized. (Inherited from Xceed.Wpf.Toolkit.Primitives.WindowControl)
IsModal Gets or sets a value indicating whether the ChildWindow is modal.
Left Gets or sets the left position of the ChildWindow. (Inherited from Xceed.Wpf.Toolkit.Primitives.WindowControl)
MaximizeButtonStyle Gets or sets the Maximize button's style. (Inherited from Xceed.Wpf.Toolkit.Primitives.WindowControl)
MinimizeButtonStyle Gets or sets the Minimize button's style. (Inherited from Xceed.Wpf.Toolkit.Primitives.WindowControl)
ResizeMode Gets or sets the resize mode. (Inherited from Xceed.Wpf.Toolkit.Primitives.WindowControl)
RestoreButtonStyle Gets or sets the Restore button's style. (Inherited from Xceed.Wpf.Toolkit.Primitives.WindowControl)
Top Gets or sets the top position of the ChildWindow. (Inherited from Xceed.Wpf.Toolkit.Primitives.WindowControl)
WindowBackground Gets or sets the background color of the ChildWindow. (Inherited from Xceed.Wpf.Toolkit.Primitives.WindowControl)
WindowBorderBrush Gets or sets the BorderBrush of the ChildWindow. (Inherited from Xceed.Wpf.Toolkit.Primitives.WindowControl)
WindowBorderThickness Gets or sets the window's border thickness. (Inherited from Xceed.Wpf.Toolkit.Primitives.WindowControl)
WindowInactiveBackground Gets or sets the window's inactive background. (Inherited from Xceed.Wpf.Toolkit.Primitives.WindowControl)
WindowOpacity Gets or sets the opacity of the ChildWindow. (Inherited from Xceed.Wpf.Toolkit.Primitives.WindowControl)
WindowStartupLocation Gets or sets the startup location of the ChildWindow.
WindowState Gets or sets the current state of the ChildWindow.
WindowStyle Gets or sets the window's style. (Inherited from Xceed.Wpf.Toolkit.Primitives.WindowControl)
WindowThickness Gets or sets the window's thickness. (Inherited from Xceed.Wpf.Toolkit.Primitives.WindowControl)


Event Description
CloseButtonClicked Raised when the Close button is clicked. (Inherited from Xceed.Wpf.Toolkit.Primitives.WindowControl)
Closed Occurs when the ChildWindow is closed.
Closing Occurs when the ChildWindow is closing.
HeaderDragDelta Occurs as the mouse changes position when a header has logical focus and mouse capture. (Inherited from Xceed.Wpf.Toolkit.Primitives.WindowControl)
HeaderIconClicked Raised when the header icon is clicked. (Inherited from Xceed.Wpf.Toolkit.Primitives.WindowControl)
HeaderIconDoubleClicked Raised when the header icon is double-clicked. (Inherited from Xceed.Wpf.Toolkit.Primitives.WindowControl)
HeaderMouseLeftButtonClicked Raised when the header is clicked using the left mouse button. (Inherited from Xceed.Wpf.Toolkit.Primitives.WindowControl)
HeaderMouseLeftButtonDoubleClicked Raised when the header is double-clicked using the left mouse button. (Inherited from Xceed.Wpf.Toolkit.Primitives.WindowControl)
HeaderMouseRightButtonClicked Raised when the header is clicked using the right mouse button. (Inherited from Xceed.Wpf.Toolkit.Primitives.WindowControl)
MaximizeButtonClicked Raised when the Maximize button is clicked. (Inherited from Xceed.Wpf.Toolkit.Primitives.WindowControl)
MinimizeButtonClicked Raised when the Minimize button is clicked. (Inherited from Xceed.Wpf.Toolkit.Primitives.WindowControl)
WindowResizeThumbDrag Raised when the window resize thumb is dragged. (Inherited from Xceed.Wpf.Toolkit.Primitives.WindowControl)



Method Description
Close Closes the ChildWindow and sets the WindowState to Closed.
OnApplyTemplate Overridden. Invoked whenever application code or internal processes call ApplyTemplate.
Show Shows the ChildWindow and sets the WindowState to Open.


Get all 50+ awesome WPF controls in the Plus Edition.
---

Updated Wiki: MessageBox

$
0
0

MessageBox

Starting with version 2.0, MessageBox (and ChildWindow) is derived from WindowControl and no longer manages its parent’s background or the positioning of itself based on its parent’s size.

A WindowContainer should now be used to contain these controls. It provides an area where WindowControl-derived controls (ChildWindow or MessageBox controls) can be displayed. This is particularly interesting in an XBAP application where windows can't be popped up. In this case the WindowContainer can be sized to fit the application and the window-like control can be moved around in the WindowContainer.

The WindowContainer derives from Canvas and positions its children according to its size. Many actions performed on its children are managed by the WindowContainer (movement and positioning, resizing, visibility, modal, and mouse click). This will restrict the WindowControl movements and resizing to the WindowContainer’s size.

When no Width and Height are specified in the WindowContainer, its DesiredSize will be the size of its biggest child.


Buttons
messagebox_buttons.jpg

Icons
messagebox_icons.jpg

Usage

The MessageBox mimics the behavior of the System.Windows.MessageBox closely. You use similar syntax to create and show a message box.

      MessageBoxResult result =  Microsoft.Windows.Controls.MessageBox.Show("Hello world!", "Extended WPF ToolKit MessageBox", MessageBoxButton.OK, MessageBoxImage.Question);
      MessageBoxResult result =  Microsoft.Windows.Controls.MessageBox.Show("Hello world!", "Extended WPF ToolKit MessageBox", MessageBoxButton.OK);
      MessageBoxResult result =  Microsoft.Windows.Controls.MessageBox.Show("Hello world!", "Extended WPF ToolKit MessageBox");
      MessageBoxResult result =  Microsoft.Windows.Controls.MessageBox.Show("Hello world!");


Style Guide

You can style the MessageBox to fit the theme of your application by using a few of the MessageBox's properties. The following image depicts what properties modify which parts of the MessageBox control.
messagebox_style_guide.jpg

Public Properties / Events / Methods

Property Description
ButtonRegionBackground Gets or sets the background of the region behind the message box buttons.
CancelButtonContent Gets or sets the content of the Cancel button.
CancelButtonStyle Gets or sets the style of the Cancel button.
Caption Gets or sets the caption of the message box. (Inherited from Xceed.Wpf.Toolkit.Primitives.WindowControl)
CaptionForeground Gets or sets the font color of the caption. (Inherited from Xceed.Wpf.Toolkit.Primitives.WindowControl)
CaptionIcon Gets or sets the caption icon. (Inherited from Xceed.Wpf.Toolkit.Primitives.WindowControl)
CaptionShadowBrush Gets or sets the brush of the caption's shadow. (Inherited from Xceed.Wpf.Toolkit.Primitives.WindowControl)
CloseButtonStyle Gets or sets the style of the close button. (Inherited from Xceed.Wpf.Toolkit.Primitives.WindowControl)
CloseButtonVisibility Gets or sets the visibility of the Close button. (Inherited from Xceed.Wpf.Toolkit.Primitives.WindowControl)
ImageSource Gets or sets the ImageSource.
IsActive Gets or sets whether the control is active. (Inherited from Xceed.Wpf.Toolkit.Primitives.WindowControl)
IsMaximized Gets or sets whether the control is maximized. (Inherited from Xceed.Wpf.Toolkit.Primitives.WindowControl)
Left Gets or sets the left side of the control. (Inherited from Xceed.Wpf.Toolkit.Primitives.WindowControl)
MaximizeButtonStyle Gets or sets the Maximize button's style. (Inherited from Xceed.Wpf.Toolkit.Primitives.WindowControl)
MessageBoxResult Gets the MessageBox result, which is set when the Closed event is raised.
MinimizeButtonStyle Gets or sets the Minimize button's style. (Inherited from Xceed.Wpf.Toolkit.Primitives.WindowControl)
NoButtonContent Gets or sets the content of the No button.
NoButtonStyle Gets or sets the style of the No button.
OkButtonContent Gets or sets the content of the OK button.
OkButtonStyle Gets or sets the OK button's style.
ResizeMode Gets or sets the resize mode. (Inherited from Xceed.Wpf.Toolkit.Primitives.WindowControl)
RestoreButtonStyle Gets or sets the Restore button's style. (Inherited from Xceed.Wpf.Toolkit.Primitives.WindowControl)
Text Gets or sets the text of the message box.
Top Gets or sets the top side of the control. (Inherited from Xceed.Wpf.Toolkit.Primitives.WindowControl)
WindowBackground Gets or sets the background color of the MessageBox window. (Inherited from Xceed.Wpf.Toolkit.Primitives.WindowControl)
WindowBorderBrush Gets or sets the color of the outer border of the MessageBox. (Inherited from Xceed.Wpf.Toolkit.Primitives.WindowControl)
WindowBorderThickness Gets or sets the window's border thickness. (Inherited from Xceed.Wpf.Toolkit.Primitives.WindowControl)
WindowInactiveBackground Gets or sets the window's inactive background. (Inherited from Xceed.Wpf.Toolkit.Primitives.WindowControl)
WindowOpacity Gets or sets the opacity of the MessageBox, but does not effect the close button or the message text area. (Inherited from Xceed.Wpf.Toolkit.Primitives.WindowControl)
WindowStyle Gets or sets the window's style. (Inherited from Xceed.Wpf.Toolkit.Primitives.WindowControl)
WindowThickness Gets or sets the window's thickness. (Inherited from Xceed.Wpf.Toolkit.Primitives.WindowControl)
YesButtonContent Gets or sets the content of the Yes button.
YesButtonStyle Gets or sets the Yes button's style.



Event Description
CloseButtonClicked Raised when the Close button is clicked. (Inherited from Xceed.Wpf.Toolkit.Primitives.WindowControl)
Closed Raised when the message box is closed.
HeaderDragDelta Occurs as the mouse changes position when a header has logical focus and mouse capture. (Inherited from Xceed.Wpf.Toolkit.Primitives.WindowControl)
HeaderIconClicked Raised when the header icon is clicked. (Inherited from Xceed.Wpf.Toolkit.Primitives.WindowControl)
HeaderIconDoubleClicked Raised when the header icon is double-clicked. (Inherited from Xceed.Wpf.Toolkit.Primitives.WindowControl)
HeaderMouseLeftButtonClicked Raised when the header is clicked using the left mouse button. (Inherited from Xceed.Wpf.Toolkit.Primitives.WindowControl)
HeaderMouseLeftButtonDoubleClicked Raised when the header is double-clicked using the left mouse button. (Inherited from Xceed.Wpf.Toolkit.Primitives.WindowControl)
HeaderMouseRightButtonClicked Raised when the header is clicked using the right mouse button. (Inherited from Xceed.Wpf.Toolkit.Primitives.WindowControl)
MaximizeButtonClicked Raised when the Maximize button is clicked. (Inherited from Xceed.Wpf.Toolkit.Primitives.WindowControl)
MinimizeButtonClicked Raised when the Minimize button is clicked. (Inherited from Xceed.Wpf.Toolkit.Primitives.WindowControl)
WindowResizeThumbDrag Raised when the window resize thumb is dragged. (Inherited from Xceed.Wpf.Toolkit.Primitives.WindowControl)



Method Description
OnApplyTemplate Overridden. Builds the visual tree for the element.
Show Overloaded. Displays a message box.
ShowDialog Display the MessageBox window and returns only when this MessageBox closes.
ShowMessageBox Overloaded. Displays this message box when embedded in a WindowContainer parent.

Example
You can style all instances of your MessageBox control by placing the style definition markup inside your App.xaml file under the resources section. To create the following ugly style requires the following markup.

style_example.jpg

<SolidColorBrush x:Key="MyButtonHoverBrush" Color="YellowGreen" />
        <SolidColorBrush x:Key="MyButtonPressedBrush" Color="Maroon" />
        
        <Style x:Key="MyCloseButtonStyle" TargetType="Button">
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="Button">
                        <Grid>
                            <VisualStateManager.VisualStateGroups>
                                <VisualStateGroup x:Name="CommonStates">
                                    <VisualState x:Name="Normal"/>
                                    <VisualState x:Name="MouseOver">
                                        <Storyboard>
                                            <ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="Background" Storyboard.TargetProperty="(Border.Background)">
                                                <DiscreteObjectKeyFrame KeyTime="00:00:00" Value="{StaticResource MyButtonHoverBrush}"></DiscreteObjectKeyFrame>
                                            </ObjectAnimationUsingKeyFrames>
                                        </Storyboard>
                                    </VisualState>
                                    <VisualState x:Name="Pressed">
                                        <Storyboard>
                                            <ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="Background" Storyboard.TargetProperty="(Border.Background)">
                                                <DiscreteObjectKeyFrame KeyTime="00:00:00" Value="{StaticResource MyButtonPressedBrush}"></DiscreteObjectKeyFrame>
                                            </ObjectAnimationUsingKeyFrames>
                                        </Storyboard>
                                    </VisualState>
                                </VisualStateGroup>
                            </VisualStateManager.VisualStateGroups>
                            <Border x:Name="Background" CornerRadius="0,0,2,0" Background="Green">
                                <Border Margin="1,0,1,1" BorderBrush="#59FFFFFF" BorderThickness="1" CornerRadius="0,0,1,0"/>
                            </Border>
                            <ContentPresenter x:Name="contentPresenter" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" Content="{TemplateBinding Content}" ContentTemplate="{TemplateBinding ContentTemplate}"/>
                            <Path x:Name="path" Fill="White" Margin="0,0,0,1" Visibility="Collapsed"
	                Height="6"
		Width="7"
		Stretch="Fill"
		Opacity="1"
		Data="M 2,6 C2,6 3,6 3,6 3,6 3,5 3,5 3,5 4,5 4,5 4,5 4,6 4,6 4,6 5,6 5,6 5,6 7,6 7,6 7,6 7,5 7,5 7,5 6,5 6,5 6,5 6,4 6,4 6,4 5,4 5,4 5,4 5,2 5,2 5,2 6,2 6,2 6,2 6,1 6,1 6,1 7,1 7,1 7,1 7,0 7,0 7,0 5,0 5,0 5,0 4,0 4,0 4,0 4,1 4,1 4,1 3,1 3,1 3,1 3,0 3,0 3,0 2,0 2,0 2,0 0,0 0,0 0,0 0,1 0,1 0,1 1,1 1,1 1,1 1,2 1,2 1,2 2,2 2,2 2,2 2,4 2,4 2,4 1,4 1,4 1,4 1,5 1,5 1,5 0,5 0,5 0,5 0,6 0,6 0,6 2,6 2,6 z"/>
                        </Grid>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>
        
        <Style TargetType="{x:Type toolkit:MessageBox}">
            <Setter Property="Background" Value="Aquamarine" />
            <Setter Property="BorderBrush" Value="Red" />
            <Setter Property="CaptionForeground" Value="Orange" />
            <Setter Property="WindowBorderBrush" Value="Blue" />
            <Setter Property="WindowBackground" Value="Green" />
            <Setter Property="WindowOpacity" Value="0.3" />
            <Setter Property="Foreground" Value="Purple"/>
            <Setter Property="CloseButtonStyle" Value="{StaticResource MyCloseButtonStyle}"/>
        </Style>



Get 50+ awesome WPF controls in the Plus Edition.
---

New Post: DatagridControl: Sort update on content proprety change

$
0
0
Hi,

I am trying to get the content of my datagrid sorted on a property changed event of one of the object contained in the grid. e.g. a simple timestamp.

The objects implement INotifyPropertyChanged and publish the notification when the property if modified.
Objects are stored in a Sortable BindingList, inherited from BindingList.

Sadly the datagrid is not updating the sort when the property is modified.

Am I missing something ?

Thanks in advance.

New Post: DatagridControl: Sort update on content proprety change

$
0
0
Ok, I was indeed missing something ... Encapsulating my BindingList in a DataGridCollectionViewSource solved my problem !

New Post: Multiple fixes Patch...

$
0
0
I've updated my multiple fixes patch for V2.0

it contains:
  • A WPF 4.5 Solution with Virtualisation support for PropertyGrid
  • GUID support for PropertyGrid
  • char support for PropertyGrid
  • TimeSpan support for PropertyGrid (This ws possible before, but only with TimeSpan's smaler than a Day)
  • A TimeSpan Editor control
  • PropertyGrid Preview for WPF Controls
Download here:
http://ziehen.net/?f=Nw835a4rMDxrvp7SrBFK

maybe at some time this will be included in the main Project (i hope it since 3 Versions)

Created Unassigned: Issue with .Net 3.5 version [19772]

$
0
0
Hello,

I am evaluating the .Net 3.5 version of the Extended WPF Toolkit.

So I open the sln file located in directory ExtendedWPFToolkitSolution_35 with Visual Studio 2008.

When compiling, I have several errors (see attached files)

Commented Unassigned: Issue with .Net 3.5 version [19772]

$
0
0
Hello,

I am evaluating the .Net 3.5 version of the Extended WPF Toolkit.

So I open the sln file located in directory ExtendedWPFToolkitSolution_35 with Visual Studio 2008.

When compiling, I have several errors (see attached files)
Comments: ** Comment from web user: Eric03 **

screenshots of errors in VS2008

Commented Unassigned: Issue with .Net 3.5 version [19772]

$
0
0
Hello,

I am evaluating the .Net 3.5 version of the Extended WPF Toolkit.

So I open the sln file located in directory ExtendedWPFToolkitSolution_35 with Visual Studio 2008.

When compiling, I have several errors (see attached files)
Comments: ** Comment from web user: Eric03 **

more files


Commented Unassigned: Issue with .Net 3.5 version [19772]

$
0
0
Hello,

I am evaluating the .Net 3.5 version of the Extended WPF Toolkit.
For my application, migrating to .Net 4.0 is, unfortunatly, not an option for historical reasons...

So I open the sln file located in directory ExtendedWPFToolkitSolution_35 with Visual Studio 2008.

When compiling, I have several errors (see attached files : build.log and screenshots of VS2008)

Important information : My machine doesn't have VS2010 installed. When I try to compile the ExtendedWPFToolkitSolution_35 solution with VS2008 on a machine with 2010 installed, the compilation is ok. However, I didn't try to run it.

Thank you for this nice toolkit with so many great features. And thank you for maintening compatibility with the .Net 3.5 framework.

Regards,
Comments: ** Comment from web user: emartin **

The .net 3.5 version of the toolkit depends on the .net 3.5 WPF Toolkit (the one developed by microsoft) mainly to support the VisualStateManager and some other component like the DatePicker.

Just download the binaries of the .net 3.5 version here:
http://wpftoolkit.codeplex.com/downloads/get/679522

And get the WPFToolkit.dll file. Refer it in your Xceed.Wpf.Toolkit project and it should compile

Leave a comment if this fix the issue so I can close it.

Created Unassigned: SelectorItem in classic theme [19774]

$
0
0
CheckListBox and CheckComboBox have problems with the classic Windows theme when the mouse is over one of the items.
The problem is that the check mark is drawn using the Foreground color in Classic.xaml:
``` XAML
<Style x:Key="{x:Type CheckBox}"
TargetType="{x:Type CheckBox}">
...
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type CheckBox}">
<BulletDecorator ...>
<BulletDecorator.Bullet>
<theme:ClassicBorderDecorator x:Name="CheckMark"
Background="{TemplateBinding Background}" ...>
<Path x:Name="CheckMarkPath"
Margin="1,1,1,1" Width="7" Height="7" FlowDirection="LeftToRight"
Fill="{TemplateBinding Foreground}"
Data="M 0 2.0 L 0 4.8 L 2.5 7.4 L 7.1 2.8 L 7.1 0 L 2.5 4.6 Z"/>
...
```

The default style for the SelectorItem sets the Foreground color to HighlightTextBrushKey (which defaults to white) when the cursor is over, so the check mark is white on white which looks as if the check box is not checked even if you just clicked on it:
```
<Style TargetType="{x:Type primitives:SelectorItem}">
...
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type primitives:SelectorItem}">
...
<ControlTemplate.Triggers>
<Trigger Property="IsMouseOver" Value="true">
<Setter TargetName="_background" Property="Background" Value="{DynamicResource {x:Static SystemColors.HighlightBrushKey}}" />
<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.HighlightTextBrushKey}}" />
</Trigger>
...
```

So highlighted items always look as if they are not checked.

Commented Unassigned: Issue with .Net 3.5 version [19772]

$
0
0
Hello,

I am evaluating the .Net 3.5 version of the Extended WPF Toolkit.
For my application, migrating to .Net 4.0 is, unfortunatly, not an option for historical reasons...

So I open the sln file located in directory ExtendedWPFToolkitSolution_35 with Visual Studio 2008.

When compiling, I have several errors (see attached files : build.log and screenshots of VS2008)

Important information : My machine doesn't have VS2010 installed. When I try to compile the ExtendedWPFToolkitSolution_35 solution with VS2008 on a machine with 2010 installed, the compilation is ok. However, I didn't try to run it.

Thank you for this nice toolkit with so many great features. And thank you for maintening compatibility with the .Net 3.5 framework.

Regards,
Comments: ** Comment from web user: emartin **

The xaml parser used by Visual Studio to detect errors "live" without compilation is not very reliable. If it compile, the reference works.... just ignore theses.

Closed Unassigned: Issue with .Net 3.5 version [19772]

$
0
0
Hello,

I am evaluating the .Net 3.5 version of the Extended WPF Toolkit.
For my application, migrating to .Net 4.0 is, unfortunatly, not an option for historical reasons...

So I open the sln file located in directory ExtendedWPFToolkitSolution_35 with Visual Studio 2008.

When compiling, I have several errors (see attached files : build.log and screenshots of VS2008)

Important information : My machine doesn't have VS2010 installed. When I try to compile the ExtendedWPFToolkitSolution_35 solution with VS2008 on a machine with 2010 installed, the compilation is ok. However, I didn't try to run it.

Thank you for this nice toolkit with so many great features. And thank you for maintening compatibility with the .Net 3.5 framework.

Regards,

Updated Wiki: IntegerUpDown

$
0
0

IntegerUpDown

The IntegerUpDown control provides a TextBox with button spinners that allow incrementing and decrementing Nullable<int> values by using the spinner buttons, keyboard up/down arrows, or mouse wheel.

Usage

integerupdown.jpg

When using the IntegerUpDown in data binding scenarios, bind your object's value to the Value property. You can specify how much to increment the value by setting the Increment property. You can control the minimum and maximum allowed values by setting the Minimum and the Maximum properties. If you would like to get the actual fromatted string representation of the value, you can use the Text property.

Applying FormatStrings

Default:
integerupdown_default.jpg
<xctk:IntegerUpDown Value="1564" />


Number:
integerupdown_number.jpg
<xctk:IntegerUpDown FormatString="N0" Value="1564" Increment="1" Maximum="200000"/>


Currency:
integerupdown_currency.jpg
<xctk:IntegerUpDown FormatString="C0" Value="1564" Increment="1" Maximum="5000" Minimum="50"/>



Supported Format Strings

Format Specifier Name
C Currency
F Fixed Point
G General
N Number
P Percent


Watermark

You can provide a Watermark to show text in place of a NULL Value.

integerupdown_watermark.jpg
<xctk:IntegerUpDown Watermark="Enter Integer" />


Properties / Events

Property Description
AllowSpin Gets/Sets the ability to perform increment/decrement operations via the keyboard, button spinners, or mouse wheel.
CultureInfo Gets/Sets the current CultureInfo.
DefaultValue Get/Sets the value to use when the Value is null and an increment/decrement operation is performed.
FormatString Gets/Sets the dispaly format of the Value.
Increment Specifies the amount in which to increment the value.
IsReadOnly Gets/Sets a value indicating whether the control is read only.
Maximum Gets/Sets the maximum allowed value.
Mimum Gets/Sets the minimum allowed value.
MouseWheelActiveOnFocus Gets/Sets if the control must have focus in order for the mouse wheel to incement/decrement the value. True by default.
SelectAllOnGotFocus If set to true, all text is selected when control gets focus.
ShowButtonSpinner Gets/Sets if the button spinners are visible.
Text Gets/Sets the formated string representation of the value.
TextAlignment Gets/Sets the alignment of the Text.
Value Gets/Sets the numeric value.
Watermark Gets/Sets the object to use as a watermark if the Value is null.
WatermarkTemplate Gets/Sets the DatTemplate to use for the Watermark.


Event Description
ValueChanged Occurs when the Value changes.
Viewing all 4964 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>