Telerik Forums
UI for WPF Forum
3 answers
601 views
Hi, I'm willing to use an Enum as source of a combo box, so I can handle the selection using something like this:

public enum MyEnum: byte { Normal , Diff }
    public partial class Dialog : Window
    {
          
        public Dialog()
        {
            InitializeComponent();       
        }

        private void OKButton_Click(object sender, RoutedEventArgs e)
        {
            MyEnum x = (MyEnum)myComboBox.SelectedItem;
            switch ( x ){
                case MyEnum .Normal : // do something
                         break;
                case MyEnum .Diff : // do somethiing
                         break;
            }
        }
   }

Thanks
David Lino
Top achievements
Rank 1
 answered on 04 May 2010
4 answers
216 views
Hi,

I am trying to show a set of selectable items and I want to ensure that the display contents of each item varies as the item is resized.  Because RadTileView doesn't support selection, I created a ListBox and set the ItemTemplate to a data template that includes a RadFluidContentControl.  My demo code is below.  I find that when I resize the listbox is and its items, the RadFluidContentControl does not change its display state; the small contents always display.  When I use the same data template in a simple ContentControl (see demo code), I find that I do get the behavior I expect.  Question is: how do I use RadFluidContentControl in a ListBox?

Thanks,
Kristy


<Window x:Class="RadControlsWpfApp.Window1" 
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:telerik="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls" xmlns:radDock="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Docking" xmlns:System="clr-namespace:System;assembly=mscorlib" Title="Window1" Height="300" Width="300">  
  <Window.Resources> 
 
    <x:Array x:Key="ComposerList" Type="{x:Type System:String}">  
      <System:String>Mozart, Wolfgang Amadeus</System:String> 
      <System:String>Górecki, Henryk Mikolaj</System:String> 
      <System:String>Massenet, Jules</System:String> 
    </x:Array> 
      
    <System:String x:Key="Composer">Mozart, Wolfgang Amadeus</System:String> 
      
     <DataTemplate x:Key="listboxItemTemplate">  
      <telerik:RadFluidContentControl  
          Margin="2" 
          SmallToNormalThreshold="190, 40" 
          NormalToSmallThreshold="190, 40" 
          NormalToLargeThreshold="300, 160" 
          LargeToNormalThreshold="300, 160">  
        <!--Small--> 
        <telerik:RadFluidContentControl.SmallContent> 
          <Border  
            BorderBrush="LightBlue" 
            BorderThickness="1">  
            <StackPanel Orientation="Horizontal">  
              <TextBlock Text="Small" Margin="3" FontSize="12" /> 
              <TextBlock Text="{Binding}" Margin="3" FontSize="12" /> 
            </StackPanel> 
          </Border> 
        </telerik:RadFluidContentControl.SmallContent> 
        <!--Normal--> 
        <telerik:RadFluidContentControl.Content> 
          <Border  
            BorderBrush="Blue" 
            BorderThickness="1">  
            <StackPanel Orientation="Horizontal">  
              <TextBlock Text="Medium" Margin="3" FontSize="18" /> 
              <TextBlock Text="{Binding}" Margin="3" FontSize="18" /> 
            </StackPanel> 
          </Border> 
        </telerik:RadFluidContentControl.Content> 
        <!--Large--> 
        <telerik:RadFluidContentControl.LargeContent> 
          <Border BorderBrush="DarkBlue" BorderThickness="1">  
            <StackPanel Orientation="Horizontal">  
              <TextBlock Text="Large" Margin="3" FontSize="24" /> 
              <TextBlock Text="{Binding}" Margin="3" FontSize="24" /> 
            </StackPanel> 
          </Border> 
        </telerik:RadFluidContentControl.LargeContent> 
      </telerik:RadFluidContentControl> 
    </DataTemplate> 
 
  </Window.Resources> 
 
    <Grid> 
      <Grid.RowDefinitions> 
        <RowDefinition Height="*"/>  
        <RowDefinition Height="*"/>  
      </Grid.RowDefinitions> 
          <ListBox  
            Grid.Row="0" 
            HorizontalContentAlignment="Stretch" 
            VerticalContentAlignment="Stretch" 
            ItemsSource="{StaticResource ComposerList}" 
            ItemTemplate="{StaticResource listboxItemTemplate}"/>  
      <ContentControl   
        Grid.Row="1"   
        Content="{StaticResource Composer}"   
        ContentTemplate="{StaticResource listboxItemTemplate}"/>  
    </Grid>           
 
</Window> 
 
Kristy Saunders
Top achievements
Rank 1
 answered on 03 May 2010
1 answer
78 views
Hi,

v 2010

