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

New Post: How to set the title for LayoutAnchorable from MVVM binding?

$
0
0
Hi,

Thanks. Its working perfectly!

New Post: How to change the border brush for LayoutAnchorable?

$
0
0
Hi,

I am able to change the border for LayoutAnchorableControl. But still I see there are two borders and I want to change the outer border.

I have used "Snoop" and found that there is a Border with name "ContentPanel". I want to change it from my code but I am not able to do so.

New Post: DateTimePicker popup size

$
0
0
Hi,

I have tried your sample code in a new project, and here's the result : http://postimg.org/image/zd58j74eb/.
Everything is fine : the DateTimePicker shows a popup with a correctly aligned and un-truncated Calendar.
I can see that in your implicit style for the DateTimePicker, you set the Width/Height twice, but it is not a problem.

What version of Visual Studio do you use and what version of .net are you using. Have you try the code you paste in the last post in a standalone project ?
The offset for the Microsoft calendar in the DateTimePicker's popup is really strange. Something must set this offset.
Thanks.

Commented Unassigned: PropertyGrid not thread safe for multiple ui threads [22187]

$
0
0
Hi,

I'll just reopend this issue - I just tested it with v2.6 but the reported issue still exists!

* I am starting a window in its own UI thread.
* The window contains a propertygrid. At some time I close the window and stop the dispatcher.
* At a later stage I decide to start a new instance of the same window class in new UI Thread (with it's own dispatcher).
* When this window is created, I get the exception reported below
```
exception Details (key=value): (System.Object=) System.InvalidOperationException: The calling thread cannot access this object because a different thread owns it.
at System.Windows.Threading.Dispatcher.VerifyAccess()
at System.Windows.Threading.DispatcherObject.VerifyAccess()
at System.Windows.SystemResources.FindCachedResource(Object key, Object& resource, Boolean mustReturnDeferredResourceReference)
at System.Windows.SystemResources.FindResourceInternal(Object key, Boolean allowDeferredResourceReference, Boolean mustReturnDeferredResourceReference)
at System.Windows.FrameworkElement.FindResourceInternal(FrameworkElement fe, FrameworkContentElement fce, DependencyProperty dp, Object resourceKey, Object unlinkedParent, Boolean allowDeferredResourceReference, Boolean mustReturnDeferredResourceReference, DependencyObject boundaryElement, Boolean isImplicitStyleLookup, Object& source)
at System.Windows.FrameworkElement.FindResource(Object resourceKey)
at Xceed.Wpf.Toolkit.PropertyGrid.PropertyGrid.UpdateContainerHelper() in z:\Test\PropertyGridTest\ToolkitSrc\Main\Source\ExtendedWPFToolkitSolution\Src\Xceed.Wpf.Toolkit\PropertyGrid\Implementation\PropertyGrid.cs:line 888
at Xceed.Wpf.Toolkit.PropertyGrid.PropertyGrid.OnSelectedObjectChanged(Object oldValue, Object newValue) in z:\Test\PropertyGridTest\ToolkitSrc\Main\Source\ExtendedWPFToolkitSolution\Src\Xceed.Wpf.Toolkit\PropertyGrid\Implementation\PropertyGrid.cs:line 452
at Xceed.Wpf.Toolkit.PropertyGrid.PropertyGrid.OnSelectedObjectChanged(DependencyObject o, DependencyPropertyChangedEventArgs e) in z:\Test\PropertyGridTest\ToolkitSrc\Main\Source\ExtendedWPFToolkitSolution\Src\Xceed.Wpf.Toolkit\PropertyGrid\Implementation\PropertyGrid.cs:line 440
at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
at Xceed.Wpf.Toolkit.PropertyGrid.PropertyGrid.OnPropertyChanged(DependencyPropertyChangedEventArgs e) in z:\Test\PropertyGridTest\ToolkitSrc\Main\Source\ExtendedWPFToolkitSolution\Src\Xceed.Wpf.Toolkit\PropertyGrid\Implementation\PropertyGrid.cs:line 807
at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)
at System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType)
at System.Windows.DependencyObject.InvalidateProperty(DependencyProperty dp, Boolean preserveCurrentValue)
at System.Windows.Data.BindingExpressionBase.Invalidate(Boolean isASubPropertyChange)
at System.Windows.Data.BindingExpression.TransferValue(Object newValue, Boolean isASubPropertyChange)
at System.Windows.Data.BindingExpression.Activate(Object item)
at System.Windows.Data.BindingExpression.AttachToContext(AttachAttempt attempt)
at System.Windows.Data.BindingExpression.MS.Internal.Data.IDataBindEngineClient.AttachToContext(Boolean lastChance)
at MS.Internal.Data.DataBindEngine.Task.Run(Boolean lastChance)
at MS.Internal.Data.DataBindEngine.Run(Object arg)
at MS.Internal.Data.DataBindEngine.OnLayoutUpdated(Object sender, EventArgs e)
at System.Windows.ContextLayoutManager.fireLayoutUpdateEvent()
at System.Windows.ContextLayoutManager.UpdateLayout()
at System.Windows.ContextLayoutManager.UpdateLayoutCallback(Object arg)
at System.Windows.Media.MediaContext.InvokeOnRenderCallback.DoWork()
at System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()
at System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget)
at System.Windows.Media.MediaContext.RenderMessageHandler(Object resizedCompositionTarget)
at System.Windows.Media.MediaContext.Resize(ICompositionTarget resizedCompositionTarget)
at System.Windows.Interop.HwndTarget.OnResize()
at System.Windows.Interop.HwndTarget.HandleMessage(WindowMessage msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Interop.HwndSource.HwndTargetFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
```

For me it seems like the new property grid in the window is caching some data created by the previous UI thread. I just cannot find out what it is.

Do you have any idea?
Comments: ** Comment from web user: BoucherS **

Hi,

As said before, this issue is fixed in v2.8.
Please wait for v2.8 Community edition or buy v2.9 Plus edition.

Thanks.

Created Unassigned: PropertyGrid Expand/Collapse All Properties [22227]

$
0
0
Based on discussion https://wpftoolkit.codeplex.com/discussions/653192.

User wants to be able to collapse/Expand properties with methods.

Edited Feature: PropertyGrid Expand/Collapse All Properties [22227]

$
0
0
Based on discussion https://wpftoolkit.codeplex.com/discussions/653192.

User wants to be able to collapse/Expand properties with methods.
Comments: ** Comment from web user: BoucherS **

This will be fixed in v3.1.
The following methods will be available in the PropertyGrid :
-CollapseAllProperties()
-ExpandAllProperties()
-ExpandProperty( string propertyName )
-CollapseProperty( string propertyName )

New Post: PropertyGrid Expand/Collapse All

$
0
0
Hi,

In v2.7 Plus, the propertyGrid offers the following public methods :
-CollapseAllCategories()
-CollapseCategory( string groupName )
-ExpandAllCategories()
-ExpandCategory( string groupName )

These will let you expand/Collapse categories.

But if you want to expand/Collapse properties, issue https://wpftoolkit.codeplex.com/workitem/22227 has been created.

Created Feature: PropertyGrid : Expanding Collections to show children [22228]

$
0
0
Based on codeplex discussion https://wpftoolkit.codeplex.com/discussions/653034.

User wants to be able to use a Collection <T> as a PropertyItem in the PropertyGrid and when expanding this PropertyItem, see the Collection children, the T items.
Currently, expanding a Collection<T> will show the Collection properties, which is its Count.

New Post: propertyGrid show items for expanded collection

New Post: How to change the border brush for LayoutAnchorable?

$
0
0
Hi,

You will find the Outer Border in the LayoutAnchorablePaneControl. You can modify it in a style for LayoutAnchorablePaneControl, based on the default one from generic.xaml and set this new style to DockingManager.AnchorablePaneControlStyle property :
<Window.Resources>
      <ResourceDictionary>
         <ResourceDictionary.MergedDictionaries>
            <ResourceDictionary Source="/Xceed.Wpf.AvalonDock;component/Themes/generic.xaml" />
         </ResourceDictionary.MergedDictionaries>

         <!-- Inner Border -->
         <Style TargetType="{x:Type xcad:LayoutAnchorableControl}">
            <Setter Property="BorderBrush"
                    Value="Green" />
            <Setter Property="BorderThickness"
                    Value="3" />
         </Style>

         <!-- Outer Border -->
         <Style x:Key="MyAnchorablePaneControlStyle"
                TargetType="{x:Type xcad:LayoutAnchorablePaneControl}"
                BasedOn="{StaticResource AnchorablePaneControlStyle}">
            <Setter Property="BorderBrush"
                    Value="Blue" />
            <Setter Property="BorderThickness"
                    Value="3" />
         </Style>

         <Style TargetType="{x:Type xcad:DockingManager}">
            <Setter Property="AnchorablePaneControlStyle"
                    Value="{StaticResource MyAnchorablePaneControlStyle}" />
         </Style>
      </ResourceDictionary>      
   </Window.Resources>

Created Unassigned: Dropdownbutton unexpected IsOpen behaviour [22229]

$
0
0
When you bind IsOpen to a viewmodel property, the DropDownButton control seems to only read the IsOpen value once when the control is created, setting it's initial state. After that, the bound property is never updated or read again as you open and close the popup (or when you modify the viewmodel property). From the description this appears to be incorrect behavior. Has anyone else experienced this?

New Post: DateTimePicker popup size

$
0
0
I am using VS2015 Community, .net 4.6 on Windows 10.

I did insert the above copied code into a separate project and, you're right, it worked just fine! BTW, I did remove the duplicate settings; thanks for checking that.

Now I have to figure out what there is about my usage of the control in my particular project that causes the problem. Do you have any suggestions on where to begin looking?

Thanks for the help.

New Post: How to change the border brush for LayoutAnchorable?

New Post: How to customize the CollectionControl editor ?

New Post: propertyGrid show items for expanded collection


New Post: DateTimePicker popup size

$
0
0
Hum...tough to say.

Maybe some implicit styles for popup, Calendar...any margin or padding....

Commented Unassigned: Dropdownbutton unexpected IsOpen behaviour [22229]

$
0
0
When you bind IsOpen to a viewmodel property, the DropDownButton control seems to only read the IsOpen value once when the control is created, setting it's initial state. After that, the bound property is never updated or read again as you open and close the popup (or when you modify the viewmodel property). From the description this appears to be incorrect behavior. Has anyone else experienced this?
Comments: ** Comment from web user: curiousKoala **

So after downloading the source for this control, it appears that the "OnKeyDown" handler is not being called when the togglebutton is clicked. WPF is not my strength so this is as far as I've been able to debug this thus far.

Commented Unassigned: Dropdownbutton unexpected IsOpen behaviour [22229]

$
0
0
When you bind IsOpen to a viewmodel property, the DropDownButton control seems to only read the IsOpen value once when the control is created, setting it's initial state. After that, the bound property is never updated or read again as you open and close the popup (or when you modify the viewmodel property). From the description this appears to be incorrect behavior. Has anyone else experienced this?
Comments: ** Comment from web user: curiousKoala **

Oh nevermind, the keypress is for shortcut keys. Turns out that for some reason the dependency property isn't propagating the change to IsOpen.

New Post: DataGrid Binding Source in Page

$
0
0
Hello,

I try to develop a page based application in WPF. I have a MainWindow, in it, I have a Frame, and I navigate pages in this frame. In some pages, I want to use DataGrid but I cannot show the data on grid. I try the sample in empty project, it works, but I cannot in page.

I think problem is in xaml, int his part:


<Grid Grid.Column="1" Grid.Row="1">
<Grid.Resources>
            <xcdg:DataGridCollectionViewSource x:Key="dt_lines" Source="{Binding Source={x:Static Application.Current}, Path=linesDt}"/>
        </Grid.Resources>
        <xcdg:DataGridControl x:Name="grid" ItemsSource="{Binding Source={StaticResource dt_lines}}"/>
</Grid>

Is there anyone can help me? Thanks.

Commented Unassigned: Dropdownbutton unexpected IsOpen behaviour [22229]

$
0
0
When you bind IsOpen to a viewmodel property, the DropDownButton control seems to only read the IsOpen value once when the control is created, setting it's initial state. After that, the bound property is never updated or read again as you open and close the popup (or when you modify the viewmodel property). From the description this appears to be incorrect behavior. Has anyone else experienced this?
Comments: ** Comment from web user: curiousKoala **

Interesting, I noticed you had to set the DataContext for this control explicitly. Most controls I have worked with you don't have to do that. I will investigate and post results.

Viewing all 4964 articles
Browse latest View live


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