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)
- New WinUI project asks for non-existant .NET SDK HOT 1
- Migrating from BackRequested UWP to WinUI-3
- Error name with UWP Modern .NET templates HOT 3
- Non resizable window withouth title bar has border when updating to 1.6
- Regression: mouse wheel unusable in scrollviewer containing stackpanel in v1.6
- AnimatedIcon break AoT when used in a style in a class library HOT 3
- Exception Processing Message 0xc0000005 - Unexpected parameters HOT 1
- InputNonClientPointerSource::GetForWindowId crashes app
- Obscure error message when modifying property accessed by UI on timer thread
- Multiple finger touch on Navigation View multiple items become selected HOT 1
- WinUI 3 app started via debugger will always have unicolor (black) title bar HOT 1
- Getting ExtendsContentIntoTitleBar value will cause unicolor title bar since WASDK 1.6
- When a WinUI3 Desktop window that is not-packaged and self-contained is started, it will cause any window with the TOPMOST style of any other process to lose the TOPMOST effect
- Microsoft To Do Not Working
- The style of the ListViewItem regressed to default style when using 2.7.3 version of Microsoft.UI.Xaml
- Text block with italic and justified text seems to be cut off
- WinUI 3 blank app packaged with WAP project does not start when published HOT 2
- TreeView Lost animation during expansion
- Can not publish WinUI 3 app for ARM64 architecture with WAP project HOT 1
- Report better errors when a library doesn't support AoT HOT 2
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.