or
Hi,
I am creating a demo that uses the tile view control and I would like to make it almost invisible apart from a few controls in the header like the minimise/maximise icon.
To achieve this I have removed the boarder and made the background of the tileview item transparent. I was hoping that there would be an easy way to make the background
of the header transparent but when setting the background to transparent it doesn’t make any difference to the header. Is there a way to make the background header transparent
without having to create a new template in blend and also maintaining the minimise/maximize icons? (I am looking to achieve this in XAML at design time as I am using MvvM)
Kind regards
James
Message : Specified element is already the logical child of another element. Disconnect it first.
StackTrace :
at System.Windows.FrameworkElement.ChangeLogicalParent(DependencyObject newParent)
at System.Windows.FrameworkElement.AddLogicalChild(Object child)
at System.Windows.Controls.ContentControl.OnContentChanged(Object oldContent, Object newContent)
at System.Windows.Controls.ContentControl.OnContentChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
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.SetValueCommon(DependencyProperty dp, Object value, PropertyMetadata metadata, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType, Boolean isInternal)
at System.Windows.DependencyObject.SetValue(DependencyProperty dp, Object value)
at Telerik.Windows.Controls.GridView.GridViewHeaderCell.PrepareHeaderContent() in c:\TB\117\WPF_Scrum\Current_HotFix\Sources\Development\Controls\GridView\GridView\GridView\Cells\GridViewHeaderCell.cs:line 382
at Telerik.Windows.Controls.GridView.GridViewHeaderCell.Prepare() in c:\TB\117\WPF_Scrum\Current_HotFix\Sources\Development\Controls\GridView\GridView\GridView\Cells\GridViewHeaderCell.cs:line 1100
at Telerik.Windows.Controls.GridView.GridViewHeaderRow.PrepareCell(GridViewCellBase cellBase, GridViewColumn column) in c:\TB\117\WPF_Scrum\Current_HotFix\Sources\Development\Controls\GridView\GridView\GridView\Rows\GridViewHeaderRow.cs:line 244
at Telerik.Windows.Controls.GridView.GridViewCellsPanel.PrepareCell(GridViewCellBase cell, GridViewColumn column) in c:\TB\117\WPF_Scrum\Current_HotFix\Sources\Development\Controls\GridView\GridView\GridView\Virtualization\GridViewCellsPanel.cs:line 410
at Telerik.Windows.Controls.GridView.GridViewCellsPanel.GetVirtualizedCell(GridViewColumn column, Boolean createIfNull) in c:\TB\117\WPF_Scrum\Current_HotFix\Sources\Development\Controls\GridView\GridView\GridView\Virtualization\GridViewCellsPanel.Virtualization.cs:line 399
at Telerik.Windows.Controls.GridView.GridViewCellsPanel.RealizeAndMeasureCells(Int32 startIndex, Int32 predictedLastIndex, Func`2 calculateNextIndex) in c:\TB\117\WPF_Scrum\Current_HotFix\Sources\Development\Controls\GridView\GridView\GridView\Virtualization\GridViewCellsPanel.Virtualization.cs:line 334
at Telerik.Windows.Controls.GridView.GridViewCellsPanel.UpdateVirtualizedCells() in c:\TB\117\WPF_Scrum\Current_HotFix\Sources\Development\Controls\GridView\GridView\GridView\Virtualization\GridViewCellsPanel.Virtualization.cs:line 269
at Telerik.Windows.Controls.GridView.GridViewCellsPanel.MeasureOverride(Size availableSize) in c:\TB\117\WPF_Scrum\Current_HotFix\Sources\Development\Controls\GridView\GridView\GridView\Virtualization\GridViewCellsPanel.cs:line 306
at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
at System.Windows.UIElement.Measure(Size availableSize)
at MS.Internal.Helper.MeasureElementWithSingleChild(UIElement element, Size constraint)
at System.Windows.Controls.ItemsPresenter.MeasureOverride(Size constraint)
at System.Windows.FrameworkElement.MeasureCore(Size availableSize)
at System.Windows.UIElement.Measure(Size availableSize)
using System.Windows.Media; using Telerik.Windows.Controls; namespace DragDrop { public class OperativeResource : Resource { ... } } Visual Studio is telling me that 'Resource' exists in both Scheduler.dll and ScheduleView.dll but when I attempt to inherit from Resource using a fully qualified name...namespace DragDrop { public class OperativeResource : Telerik.Windows.Controls.ScheduleView.Resource { ... } }...it says Resource does not exist?? As you can guess I'm trying to define a class that can be used in the header of the ScheduleView and it's very important I can do this so any help is seriously appreciated. Thanks, Dan
<
rad:RadRibbonComboBox
Width
=
"95"
Margin
=
"0 5 0 0"
IsEditable
=
"True"
IsReadOnly
=
"True"
ItemsSource
=
"{Binding TimeFilterFromMonitorCombo.Items}"
SelectedItem
=
"{Binding TimeFilterFromMonitorCombo.SelectedItem}"
IsSynchronizedWithCurrentItem
=
"True"
>
<
rad:RadRibbonComboBox.ItemsPanel
>
<
ItemsPanelTemplate
>
<
VirtualizingStackPanel
/>
</
ItemsPanelTemplate
>
</
rad:RadRibbonComboBox.ItemsPanel
>
<
rad:RadRibbonComboBox.ItemTemplate
>
<
DataTemplate
>
<
StackPanel
Orientation
=
"Horizontal"
>
<
TextBlock
Background
=
"{Binding ItemBackground}"
Text
=
"{Binding MemberDisplay}"
HorizontalAlignment
=
"Stretch"
/>
</
StackPanel
>
</
DataTemplate
>
</
rad:RadRibbonComboBox.ItemTemplate
>
</
rad:RadRibbonComboBox
>