Enlaces Interesantes WPF/Silverlight 22-12-2009

Seguimos con fiebre así que por ahora la cabeza solo me da para escribir este tipo de posts

 

 

  • Software Escrow as a Service with EPS, Silverlight and Azure (Jared Bienz)
  • Contributing to the SL HVP (Jesse Liberty)
  • Another Silverlight Centering Trick and Use the Right Container for ListBox Scrolling (Joel Cochran)
  • Silverlight 4 demos from my PDC Keynote now available (Scott Guthrie)
  • Silverlight-powered Virtual DVD now available from Tesco (Silverlight Team)
  • Expression Blend 3 and SketchFlow! Wow! (David Lemphers)
  • Rotate your text in the WPF DataGrid Column Headers (Margaret Parsons)
  • ViewModel Pattern and Speech as UI. Help me Obi Wan, where’s the View? (Pete Brown)
  • Using the Silverlight Toolkit LayoutTransformer Control for Angled Column Header Text (Cheryl Simmons)
  • Flash to Silverlight Guide – MovieClip to UserControl (Adam Kinney)
  • Silverlight 4: Drag&drop with EventToCommand (Laurent Bugnion)
  • Extending the SMF for the HVP (Jesse Liberty)
  • Open-Source WPF Reporting Engine (Rudi Grobler)
  • HVP – Core Scaffolding and Updated News (Jesse Liberty)
  • The Completion of the 31 Days of Silverlight and Day #20: Adding Audio to Silverlight Events (Jeff Blankenburg)
  • Architecting SL4 Applications with RIA Services, MEF and MVVM – Part 2 (Shawn Wildermuth)
  • View-the-box (Rudi Grobler)
  • Enlaces Interesantes WPF/Silverlight 16-12-2009

    Con el virus de la gripe os pongo los enlaces del día

     

  • Silverlight: Wish List (Deborah Kurata)
  • Magellan Transitions and Magellan Action Results and Magellan Exceptions (Paul Stovell)
  • Wrap music [A more flexible balanced WrapPanel implementation for Silverlight and WPF!] (David Anson)
  • My XAP file is 5 Mb size, is that bad? (Braulio Diez)
  • Make Your WPF Applications Adapt to the Host Machine (Srinath MS)
  • Using a different mscorlib for F# in Visual Studio (Silverlight and probably XNA too) (Steve Gilham)
  • 12 Days of RIA – Day 5 – Read Only Data (John Pelak)
  • Working with Windows 7 Taskbar Thumbnail Buttons with WPF 4 and Overlaying Icons on the Windows 7 Taskbar with WPF 4 (Pete Brown)
  • Exchanging Data between Silverlight 3.0 User Controls using Dependency Properties and Events (Mahesh Sabnis)
  • Enlaces Interesantes WPF/Silverlight 13-12-2009

    Ya están aquí los del fin de semana

     

  • Microsoft Releases Bing Maps Silverlight Control SDK (Blake Handler)
  • WCF NET.TCP Protocol in Silverlight 4 (Radenko Zec)
  • StatLight – Goes Open Source (Jason Jarrett)
  • Creating an Image from PixelShaders in Silverlight and WPF (Corey Miller)
  • New WPF Showcase: Scrum Sprint Monitor (Jay Esguerra)
  • Resizing images from the server using WPF/WIC instead of GDI+ (Bertrand Le Roy)
  • Use XamlReader.Load for WPF XAML (not XamlServices.Load) (Michael Shim)
  • Silverlight 4 – More on Capturing Video from WebCams (Mike Taulty)
  • Silverlight for Point Of Sale (POS) applications (Silverlight Team)
  • TFS2008 y Las Malditas Fechas

    Este post se lo dedico a El Bruno, fan numero uno de Silverlight y odio exacerbado al TFS (Ya me he vuelto a equivocar!!!). La cuestión es que llevábamos  unas cuantas horas con el famoso error ‘TFS31003 your account does not have permissions to connect to the Team Foundation server’.

    Y el usuario tenia acceso porque probábamos desde otro ordenador y conectábamos, pero desde ese ordenador ningún usuario tenia acceso al TFS, pruebas y pruebas de desinstalar el Team Client volver a instalar , borra cache del tfs, el SP1…, hasta que nos dimos cuenta que la fecha del ordenador estaba retrasada un día y el TFS al autenticarte comprueba que la fecha sea la misma entre el servidor y el cliente, pero en vez de decirte amablemente que las fechas no son correctas te da el bonito error de arriba.

    Cuantas horas perdidas por una mal mensaje de error

    Enlaces Interesantes WPF/Silverlight 09-12-2009

    Llegan calentitos

     

  • Detecting the Active View in a Prism App (Brian Noyes)
  • Getting started with the charting controls (Cheryl Simmons)
  • Creating an Image from PixelShaders in Silverlight and WPF (Corey Miller)
  • Silverlight 4 Notification Window Class (Corrina Barber)
  • WriteableBitmapEx – WriteableBitmap extensions now on CodePlex (Rene Schulte)
  • BugCamSmash Dissected part 1 – Smash a Bug (Adam Kinney)
  • Cinch : Major change alert (Sacha Barber)
  • Inserting Silverlight DeepZoom images into your Web page (Silverlight Team)
  • MVVM Light V3/alpha3 for Blend 3 and Blend Preview 4 (Laurent Bugnion)

     

  • Deshabilitar uno o mas items de un ListBox en WPF

    Después del puente una entrada sencillita. Esta fue una de las preguntas de MSDN, si se podía deshabilitar uno o mas items en una lista dependiendo del valor de una propiedad, y la respuesta por supuesto es si, lo tenemos que hacer con estilos pero es bien sencillo, solo hay que hacer un DataTrigger de  la propiedad que deshabilitara el item y poner la propiedad IsEnabled a False.

    Aquí lo tenéis

     

    1. <ListBox>
    2.     <ListBox.ItemContainerStyle>
    3.         <Style TargetType={x:Type ListBoxItem}>
    4.             <Style.Triggers>
    5.                 <DataTrigger Binding={Binding YouProperty} Value=»False»>
    6.                     <Setter Property=»IsEnabled» Value=»False»/>
    7.                 </DataTrigger>
    8.             </Style.Triggers>
    9.         </Style>
    10.     </ListBox.ItemContainerStyle>
    11. </ListBox>

     

    A disfrutarlo

    Enlaces Interesantes WPF/Silverlight 05-12-2009

    Llegan los del día

     

    Reconocimiento del Texto de un Ink en WPF

    En el proyecto que estamos realizando aparte de la entrada anterior necesitamos que en un Ink pasemos a texto lo que va escribiendo el usuario, esto es bastante sencillo si nos apoyamos en la clase InkAnalyzer que se encuentra en el assembly IAWinfx localizado en la ruta %ProgramFiles%Reference AssembliesMicrosoftTablet PCv1.7 y que solo se encuentra en los Tablet PC. Una vez añadido este assembly el código es muy sencillo.

     

    El Xaml

     

    1. <Window x:Class=»TestAnalyzer.Window1″
    2. xmlns=»http://schemas.microsoft.com/winfx/2006/xaml/presentation»
    3. xmlns:x=»http://schemas.microsoft.com/winfx/2006/xaml»
    4. Title=»TestAnalyzer»
    5. SizeToContent=»WidthAndHeight»>
    6.     <Grid>
    7.         <StackPanel Orientation=»Vertical»>
    8.             <InkCanvas Name=»inkCanvas» Width=»600″ Height=»100″ />
    9.             <TextBox Name=»textBlock» />
    10.         </StackPanel>
    11.     </Grid>
    12. </Window>

     

    Tenemos un InkCanvas y un TextBox donde se ira poniendo el texto que dibuje el usuario. para hacer el reconocimiento tenemos

     

    1. public partial class Window1 : System.Windows.Window
    2. {
    3.     InkAnalyzer _analyzer;
    4.     public Window1()
    5.     {
    6.         InitializeComponent();
    7.         inkCanvas.StrokeCollected +=
    8.         new InkCanvasStrokeCollectedEventHandler(inkCanvas_StrokeCollected);
    9.         inkCanvas.StrokeErasing +=
    10.         new InkCanvasStrokeErasingEventHandler(inkCanvas_StrokeErasing);
    11.         _analyzer = new InkAnalyzer();
    12.         _analyzer.ResultsUpdated +=
    13.         new ResultsUpdatedEventHandler(analyzer_ResultsUpdated);
    14.     }
    15.     void inkCanvas_StrokeErasing(object sender, InkCanvasStrokeErasingEventArgs e)
    16.     {
    17.         _analyzer.RemoveStroke(e.Stroke);
    18.         _analyzer.BackgroundAnalyze();
    19.     }
    20.     void inkCanvas_StrokeCollected(object sender,
    21.     InkCanvasStrokeCollectedEventArgs e)
    22.     {
    23.         _analyzer.AddStroke(e.Stroke);
    24.         _analyzer.SetStrokeType(e.Stroke, StrokeType.Writing);
    25.         _analyzer.BackgroundAnalyze();
    26.     }
    27.     void analyzer_ResultsUpdated(object sender, ResultsUpdatedEventArgs e)
    28.     {
    29.         textBlock.Text = _analyzer.GetRecognizedString();
    30.     }
    31. }

     

    Y ya tenemos nuestro propio OCR

    ScreenCast de Silverlight

    Hola hoy os vengo a presentar a mi compañero Javi Jimenez (Maquero convencido) al que arrastre hace mas o menos un año a este mundo de WPF y Silverlight, primero enseñaros su pagina web hecha en Silverlight donde se presenta profesionalmente y ver como un curriculum hecho en Silverlight queda de lo mas chulo (que mejor manera de presentarse uno mostrando que sabe hacer).

    Podéis acceder a su pagina iamjavi.com

     

    image

     

    La segunda parte de este post enseñaros el ScreenCast que se ha currado cuyo titulo es  “Silverlight Creación de un UserControl"

    Screencast.1 – Creación de un "UserControl" from IAMJAVI.com on Vimeo.

    Echarle un vistazo, sobre todo aquellos que empezais en esta tecnología

    Enlaces Interesantes WPF/Silverlight 03-12-2009

    Aquí van las del día

     

  • Animating Clipping Paths using Perspective (Alex Knight)
  • Windows System Color Theme for Silverlight – Part Two (Corrina Barber)
  • Coding for Multi-Touch for Silverlight 3 (Charles Petzold)
  • The Future of Client App Dev : WPF and Silverlight Convergence (Pete Brown) – Muy recomendable
  • My Take on Brad Abrams’ PDC RIA Services Talk. (Shawn Wildermuth)
  • Create a Silverlight Europe weather map (Andrej Tozon)