Skip to main content
1 vote
0 answers
66 views

I created a WPF Class Library so that it would contain base styles that will be used in WPF application. In that class, I wanted to create like base styles for like buttons, expanders, etc. where say ...
NeoGenesis521's user avatar
2 votes
1 answer
105 views

I can create a derived Button class like the following, and I will automatically get the style from the default Button public class Button2 : Button { } However, I cannot seem to do the same with a ...
wforl's user avatar
  • 35
0 votes
1 answer
108 views

Context I made a custom control called ButtonPath which is derived from the default Button to allow me to easily add Buttons with different PathGeometry Figures and SolidColorBrush from the ...
AAng's user avatar
  • 123
0 votes
1 answer
103 views

If you look at the lower line of 3LvSub in the image above, it should be cut off at 4LvSub It's going to Lv5 How do I fix it? Below is the style I used. <Style x:Key="TreeView.Lv3" ...
hong_ar's user avatar
0 votes
0 answers
92 views

I would like to change the style of some DataGrid columns / cells (background, font weight, etc.) based on regular expressions. I have more than a few thousand rows and about 20 regular expressions to ...
Ludovic Wagner's user avatar
0 votes
1 answer
54 views

I don't understand why an implicit TextBlock-Style is not applied in a DataGrid, unless defined in the App.xaml code. IMO it foiles the rule: the nearer to the possible consumer in the VisualTree, the ...
Felix Liebrecht's user avatar
0 votes
0 answers
44 views

I would like to add a few data triggers for view validation. I built a CustomButton based on a Button with a few dependency properties and some customisations in the control template: border with ...
Ludovic Wagner's user avatar
0 votes
0 answers
50 views

Looking at this doc https://learn.microsoft.com/en-us/dotnet/desktop/wpf/controls/scrollbar-styles-and-templates?view=netframeworkdesktop-4.8 I copied the whole style to my style sheet and I set all ...
pf12345678910's user avatar
2 votes
0 answers
46 views

Imagine a WPF control that has a trigger in which its EnterAction/ExitActions have a Storyboard inside. In my case it's an Expander which animates the expand/collapse action based on the IsExpanded ...
Nicke Manarin's user avatar
-1 votes
1 answer
86 views

I've been working for a couple days to try to fully create a button style from an implementation that i have. I keep getting most of the way there, but am not able to fully configure it how i need to. ...
Jason's user avatar
  • 2,215
1 vote
0 answers
77 views

Here's my basic style for a ScrollViewer component in WPF: <Style TargetType="{x:Type ScrollBar}" x:Key="{x:Type ScrollBar}"> <Style.Triggers> <...
markzzz's user avatar
  • 48.3k
1 vote
0 answers
43 views

I created a ComboBox and set up everything without any styles. Then I wanted to change a foreground, but found out it cannot be done directly in properties since Windows 8. I generated a template and ...
apocalypse3000's user avatar
0 votes
1 answer
111 views

Screenshots: I have a custom control with Style as <Style TargetType="{x:Type local:IconCustom}"> <Setter Property="Template"> <Setter.Value> ...
Savad's user avatar
  • 1
0 votes
2 answers
225 views

I have a design from our project UI Designer. The design is for datagrids within our App. Within the design he has defined that the datagrid should always have a left margin of 32px BUT, the ...
Richard Gale's user avatar
  • 1,952
0 votes
1 answer
72 views

I want to animate an object along a circle with a sinusoidal radius, where the amplitude and frequency can change. I've managed to create the sinusoidal circle, and an object which follows its initial ...
Eternal Ambiguity's user avatar

15 30 50 per page
1
2 3 4 5
22