Relative Content

Tag Archive for wpf

Error loading wpf customcontrol using staticresource

<Style TargetType=”{x:Type local:DrawerMenu}”> <Setter Property=”ItemContainerStyle” Value=”{StaticResource LBXI.DrawerMenu}”/> <Setter Property=”Template”> <Setter.Value> <ControlTemplate TargetType=”{x:Type local:DrawerMenu}”> <Grid> <Grid.RowDefinitions> <RowDefinition Height=”auto”/> <RowDefinition/> </Grid.RowDefinitions> <ToggleButton Content=”Open” x:Name=”Icon” IsChecked=”{Binding RelativeSource={RelativeSource Templatedparent}, Path=IsOpen,Mode=TwoWay}” HorizontalAlignment=”Left” Width=”30″ Height=”30″/> <ItemsPresenter Grid.Row=”1″/> </Grid> </ControlTemplate> </Setter.Value> </Setter> </Style> <Style TargetType=”{x:Type ListBoxItem}” x:Key=”LBXI.DrawerMenu”> <Setter Property=”Template”> <Setter.Value> <ControlTemplate TargetType=”{x:Type ListBoxItem}”> <Border BorderThickness=”1″ BorderBrush=”Black” > <TextBox Text=”{Binding .}”/> </Border> </ControlTemplate> […]

Add complex customization to form or create two forms?

I’m working in a WPF application that both imports and exports delimited text files. At both ends, there is a UserControl which encapsulates some logic about delimiter configuration. It has some controls for individually selecting delimiters, and a ‘Presets’ dropdown for quickly selecting certain common combinations such as CSV.

WPF, MVVM, EF, POCO guidance required on simple architecture

(sorry for my poor english)
I am developing a application using WPF, EF Code First using MVVM (Caliburn.Micro).
It should be used mostly to CRUD work. I created a BaseViewModel<T> class from wich all other ViewModels inherit and exposed a T Selected property to bind to the View. I know it is not recomended to expose a Model to the View but it just make things simple to get the app running.

How to structure an application that combines WCF and WPF

I’m in the process of learning how to use WCF (Windows Communication Foundation) to allow a client/server desktop application to communicate. The application’s UI will be implemented using WPF, and we will probably use SQL Server for our database.

Assigned to a new WPF project, know nothing about it [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for […]