locked
Blend crashes editing StrokeDashArray (Corrado Cavalli [MVP]) - 11/29/2007 12:40 PM PST RRS feed

  • Question

  • By: Corrado Cavalli [MVP]


    Blend2 Sept CTP systematically crashes when adding StrokeDashArray data
    while editing a FocusVisualStyle

    Start from this XAML

    <Window
    xmlns="
    http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="
    http://schemas.microsoft.com/winfx/2006/xaml"
    x:Class="FocusVisualStyle.Window1"
    x:Name="Window"
    Title="Window1"
    Width="640" Height="480">

    <Window.Resources>
    <Style x:Key="FocusStyle" TargetType="{x:Type Control}">
    <Setter Property="Template" Value="{DynamicResource FocusTemplate}"/>
    </Style>
    <ControlTemplate x:Key="FocusTemplate" TargetType="{x:Type Control}">
    <Rectangle Stroke="#FFF41010" StrokeThickness="3" RadiusX="2"
    RadiusY="2"/>
    </ControlTemplate>
    </Window.Resources>

    <Grid x:Name="LayoutRoot">
    <TextBox Margin="206,67,234,0" VerticalAlignment="Top" Height="28"
    Text="TextBox" TextWrapping="Wrap" FocusVisualStyle="{DynamicResource
    FocusStyle}"/>
    </Grid>
    </Window>

    Now edit the ControlTemplate, select StrokeDashArray property, New button,
    Add new item, type one as Value.
    Now Click "add new value" again: Blend crashes here.


    --
    Corrado Cavalli [Microsoft .NET MVP-MCP]
    UGIdotNET -
    http://www.ugidotnet.org
    Weblog: http://blogs.ugidotnet.org/corrado/

    --
    Corrado Cavalli [Microsoft .NET MVP-MCP]
    UGIdotNET -
    http://www.ugidotnet.org
    Weblog: http://blogs.ugidotnet.org/corrado/
    Thursday, February 21, 2008 8:19 PM

All replies

  • By: Brennon Williams

    Howdy Corrado,
    
    I couldnt find the StrokeDashArray property inside the template at all?
    
    I thought I would test it on a later build for you to see if it was still 
    occuring.
    
    Sorry mate.
    
    Cheers
    -- 
    Want to learn how to use Blend and visual studio?
    
    http://www.learnexpressionstudio.com
    http://www.expressionblend.com
    http://www.x-coders.com
    
    
    "Corrado Cavalli [MVP]" wrote:
    
    > Blend2 Sept CTP systematically crashes when adding StrokeDashArray data 
    > while editing a FocusVisualStyle
    > 
    > Start from this XAML
    > 
    > <Window
    >  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    >  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    >  x:Class="FocusVisualStyle.Window1"
    >  x:Name="Window"
    >  Title="Window1"
    >  Width="640" Height="480">
    > 
    >  <Window.Resources>
    >   <Style x:Key="FocusStyle" TargetType="{x:Type Control}">
    >    <Setter Property="Template" Value="{DynamicResource FocusTemplate}"/>
    >   </Style>
    >   <ControlTemplate x:Key="FocusTemplate" TargetType="{x:Type Control}">
    >    <Rectangle Stroke="#FFF41010" StrokeThickness="3" RadiusX="2" 
    > RadiusY="2"/>
    >   </ControlTemplate>
    >  </Window.Resources>
    > 
    >  <Grid x:Name="LayoutRoot">
    >   <TextBox Margin="206,67,234,0" VerticalAlignment="Top" Height="28" 
    > Text="TextBox" TextWrapping="Wrap" FocusVisualStyle="{DynamicResource 
    > FocusStyle}"/>
    >  </Grid>
    > </Window>
    > 
    > Now edit the ControlTemplate, select StrokeDashArray property, New button, 
    > Add new item, type one as Value.
    > Now Click "add new value" again: Blend crashes here.
    > 
    > 
    > -- 
    > Corrado Cavalli [Microsoft .NET MVP-MCP]
    > UGIdotNET - http://www.ugidotnet.org
    > Weblog: http://blogs.ugidotnet.org/corrado/
    > 
    > -- 
    > Corrado Cavalli [Microsoft .NET MVP-MCP]
    > UGIdotNET - http://www.ugidotnet.org
    > Weblog: http://blogs.ugidotnet.org/corrado/ 
    > 
    > 
    Friday, February 22, 2008 9:23 PM
  • By: Corrado Cavalli [MVP]

    Hi Brennon,
    It is not on template because Blend crashes before being able to add it.
    To test:
    Start from the code I've posted (i suggest you to save the project) then try
    adding the StrokeDashArray property via designer following these steps:

    -Click on New button (near StrokeDashArray)
    - Add a new value
    - Edit the item value (just type a numeric value )
    - Press the "Add new item button" again.

    >I thought I would test it on a later build
    I'd love to have that build too... ;-)

    Cheers
    --
    Corrado Cavalli [Microsoft .NET MVP-MCP]
    UGIdotNET -
    http://www.ugidotnet.org
    Weblog: http://blogs.ugidotnet.org/corrado/
    Friday, February 22, 2008 9:24 PM
  • By: Unni Ravindranathan (MS)

    Thanks Corrado. The fact that we don't edit StrokeDashArray well is a known 
    issue - while we might not crash in the December Preview, the user 
    experience still needs a lot to be desired :).
    
    Thanks,
    -Unni
    
    "Corrado Cavalli [MVP]" <corradoN0SP4MPL34S3@mvps.0rg> wrote in message 
    news:5raeddF1312drU1@mid.individual.net...
    > Hi Brennon,
    > It is not on template because Blend crashes before being able to add it.
    > To test:
    > Start from the code I've posted (i suggest you to save the project) then 
    > try adding the StrokeDashArray property via designer following these 
    > steps:
    >
    > -Click on New button (near StrokeDashArray)
    > - Add a new value
    > - Edit the item value (just type a numeric value )
    > - Press the "Add new item button" again.
    >
    >>I thought I would test it on a later build
    > I'd love to have that build too... ;-)
    >
    > Cheers
    > -- 
    > Corrado Cavalli [Microsoft .NET MVP-MCP]
    > UGIdotNET - http://www.ugidotnet.org
    > Weblog: http://blogs.ugidotnet.org/corrado/ 
    
    Friday, February 22, 2008 9:25 PM