Comments (1)
InitializeComponent
requires you having a matching XAML file with a matching x:Class="MyClass"
set on the root element. However the XAML schema used in UWP/WinUI 3 doesn't support generic class declarations so you can't actually do it.
(The WPF schema supports it :') )
You would need to have an intermediate declaration that solidifies an implementation like
public abstract class BoolContentDialog : ContentDialog<bool> { ... }
and use that as the base of your class that wants a XAML file.
from microsoft-ui-xaml.
Related Issues (20)
- Focus does not move into the frame after navigating to one from a navigation view. HOT 2
- Setting true to NavigationFailedEventArgs.Handled is not respected
- Component Xaml file missing from app directory HOT 4
- Can not Build Project due to error message APPX110 Payload contains two or more files with the same destination path '.pdb'. HOT 3
- The Print UI dialogue is not shown on the Windows platform when the "EntryPoint" is set as "Windows.PartialTrustApplication" in Package.appxmanifest. HOT 2
- The first time "microsoft." is typed into a TextBox control, it will be capitalized for no reason HOT 4
- Multiple x:Bind to Name fails to build HOT 4
- While scrolling through the rows in the DataGrid, the value of the ComboBox element in the DataGridTemplateColumn CellTemplate is not updated correctly HOT 2
- Scrolling through very large number of items in ItemsRepeater + virtualized Layout + ScrollView causes blank frames HOT 2
- Command Bar - Issue with the Z - Index flow when "More Options" flyout is open. HOT 1
- Unexpected items were obtained in a subclass of ItemsControl HOT 1
- [ListView] The app crash when try to use the right click during a reorder operation. HOT 1
- WinUI 3 Acrylic effect not working properly over MediaPlayerElement HOT 2
- Dragging a file from Explorer over top of the application window will launch another process HOT 1
- Proposal: Improve exception message for incorrect bound type using x:DataType
- ComboBox selects the wrong item after it is collapsed HOT 1
- ListView throws ArgumentOutOfRangeException when CollectionChanged is handled with Action = Reset HOT 1
- SplitButton is drawed incorrectly when IsEnabled=false by default and then enabled back HOT 2
- The TreeView component does not maintain the states of components that have a state such as CheckBox HOT 1
- PublishSingleFile + no WindowsAppSDKSelfContained is broken HOT 4
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.