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> […]
WPF Element Visual Render Bug
.net 8 wpf
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.
MVVM, DDD, and WPF Layered Application Project Structure Guidance
I am trying to setup my application’s structure in VS and I want to “try” and future proof it to a reasonable level. This application will be a WPF re-write of an old Winform app that had followed no conventions. No Layers, Tiers, Acronyms, etc…
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.
Combining multiple events into one action/ Defer refreshing
So in a GUI program I have multiple events that trigger a update of a workspace. This update call is costly so I would want it to not happen very often.
Is a 64-bit Laptop going to be a problem for “Metro” apps? [closed]
Closed 12 years ago.
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 […]
How to make creating viewmodels at runtime less painful
I apologize for the long question, it reads a bit as a rant, but I promise it’s not! I’ve summarized my question(s) below