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

New Post: Toolkit Controls in a Toolbar

$
0
0
In my WPF application I have a toolbar which contains an IntegerUpDown and a DropDownButton. The problem is that the IntegerUpDown looks very different than the TextBox I have in the same toolbar. Also the DropDownButton has a completely different style than the standard Button in the toolbar.

What is the easiest way to assign the default ToolBar TextBox style to an IntegerUpDown and the default ToolBar Button style to a DropDownButton?

New Post: Toolkit Controls in a Toolbar

$
0
0
I tried these but they don't work because the type of the control does not match:
Style="{StaticResource {x:Static ToolBar.TextBoxStyleKey}}"
Style="{StaticResource {x:Static ToolBar.ButtonStyleKey}}"

New Post: Toolkit Controls in a Toolbar

$
0
0
Hi,

What is so different in the style of TextBox vs IntegerUpDown and Button vs DropDownButton ? I'm using Windows 8.1 and they all have the gray look with lignt blue when mouseover or pressed. :
<Grid>
      <ToolBar Height="200" Width="150">
         <StackPanel>
            <TextBox Text="Regular TextBox" />
            <xctk:IntegerUpDown Value="25" />
            <Button Content="Regular Button" />
            <xctk:DropDownButton Content="My Drop Down" />
         </StackPanel>
      </ToolBar>
   </Grid>
Can you add an image or code ? What system are you using ?

New Post: Toolkit Controls in a Toolbar

$
0
0
You're right, in your case they look the same (probably because the controls are inside a StackPanel? or because the ToolBar is not inside a ToolBarTray?).

Usually I create my toolbars like this:
<Window x:Class="StyleTest.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit"
        Title="MainWindow" Height="100" Width="500">
    <DockPanel>
        <ToolBarTray DockPanel.Dock="Top">
            <ToolBar ToolBarTray.IsLocked="True" >
                <TextBox Width="70" Text="TextBox" />
                <xctk:IntegerUpDown Width="70" Value="100" />
                <Button>Button</Button>
                <xctk:DropDownButton>DropDownButton</xctk:DropDownButton>
            </ToolBar>
        </ToolBarTray>
    </DockPanel>
</Window>
In this case the TextBox and the Button change to a flat appearance (which is what I want) but the Toolkit controls keep their default non-flat style. I'm using Windows 7.

Commented Issue: CheckedListBox SelectedItems binding not work in datatemplate [18431]

$
0
0
When I create checkedListBox directly (without datatemplate) SelectedItems binding works great. But if I create CheckedListBox in datatemplate like this
 
<ContentControl Content="{Binding}" Grid.Column="1">
<ContentControl.ContentTemplate>
<DataTemplate>
<xctk:CheckListBox
ItemsSource="{Binding TestItems}"
SelectedItems="{Binding CheckedItems}"/>
</DataTemplate>
</ContentControl.ContentTemplate>
</ContentControl>
 
SelectedItems binding totaly fails
Comments: ** Comment from web user: thelehehmanlip **

I've seen many posts saying this is fixed in later versions, but i'm having the same issue in v2.1. Is this still a bug? What's the workaround? Why does this keep getting broken?

Created Feature: UIAutomation for PropertyGrid [20961]

$
0
0
Would get the detail informations of the properties in the PropertyGrid control.

Commented Issue: CheckedListBox SelectedItems binding not work in datatemplate [18431]

$
0
0
When I create checkedListBox directly (without datatemplate) SelectedItems binding works great. But if I create CheckedListBox in datatemplate like this
 
<ContentControl Content="{Binding}" Grid.Column="1">
<ContentControl.ContentTemplate>
<DataTemplate>
<xctk:CheckListBox
ItemsSource="{Binding TestItems}"
SelectedItems="{Binding CheckedItems}"/>
</DataTemplate>
</ContentControl.ContentTemplate>
</ContentControl>
 
SelectedItems binding totaly fails
Comments: ** Comment from web user: BoucherS **

Hi,

Using v2.1 and SelectedItemsOverride is working. Based on the sample in this thread, here are the steps to make it work. No workaround needed :
```
<Window.DataContext>
<local:ListBoxViewModel />
</Window.DataContext>
<Grid>
<ContentControl x:Name="_contentControl"
Content="{Binding}">
<ContentControl.ContentTemplate>
<DataTemplate>
<xctk:CheckListBox ItemsSource="{Binding TestItems}"
SelectedItemsOverride="{Binding CheckedItems}" />
</DataTemplate>
</ContentControl.ContentTemplate>
</ContentControl>
</Grid>

public class ListBoxViewModel
{
ObservableCollection<string> _testItems;
ObservableCollection<string> _selectedItems;
public ObservableCollection<string> TestItems
{
get
{
return _testItems;
}
}

public ObservableCollection<string> CheckedItems
{
get
{
return _selectedItems;
}
}

public ListBoxViewModel()
{
_testItems = new ObservableCollection<string>();
_selectedItems = new ObservableCollection<string>();

for( int i = 0 ; i < 20 ; i++ )
_testItems.Add( "Test item " + i );

_selectedItems.Add( _testItems[ 4 ] );
}
}
```

