Skip to main content
Filter by
Sorted by
Tagged with
0 votes
1 answer
84 views

I have a UserControl with a dependency property and its own ViewModel. In xaml <control:SelectInDataBaseControl DataContext="{Binding Property}" ForegroundColor="Both" /> ...
Yannick's user avatar
  • 323
0 votes
0 answers
65 views

I am placing a user control inside a user control and I am having trouble binding the inner dependency property to an outer dependency property. I am using .NET 8. It is probably something stupid ...
Dogulas's user avatar
  • 55
0 votes
1 answer
58 views

I'm working with a TextBlock in WPF and need to apply a background color only to the text content without affecting the entire TextBlock. I don't want to use Run or Inline elements because this ...
Rits Sweet's user avatar
0 votes
0 answers
61 views

We are using MVVM for our WPF application, I have created an extension for ContentControl for a dialog footer, this footer contains buttons. We set the button commands from the ViewModel in the xmal ...
Richard Gale's user avatar
  • 1,952
-1 votes
1 answer
98 views

I'm trying to make a small POC of a re-usable control but i'm experiencing weird behavior that I can't for the love of god figure out why. So I'm hoping anyone here can shed some light onto this. I'm ...
Dirk S.'s user avatar
  • 65
0 votes
0 answers
26 views

I have a couple of UserControls which I extend with Dependency Properties: public static DependencyProperty CustomBrushProperty = DependencyProperty.Register( nameof(CustomBrush), typeof(...
user avatar
0 votes
0 answers
1k views

How to know a particular version of dependency can be compiled with a minimum/maximum version of Android SDK API version. e.g. How to know Dependency 'androidx.appcompat:appcompat-resources:1.7.0' ...
user1027685's user avatar
2 votes
0 answers
277 views

I am developing an AR app using google sceneform library, I have added Sceneform library in the dependency, and also i have added google filament library version 1.21.1 as well. implementation 'com....
Agasthi's user avatar
  • 35
1 vote
2 answers
78 views

I have a DependencyProperty of type ImageSource named "Image". public static readonly DependencyProperty ImageProperty = DependencyProperty.Register(nameof(Image), typeof(ImageSource), ...
Krugs's user avatar
  • 87
0 votes
1 answer
229 views

I want a WrapPanel for Avalonia that wraps its content by placing the items next to each other, without spacing, just like in this article: https://www.codeproject.com/Articles/482501/TilePanel-An-...
Ruben's user avatar
  • 75
0 votes
1 answer
112 views

CategoryModel has a property & dependency-property Color of type Object Brush (Complex data type) that can't be Stored using EF directly so I use Serialization and store it as string. using System....
Shadow's user avatar
  • 1
0 votes
0 answers
37 views

Consider the following scenario: a UserControl featuring two distinct dependency properties: Customer and Company. Linked to this control is a list of objects from a class, each possessing properties ...
Carlos's user avatar
  • 1,832
0 votes
1 answer
64 views

How to pass property (SomeProperty) from ParentUserControl context to DependencyProperty (MyDProperty) of the ChildUserControl? In XAML, it should be: <uc:ChildUserControl MyDProperty="{...
Taras's user avatar
  • 79
1 vote
1 answer
164 views

TL;DR: Binding a {StaticResource SomePage} to a DependencyProperty of type Page gives the error Microsoft.VisualStudio.XSurface.Wpf.Page is not a valid value for property... Long Version I am trying ...
dow's user avatar
  • 599
0 votes
1 answer
67 views

I have a UserControl who's code-behind has declared a dependency property. I also have another UserControl who is serving as the main UI. The main UI usercontrol has set its DataContext to a viewmodel ...
TylerWright's user avatar
-1 votes
1 answer
146 views

I have an assembly with a custom Control class the defines an attached property. public class LayerView : MultiSelector { public static readonly DependencyProperty PathStyleProperty = ...
Joe's user avatar
  • 7,194
0 votes
1 answer
67 views

I am having trouble binding to a dependency property on a custom control. This is my custom control. It's basically a textbox that only allows numeric input and exposes a "Value" dependency ...
Elias Verstappe's user avatar
0 votes
0 answers
63 views

I have ControlA hosting ControlB, both of them have DependencyProperty of type ObservableCollection, the nested control's (ControlB) property is binded to parent (ControlA) property, if something is ...
Notrum666's user avatar
  • 377
0 votes
1 answer
53 views

I have a custom control I have set up in c#/wpf. I am using Dependency properties for items, some of these are optional, but my current code seems very convoluted: public class PopupMenu : ...
Richard Gale's user avatar
  • 1,952
2 votes
1 answer
101 views

I have a custom TextBox that adds MinMaxValidationRule when both Min and Max properties are set public class TextBox2 : TextBox { public static readonly DependencyProperty MinProperty = ...
Muhammad Sulaiman's user avatar
0 votes
1 answer
61 views

In the UserControl.xaml: <UserControl x:Class="OurNameSpace.SystemCalibration.Controls.PortSelector" xmlns=http://schemas.microsoft.com/winfx/2006/xaml/presentation ...
user12270575's user avatar
0 votes
1 answer
73 views

I'm working with a user control that includes a shared DataGrid used by multiple user controls. To customize the 'Maximum' and 'Minimum' values for each user control, I've implemented Dependency ...
abdou_dev's user avatar
  • 827
0 votes
1 answer
873 views

I have a config file that is meant to use @PropertySource to set values. However it seems like it is not working (below) @Configuration @PropertySources({ @PropertySource(value = "file:/...
Rachel Kim's user avatar
0 votes
0 answers
375 views

I have Maven multi module project where i have hardcoded the pom version in main pom and all of the child pom's as well. But am trying to use the maven-ci-friendly-version to my project. So i have ...
Ramesh Thiyagarajan's user avatar
0 votes
2 answers
100 views

I am creating an UserControl with 2 RepeatButtons and one TextBox. So problems begin when i want to Bind some properties.... FYI i am using Caliburn.micro as Framework.. i need to have the value of ...
Frenchy's user avatar
  • 17.1k

1
2 3 4 5
47