Comments (5)
I tested it to be an ownerType
issue. I get the result I want when the ownerType
of VisibleDockablesProperty
is DocumentDock
. Is there a good way to handle the ownerType
of VisibleDockablesProperty
in the inheritance chain?
from microsoft-ui-xaml.
@GochenRyan I'm having trouble understanding the issue. can you explain a bit more/provide a repro project that is scoped to the problem you are facing?
from microsoft-ui-xaml.
@ranjeshj
I want to use the ContentTemplateSelector of ContentControl and the ItemTemplateSelector of ItemsControl to generate the corresponding custom controls step by step according to the node tree of xaml here๏ผ
<local1:DockControl>
<models:RootDock>
<models:RootDock.VisibleDockables>
<models:DocumentDock>
<models:DocumentDock.VisibleDockables>
<models:Document x:Name="Document1" Title="Program.cs">
<TextBlock Text="{Binding Title}"/>
</models:Document>
<!--<models:Document x:Name="Document2" Title="App.axaml">
<TextBlock Text="{Binding Title}"/>
</models:Document>-->
</models:DocumentDock.VisibleDockables>
</models:DocumentDock>
</models:RootDock.VisibleDockables>
</models:RootDock>
</local1:DockControl>
When creating a RootDockControl, its Items are not just the next level nodes.
from microsoft-ui-xaml.
@ranjeshj Actually I have a solution. I created a new branch fix-containerdp and fixed this issue in commit 9b43b77802fdb0e097ce09c8f9e7aeefe27b43f8. In short, by putting the container dependency property at the last level of the inheritance chain. But I don't know why the container dependency property needs to be handled specially.
from microsoft-ui-xaml.
@ranjeshj My fault. I misunderstood the usage of Collection-type dp. FYI: https://learn.microsoft.com/en-us/windows/uwp/xaml-platform/custom-dependency-properties#collection-type-dependency-properties.
from microsoft-ui-xaml.
Related Issues (20)
- Nested ObservableCollection crashes when removing item
- Proposal: Add support for XAML codegen in Visual Studio for UWP/WinUI 2 on Modern .NET HOT 2
- Long text not displayed correctly in TextBox over 12k lines HOT 2
- Bug: Unhandled Windows.UI.Xaml.LayoutCycleException from ProgressBar with Large Maximum HOT 1
- [.NET MAUI 9.0 Preview 6, SkiaSharp 3.0-preview4.1] On Windows/WinUI 3 SkiaSharp's SKGLView crashes a .NET MAUI app when it is built in the unpackaged mode HOT 5
- In-app toolbar (XAML Visual Tree) can't select Popup elements
- Modal pages in a maximized app do not cover the whole window in MAUI 9.0 Preview 6 / WinUI 3 HOT 1
- AOT Warning: (CsWinRT1028) The XamlMetaDataProvider is not marked partial HOT 1
- When the number of characters in the `TextBox` control exceeds a certain threshold, the content becomes hidden. HOT 2
- KeyboardAccelerator event fire multiple times HOT 13
- TabView unloads currently selected tabitem when other tabs are removed HOT 1
- Triggering TeachingTip light dismiss during opening breaks light dismiss HOT 2
- WinUI 3 ScrollViewer does not bubble PointerCaptureLost event when ancestor calls CapturePointer in PointerPressed HOT 3
- Crash in `Microsoft.VisualStudio.DesignTools.WinUITap.dll`
- ListView navigation keys are ignoring keyboard modifiers
- Copilot+ ARM64 : System.BadImageFormatException: at is not a valid Win32 application. HOT 7
- Enum DependencyProperties fail in Hot Reload
- Regression v1.6: App crash when changing system theme after closing one of the windows HOT 4
- [WinUI]C++ create and reference a WinUI 3 Component library project failed with MIDL5157 MIDL1001 MIDL2011errors and MIDL2214 warning HOT 2
- Proposal: Expose a method in ListViewBase that allows scrolling to a specific item using the item's index. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from microsoft-ui-xaml.