I have a grid in which I have some cells set to particular styles, row and column virtualisation a set to off.  When I issue a BeginInsert the styles dissappear.  Is this bug or am I doing somthing wrong?

Thanks
Rob
Yordanka
Telerik team
 answered on 03 May 2010
1 answer
104 views
Hi,

I noticed in the WinForms Q1 2010 release notes :
FIXED: CellValidating no longer fires twice if the user shows a message box in the event handler. 

Well, this is still a problem in the WPF grid Q1 2010.

Any news,

Thanks
Rob
Yordanka
Telerik team
 answered on 03 May 2010
1 answer
101 views
Hi,
I need to drag/click(without using navigation arrows) on an item so that it will become active item. I also need to hide the default navigation arrows comes with the carousel.


Please tell me how to achieve this.


Thanks,
John.
Milan
Telerik team
 answered on 03 May 2010
1 answer
83 views
Hello,

I just recently installed RadControls_for_WPF_2010_1_0422_DEV and now VS 2010 crashes and re-starts every time I try to create a new project.  As soon as I hit New Project it hangs.

I tried to reboot and the problem still exists.  Then, I uninstalled RadControls_for_WPF_2010_1_0422_DEV and VS 2010 was working as it should. 

Can anyone tell me why the RadControls_for_WPF_2010_1_0422_DEV might cause such an issue.

Erjan Gavalji
Telerik team
 answered on 03 May 2010
6 answers
160 views
We try to change the RowHeight to 20 or 22. But setting RowHeight for the RadDataView seems to have no effect.
Do we have to make our own RowStyle. Do we have to change the themes?
How do we do this and where are the files?


Kalin Milanov
Telerik team
 answered on 03 May 2010
1 answer
139 views
I am setting a image as a page book. But i need manipulate this image , like , zoom in , zoom out , crop part of that , copy a peace , so . how i can do it !
Valentin.Stoychev
Telerik team
 answered on 03 May 2010
1 answer
129 views
Hello,

I have a radgridview and some other buttons in a page, so i disabled tabstop to the grid, but when i hit tab it still focus the grid header.

Any clue?

Thanks
Nedyalko Nikolov
Telerik team
 answered on 03 May 2010
0 answers
91 views
Hai

Am having my own custom data like some unique names (A,B,C,D.....)
Xaxis is datetime, no problem in that.

i want to plot my unique names in Yaxis. how to do this.
i set autorange to false and tried many ways to plot my names in  Yaxis, but i cannot,

how to do this????
dCODE
Top achievements
Rank 1
 asked on 03 May 2010
Narrow your results
Selected tags
Tags
GridView
General Discussions
Chart
RichTextBox
Docking
ScheduleView
ChartView
TreeView
Diagram
Map
ComboBox
TreeListView
Window
RibbonView and RibbonWindow
PropertyGrid
DragAndDrop
TabControl
TileView
Carousel
DataForm
PDFViewer
MaskedInput (Numeric, DateTime, Text, Currency)
AutoCompleteBox
DatePicker
Buttons
ListBox
GanttView
PivotGrid
Spreadsheet
Gauges
NumericUpDown
PanelBar
DateTimePicker
DataFilter
Menu
ContextMenu
TimeLine
Calendar
Installer and Visual Studio Extensions
ImageEditor
BusyIndicator
Expander
Slider
TileList
DataPager
PersistenceFramework
Styling
TimeBar
OutlookBar
TransitionControl
FileDialogs
Book
ToolBar
ColorPicker
TimePicker
MultiColumnComboBox
SyntaxEditor
VirtualGrid
Wizard
ExpressionEditor
NavigationView (Hamburger Menu)
WatermarkTextBox
DesktopAlert
BarCode
SpellChecker
DataServiceDataSource
EntityFrameworkDataSource
RadialMenu
ChartView3D
Data Virtualization
BreadCrumb
LayoutControl
ProgressBar
Sparkline
TabbedWindow
ToolTip
CloudUpload
ColorEditor
TreeMap and PivotMap
EntityFrameworkCoreDataSource (.Net Core)
HeatMap
Chat (Conversational UI)
VirtualizingWrapPanel
Calculator
NotifyIcon
TaskBoard
TimeSpanPicker
BulletGraph
Licensing
WebCam
CardView
DataBar
FilePathPicker
PasswordBox
SplashScreen
Callout
Rating
Accessibility
CollectionNavigator
Localization
AutoSuggestBox
Security
VirtualKeyboard
HighlightTextBlock
TouchManager
StepProgressBar
Badge
OfficeNavigationBar
ExpressionParser
CircularProgressBar
SvgImage
PipsPager
SlideView
AI Coding Assistant
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?