New Post: Translation Colorpicker

$
0
0
After 3 years... could you PLEASE (!!!) add two string dependency properties to allow us to localize the "Advanced" and "Standard" text? This work can be done in less than 5 minutes. Please! There are more languages than English around the world and makes no fun to always manually make those changes to your latest source code to get the latest vesion of your contorls ;-) Thanks! :-)

New Post: Toolkit Controls in a Toolbar

$
0
0
Hi,

Yes, removing the StackPanel changes the style of the Button and the textbox to use the ToolBar.TextBoxStyle and ToolBar.ButtonStyle. Unfortunately, the Toolkit's controls don't have a Toolbar style.

I believe redefining the style of the DropDownButton and IntegerUpDown would do the job. These files are located here :

-Xceed.Wpf.Toolkit/NumericUpDown/Themes/Generic.xaml
-Xceed.Wpf.Toolkit/DropDownButton/Themes/Generic.xaml

New Post: Translation Colorpicker

$
0
0
Hi,

You are right, there are more languages than English around the world. But if properties are added for the ColorPicker to manage localization, there should be the same for all text in all the controls of the toolkit : which would make a bunch of new properties.

This feature is part of the issue https://wpftoolkit.codeplex.com/workitem/19306. Please vote for it in order to put it on top of the list :-)

Commented Issue: ColorPicker: Allow Localization [19306]

$
0
0
Extracted from this discussion:
http://wpftoolkit.codeplex.com/discussions/430383
-------------------------
Hi, I wanna use ColorPicker, however, the default language was english. I prefer other language, how i can set?or is there any way that i can set the text in the control?
Comments: ** Comment from web user: BoucherS **

Discussion https://wpftoolkit.codeplex.com/discussions/256785 also refers to this.

New Post: ChildWindow Focus

$
0
0
I have an issue with using a non-modal ChildWindow. It seems to lose and gain focus when clicking on the window. This is most noticable with a selected CheckBox in the ChildWindow. (I can post some XAML for the reproduction if needed).

This change in WindowContainer.cs fixes the issue.
    private void SetActiveWindow( WindowControl windowControl )
    {
      foreach( WindowControl window in this.Children )
      {
        if ( window != windowControl )
        {
          window.SetIsActiveInternal( false );
        }
      }
      windowControl.SetIsActiveInternal( true );
    }

New Post: ChildWindow Title Bar in windows 8

$
0
0
Hi,

I have problem with childwindow title bar in windows 8.

Image

http://s22.postimg.org/iy848g7o1/Windows_7_Style.jpg

its working fine in windows 7 as show in the below image.

Image
http://s21.postimg.org/5w0vvl9o7/Windows_8_Style.jpg

Please let me know how to get rid of the title bar in window 8.

XAML i have used ....
 xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" IsModal="True"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" WindowStartupLocation="Center"
         xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit" WindowThickness="0"
         WindowStyle="None"  BorderThickness="0" BorderBrush="#3399cc" 
         Background="#9eceec" Closing="ChildWindow_Closing" KeyDown="Window_KeyDown"

Created Unassigned: Up/Down on Keyboard not working for DataTimePicker [20963]

$
0
0
I've seen [this resolved bug](http://wpftoolkit.codeplex.com/workitem/20269), but I have the exact issue in my computer.

Mouse wheel (when mouse is over the DataTimePicker control) does work.
but keyboard Up/Down buttons do nothing.

I've tried to specify _CultureInfo="en-GB"_ but it changed nothing.

Created Unassigned: custom button in wizard [20966]

$
0
0
hi
how to add custom button in wizard?
example: First-page-button

when click on this button go to intro page

thank you

New Post: ChildWindow Focus

$
0
0
Hi,

Can you paste some xaml that shows the bug please ? I'm trying a WindowContainer with 2 childWindows, each of them having a CheckBox. Clicking on ChildWindows to change the focus doesn't change the look (lose an gain focus). What version of the toolkit are you using ?

Thank you.

New Post: ChildWindow Title Bar in windows 8

$
0
0
Hi,

I'm using v2.1 of the toolkit with windows8 and I don't see the title bar. Here's my complete XAML and the resulting image :
<xctk:WindowContainer x:Name="_windowContainer">
         <xctk:ChildWindow x:Name="_childWindow"
                           Caption="My ChildWindow"
                           IsModal="True"
                           WindowStartupLocation="Center"
                           WindowState="Open"
                           WindowThickness="0"
                           WindowStyle="None"
                           BorderThickness="0"
                           BorderBrush="#3399cc"
                           Background="#9eceec">
            <StackPanel>
               <TextBlock Text="This is a regular Child Window"
                          Padding="10" />
               <CheckBox Content="MyCheck" />
            </StackPanel>
         </xctk:ChildWindow>
