This question is locked. New answers and comments are not allowed.
Hi,
CoverFlow.SetFocus() don't work.
The keyboard navigation only work's when i click on CoverFlow.
I Try SetFocus() to solve but...nothing!!
There is my simple code:
Obs:
- After the click event is fired every think work's well , but i need this initial state.
- In others samples on forum , this initial state is the same, this is a CoverFlow bug?
CoverFlow.SetFocus() don't work.
The keyboard navigation only work's when i click on CoverFlow.
I Try SetFocus() to solve but...nothing!!
There is my simple code:
Public SlideShow(Microsistec.Domain.Entity.Property Property) { // Required to initialize variables InitializeComponent(); this.Property = Property; this.SetValue(Grid.RowSpanProperty, 50); this.SetValue(Grid.ColumnSpanProperty, 50); foreach(Photo p in Property.Photo) { System.Windows.Controls.Image i = new System.Windows.Controls.Image(); i.Source = p.Data.MediumPhoto.ToBitmap(); ContentPresenter c = new ContentPresenter(); Border b = new Border(); b.BorderThickness = new Thickness(5); b.BorderBrush = new SolidColorBrush(Color.FromArgb(0, 0, 0, 0)); b.Child = i; c.Content = b; list.Add(c); } CoverFlow.ItemsSource = list; CoverFlow.Focus(); }Obs:
- After the click event is fired every think work's well , but i need this initial state.
- In others samples on forum , this initial state is the same, this is a CoverFlow bug?