or
| <telerik:RadTileView Margin="8" MinimizedColumnWidth="220" ItemsSource="{Binding Rooms}" > |
| <telerik:RadTileView.ItemTemplate> |
| <DataTemplate> |
| <TextBlock Text="{Binding DisplayName}"> |
| </TextBlock> |
| </DataTemplate> |
| </telerik:RadTileView.ItemTemplate> |
| <telerik:RadTileView.ContentTemplate> |
| <DataTemplate> |
| <telerik:RadFluidContentControl BorderBrush="black" BorderThickness="2" SmallToNormalThreshold="190, 140" |
| NormalToSmallThreshold="190, 140" NormalToLargeThreshold="320, 320" |
| LargeToNormalThreshold="320, 320" ContentChangeMode="Automatic"> |
| <telerik:RadFluidContentControl.SmallContentTemplate> |
| <DataTemplate> |
| <Grid> |
| <TextBlock Text="{Binding DisplayName}"></TextBlock> |
| <TextBlock Text="small"></TextBlock> |
| </Grid> |
| </DataTemplate> |
| </telerik:RadFluidContentControl.SmallContentTemplate> |
| <telerik:RadFluidContentControl.ContentTemplate> |
| <DataTemplate> |
| <Grid> |
| <TextBlock Text="{Binding DisplayName}"></TextBlock> |
| <TextBlock Text="Medium"></TextBlock> |
| </Grid> |
| </DataTemplate> |
| </telerik:RadFluidContentControl.ContentTemplate> |
| <telerik:RadFluidContentControl.LargeContentTemplate> |
| <DataTemplate> |
| <local:RoomControl Margin="10" HorizontalAlignment="Left" VerticalAlignment="Top" DataContext="{Binding}"/> |
| </DataTemplate> |
| </telerik:RadFluidContentControl.LargeContentTemplate> |
| </telerik:RadFluidContentControl> |
| </DataTemplate> |
| </telerik:RadTileView.ContentTemplate> |
| </telerik:RadTileView> |
<DataTemplate DataType="{x:Type lib:Security.UserInfo}">...
<TextBlock>
<TextBlock.Text>
<MultiBinding StringFormat="{}{0}, {1}">
<Binding Path="LastName" />
<Binding Path="FirstName" />
</MultiBinding>
</TextBlock.Text>
</TextBlock>
</DataTemplate>
<telerik1:GridViewComboBoxColumn Name="SalesRepColumn" Header="Sales Rep" DataMemberBinding="{Binding SalesRep, ValidatesOnDataErrors=True,ValidatesOnExceptions=True,UpdateSourceTrigger=PropertyChanged}"/>...
CollectionViewSource userInfoSource = this.FindResource("userInfoSource") as CollectionViewSource;
var ul = UserInfoList.GetUserInfoList().OrderBy(u => u.LastName).ToList();
ul.Insert(0, null);
userInfoSource.Source = ul;
SalesRepColumn.ItemsSource = userInfoSource.View;
public UserInfo SalesRep {
get { return GetProperty(SalesRepProperty); }
set { _salesRep = value; }
}

| <Style BasedOn="{StaticResource {x:Type ComboBox}}" |
| TargetType="{x:Type local:MyComboBox}"> |
| <Setter Property="Background" Value="Red" /> |
| <Setter Property="Foreground" Value="DarkGray" /> |
| </Style> |
| <Style TargetType="{x:Type local:MyComboBox}" |
| BasedOn="{StaticResource {telerik:ThemeResourceKey ThemeType=telerik:Office_BlackTheme, ElementType=Controls:RadComboBox}}"> |
| <Setter Property="Background" Value="Red" /> |
| <Setter Property="Foreground" Value="DarkGray" /> |
| </Style> |
| public class MyComboBox : RadComboBox |
| { |
| static MyComboBox () |
| { |
| DefaultStyleKeyProperty.OverrideMetadata(typeof(MyComboBox), new FrameworkPropertyMetadata(typeof(MyComboBox))); |
| } |
| } |
| [LocalizabilityAttribute(LocalizationCategory.NeverLocalize)] |
| [Ambient] |
| public Type TargetType |
| { |
| get { return typeof (RadComboBox);} |
| } |
Hi,
I’m trying to implement a piece of functionality on a floating window that will minimise/re-group the floating window back to the main area of the docking control.
Is there a way to achieve this?
Chris.
| protected override void Adapt(IRegion region, RadPaneGroup regionTarget) |
| foreach(Telerik.Windows.Controls.GridViewColumn column in GridView.Columns) |
| { |
| Style s = new Style(typeof(GridViewHeaderCell), column.HeaderCellStyle); |
| s.Setters.Add(new Setter(GridViewHeaderCell.ForegroundProperty, new SolidColorBrush(Colors.Red))); |
| s.Seal(); |
| column.HeaderCellStyle = s; |
| } |
| column.ClearValue(GridViewHeaderCell.ForegroundProperty); //no noticeable impact |
| column.ClearValue(GridViewColumn.HeadCellStyleProperty); //no noticeable impact |
| //this makes the foreground (some text) disappear altogether |
| Style s = new Style(typeof(GridViewHeaderCell), column.HeaderCellStyle); |
| s.Setters.Add(new Setter(GridViewHeaderCell.ForegroundProperty, null)); |
| s.Seal(); |
| column.HeaderCellStyle = s; |