</xctk:WindowContainer>
http://s14.postimg.org/j271fpkxd/child_Window.jpg

Commented Unassigned: Up/Down on Keyboard not working for DataTimePicker [20963]

$
0
0
I've seen [this resolved bug](http://wpftoolkit.codeplex.com/workitem/20269), but I have the exact issue in my computer.

Mouse wheel (when mouse is over the DataTimePicker control) does work.
but keyboard Up/Down buttons do nothing.

I've tried to specify _CultureInfo="en-GB"_ but it changed nothing.

VS2012, Win8, Version 2.1.0.0
Comments: ** Comment from web user: BoucherS **

Hi,

In v2.1 of the toolkit, using the following XAML
```
<xctk:DateTimePicker CultureInfo="en-GB" />
```
I can change the date parts with the mouseWheel AND the Keyboard up/down buttons, when a date part is selected. Do you have more info on this ?

VS2102 Update4, Windows 8.1, toolkit v2.1

New Post: Property Grid: Displaying enums in combobox

$
0
0
Hi!

In our propertygrid, I'm currently utilizing the default behavior of displaying an enumeration as a combobox in our default style. But, when I add an editortemplatedefinition, such as this:

<xctk:EditorTemplateDefinition >
<xctk:EditorTemplateDefinition.TargetProperties>
              <xctk:TargetPropertyType Type="{x:Type sys:Enum}" />
            </xctk:EditorTemplateDefinition.TargetProperties>
            <xctk:EditorTemplateDefinition.EditingTemplate>
              <DataTemplate>
                <ComboBox>
                <ComboBox.ItemTemplate>
                    <DataTemplate>
                        <ComboBox ItemsSource="{Binding Value}" IsEditable="True"/>
                    </DataTemplate>
                </ComboBox.ItemTemplate>
                </ComboBox>
              </DataTemplate>
            </xctk:EditorTemplateDefinition.EditingTemplate>
          </xctk:EditorTemplateDefinition>
A lot of things don't seem to work. Can you provide the default template you are using (for an enumeration) if a custom editor template definition isn't supplied?

Or, perhaps, you can answer my real question: I would like to have our combobox display enum strings that come from our resource file so that they can be translatable. I was looking to use a typeconverter, like this: http://stackoverflow.com/questions/796607/how-do-i-have-an-enum-bound-combobox-with-custom-string-formatting-for-enum-valu . Do you have any examples of the best way to do this?

Thanks!
   -Glenn  

Commented Unassigned: custom button in wizard [20966]

$
0
0
hi
how to add custom button in wizard?
example: First-page-button

when click on this button go to intro page

thank you
Comments: ** Comment from web user: BoucherS **

Hi,

If you want to display a button that when clicked starts the Wizard, you can use the button's click event to create a window containing the wizard. An example of this behavior is available in the "LiveExplorer App" that can be found on this page : https://wpftoolkit.codeplex.com/.

If you want the button to be part of the wizard, Here's how you could do it :
```
<xctk:Wizard x:Name="_wizard"
NextButtonVisibility="Collapsed"
BackButtonVisibility="Collapsed"
HelpButtonVisibility="Collapsed"
CancelButtonVisibility="Collapsed"
FinishButtonVisibility="Collapsed">
<xctk:WizardPage Title="Welcome to my Wizard"
Description="This Wizard will walk you though how to do something.">
<Button Content="FirstPageButton"
Width="150"
Height="25"
Click="Button_Click" />
</xctk:WizardPage>
<xctk:WizardPage PageType="Interior"
Title="Page 1"
CanSelectPreviousPage="False"
Description="This is the first page in the process." />
<xctk:WizardPage PageType="Interior"
Title="Page 2"
Description="This is the second page in the process" />
<xctk:WizardPage PageType="Interior"
Title="Last Page"
Description="This is the last page in the process"
CanFinish="True" />
</xctk:Wizard>

private void Button_Click( object sender, RoutedEventArgs e )
{
_wizard.CurrentPage = _wizard.Items[ 1 ] as WizardPage;
_wizard.NextButtonVisibility = Visibility.Visible;
_wizard.BackButtonVisibility = Visibility.Visible;
_wizard.HelpButtonVisibility = Visibility.Visible;
_wizard.CancelButtonVisibility = Visibility.Visible;
_wizard.FinishButtonVisibility = Visibility.Visible;
}
```

Viewing all 4964 articles
Browse latest View live


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