Click here to Skip to main content
15,886,362 members
Home / Discussions / WPF
   

WPF

 
GeneralRe: Shape Designer Pin
Kevin Marois23-Aug-17 7:06
professionalKevin Marois23-Aug-17 7:06 
GeneralRe: Shape Designer Pin
Gerry Schmitz24-Aug-17 5:41
mveGerry Schmitz24-Aug-17 5:41 
GeneralRe: Shape Designer Pin
Kevin Marois24-Aug-17 5:42
professionalKevin Marois24-Aug-17 5:42 
GeneralRe: Shape Designer Pin
Gerry Schmitz24-Aug-17 6:07
mveGerry Schmitz24-Aug-17 6:07 
GeneralRe: Shape Designer Pin
Kevin Marois24-Aug-17 6:11
professionalKevin Marois24-Aug-17 6:11 
GeneralRe: Shape Designer Pin
Gerry Schmitz24-Aug-17 6:35
mveGerry Schmitz24-Aug-17 6:35 
GeneralRe: Shape Designer Pin
Kevin Marois24-Aug-17 6:42
professionalKevin Marois24-Aug-17 6:42 
GeneralRe: Shape Designer Pin
Kevin Marois24-Aug-17 12:37
professionalKevin Marois24-Aug-17 12:37 
Here's an idea..

Create a Shape Designer app similar to Blend but MUCH more simple. The user can create basic shapes - Lines, Polygon, Rectangle, Ellipse, etc. This app then saves the path data to a meta-data file that my designer uses to load a toolbox.

Tn my resources I would have
    <Style x:Key="BaseShapeStyle"
        TargetType="Shape">
;Setter Property="Cursor" Value="Hand" />
        <Setter Property="HorizontalAlignment" Value="Left" />
        <Setter Property="VerticalAlignment" Value="Top" />
        <Setter Property="Stroke" Value="{Binding Stroke}" />
        <Setter Property="StrokeThickness" Value="{Binding StrokeThickness}" />
        <Setter Property="Fill" Value="{Binding Fill}" />

    </Style>

    <Style x:Key="EllipseStyle" 
        TargetType="{x:Type Ellipse}"
        BasedOn="{StaticResource BaseShapeStyle}">

        <Setter Property="Height" Value="{Binding Height}" />
        <Setter Property="Width" Value="{Binding Width}" />

    </Style>
Then in a user control I would have:
<Ellipse Style="{DynamicResource EllipseStyle}" 
            ToolTip="{Binding ElectrodeDisplayText}" 
            MouseLeftButtonDown="Ellipse_MouseLeftButtonDown" 
            MouseLeftButtonUp="Ellipse_MouseLeftButtonUp" 
            MouseMove="Ellipse_MouseMove"/>

So this way the basic shapes could all have their data saved and re-bound at runtime, and the UI pieces are very small.

By using the basic shapes and some grouping the user could create pretty much anything they wanted.

What do you think?
If it's not broken, fix it until it is.
Everything makes sense in someone's mind.
Ya can't fix stupid.

GeneralRe: Shape Designer Pin
Gerry Schmitz9-Sep-17 13:17
mveGerry Schmitz9-Sep-17 13:17 
AnswerRe: Shape Designer Pin
Pete O'Hanlon24-Aug-17 22:07
mvePete O'Hanlon24-Aug-17 22:07 
Questiondatagrid multiple selected items Pin
Member 1328589316-Aug-17 23:15
Member 1328589316-Aug-17 23:15 
AnswerRe: datagrid multiple selected items Pin
Pete O'Hanlon17-Aug-17 0:43
mvePete O'Hanlon17-Aug-17 0:43 
GeneralRe: datagrid multiple selected items Pin
Member 1328589317-Aug-17 18:50
Member 1328589317-Aug-17 18:50 
AnswerRe: datagrid multiple selected items Pin
Mycroft Holmes17-Aug-17 21:02
professionalMycroft Holmes17-Aug-17 21:02 
QuestionComboBox Items Not Showing Up Pin
Kevin Marois7-Aug-17 5:28
professionalKevin Marois7-Aug-17 5:28 
AnswerRe: ComboBox Items Not Showing Up Pin
Mycroft Holmes7-Aug-17 15:22
professionalMycroft Holmes7-Aug-17 15:22 
GeneralRe: ComboBox Items Not Showing Up Pin
Kevin Marois8-Aug-17 4:51
professionalKevin Marois8-Aug-17 4:51 
GeneralRe: ComboBox Items Not Showing Up Pin
Kevin Marois8-Aug-17 5:33
professionalKevin Marois8-Aug-17 5:33 
GeneralRe: ComboBox Items Not Showing Up Pin
Mycroft Holmes8-Aug-17 13:57
professionalMycroft Holmes8-Aug-17 13:57 
QuestionListBox Style Problem Pin
Kevin Marois27-Jul-17 6:53
professionalKevin Marois27-Jul-17 6:53 
AnswerRe: ListBox Style Problem Pin
Henrik Jonsson7-Aug-17 9:35
Henrik Jonsson7-Aug-17 9:35 
QuestionStyle Not being Applied Pin
Kevin Marois24-Jul-17 7:43
professionalKevin Marois24-Jul-17 7:43 
AnswerRe: Style Not being Applied Pin
Richard Deeming24-Jul-17 7:54
mveRichard Deeming24-Jul-17 7:54 
GeneralRe: Style Not being Applied Pin
Kevin Marois24-Jul-17 10:17
professionalKevin Marois24-Jul-17 10:17 
GeneralRe: Style Not being Applied Pin
Richard Deeming25-Jul-17 0:37
mveRichard Deeming25-Jul-17 0:37 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.