-
Notifications
You must be signed in to change notification settings - Fork 1
Adding mvux list view app showing how to select and update Items in a Mvux ListState #19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
DevTKSS
wants to merge
8
commits into
master
Choose a base branch
from
adding-Mvux-ListView-app
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
47c8de6
feat(MvuxListViewSample): Add Sampleapp from Mvux ListView Tutorial
DevTKSS ed6fa67
chore: Merge master into adding-MvuxListView-app
DevTKSS 730b2f5
chore: add the repo sample prefix to the MvuxListApp
DevTKSS 5fb97d6
chore: apply suggested Review changes
DevTKSS bb4c791
chore: fix typo
DevTKSS 538d814
chore: fix launchsettings.json
DevTKSS 682795c
chore: fix launch.json
DevTKSS 34c2f68
chore: update launch.json
DevTKSS File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
"version": "2.0.0", | ||
"tasks": [ | ||
{ | ||
"label": "build-desktop", | ||
"label": "build-desktop MvuxGallery", | ||
"command": "dotnet", | ||
"type": "process", | ||
"args": [ | ||
|
@@ -15,7 +15,7 @@ | |
"problemMatcher": "$msCompile" | ||
}, | ||
{ | ||
"label": "publish-desktop", | ||
"label": "publish-desktop MvuxGallery", | ||
"command": "dotnet", | ||
"type": "process", | ||
"args": [ | ||
|
@@ -26,6 +26,32 @@ | |
"/consoleloggerparameters:NoSummary" | ||
], | ||
"problemMatcher": "$msCompile" | ||
}, | ||
{ | ||
"label": "build-desktop MvuxListApp", | ||
"command": "dotnet", | ||
"type": "process", | ||
"args": [ | ||
"build", | ||
"${workspaceFolder}/MvuxListApp/MvuxListApp.csproj", | ||
"/property:GenerateFullPaths=true", | ||
"/property:TargetFramework=net9.0-desktop", | ||
"/consoleloggerparameters:NoSummary" | ||
], | ||
"problemMatcher": "$msCompile" | ||
}, | ||
{ | ||
"label": "publish-desktop MvuxListApp", | ||
"command": "dotnet", | ||
"type": "process", | ||
"args": [ | ||
"publish", | ||
"${workspaceFolder}/MvuxListApp/MvuxListApp.csproj", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The project path references 'MvuxListApp.csproj' but the actual project file is 'DevTKSS.Uno.MvuxListApp.csproj'. This will cause the publish task to fail. Copilot uses AI. Check for mistakes. Positive FeedbackNegative Feedback |
||
"/property:GenerateFullPaths=true", | ||
"/property:TargetFramework=net9.0-desktop", | ||
"/consoleloggerparameters:NoSummary" | ||
], | ||
"problemMatcher": "$msCompile" | ||
} | ||
] | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<Application x:Class="DevTKSS.Uno.MvuxListApp.App" | ||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns:utum="using:Uno.Toolkit.UI.Material"> | ||
|
||
<Application.Resources> | ||
<ResourceDictionary> | ||
<ResourceDictionary.MergedDictionaries> | ||
<!-- Load WinUI resources --> | ||
<XamlControlsResources xmlns="using:Microsoft.UI.Xaml.Controls" /> | ||
<utum:MaterialToolkitTheme | ||
ColorOverrideSource="ms-appx:///Styles/ColorPaletteOverride.xaml"> | ||
<!-- NOTE: You can override the default Roboto font by providing your font assets here. --> | ||
<!-- <utum:MaterialToolkitTheme.FontOverrideDictionary> | ||
<ResourceDictionary> | ||
<FontFamily x:Key="MaterialLightFontFamily">ms-appx:///Uno.Fonts.Roboto/Fonts/Roboto-Light.ttf#Roboto</FontFamily> | ||
<FontFamily x:Key="MaterialMediumFontFamily">ms-appx:///Uno.Fonts.Roboto/Fonts/Roboto-Medium.ttf#Roboto</FontFamily> | ||
<FontFamily x:Key="MaterialRegularFontFamily">ms-appx:///Uno.Fonts.Roboto/Fonts/Roboto-Regular.ttf#Roboto</FontFamily> | ||
</ResourceDictionary> | ||
</utum:MaterialToolkitTheme.FontOverrideDictionary> --> | ||
</utum:MaterialToolkitTheme> | ||
</ResourceDictionary.MergedDictionaries> | ||
|
||
<!-- Add resources here --> | ||
|
||
</ResourceDictionary> | ||
</Application.Resources> | ||
|
||
</Application> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,100 @@ | ||
using DevTKSS.Uno.MvuxListApp.Models; | ||
using DevTKSS.Uno.MvuxListApp.Presentation; | ||
using Uno.Resizetizer; | ||
|
||
namespace DevTKSS.Uno.MvuxListApp; | ||
public partial class App : Application | ||
{ | ||
/// <summary> | ||
/// Initializes the singleton application object. This is the first line of authored code | ||
/// executed, and as such is the logical equivalent of main() or WinMain(). | ||
/// </summary> | ||
public App() | ||
{ | ||
this.InitializeComponent(); | ||
} | ||
|
||
protected Window? MainWindow { get; private set; } | ||
protected IHost? Host { get; private set; } | ||
|
||
protected async override void OnLaunched(LaunchActivatedEventArgs args) | ||
{ | ||
var builder = this.CreateBuilder(args) | ||
// Add navigation support for toolkit controls such as TabBar and NavigationView | ||
.UseToolkitNavigation() | ||
.Configure(host => host | ||
#if DEBUG | ||
// Switch to Development environment when running in DEBUG | ||
.UseEnvironment(Environments.Development) | ||
#endif | ||
.UseLogging(configure: (context, logBuilder) => | ||
{ | ||
// Configure log levels for different categories of logging | ||
logBuilder | ||
.SetMinimumLevel( | ||
context.HostingEnvironment.IsDevelopment() ? | ||
LogLevel.Information : | ||
LogLevel.Warning) | ||
|
||
// Default filters for core Uno Platform namespaces | ||
.CoreLogLevel(LogLevel.Warning); | ||
|
||
// Uno Platform namespace filter groups | ||
// Uncomment individual methods to see more detailed logging | ||
//// Generic Xaml events | ||
//logBuilder.XamlLogLevel(LogLevel.Debug); | ||
//// Layout specific messages | ||
//logBuilder.XamlLayoutLogLevel(LogLevel.Debug); | ||
//// Storage messages | ||
//logBuilder.StorageLogLevel(LogLevel.Debug); | ||
//// Binding related messages | ||
//logBuilder.XamlBindingLogLevel(LogLevel.Debug); | ||
//// Binder memory references tracking | ||
//logBuilder.BinderMemoryReferenceLogLevel(LogLevel.Debug); | ||
//// DevServer and HotReload related | ||
//logBuilder.HotReloadCoreLogLevel(LogLevel.Information); | ||
//// Debug JS interop | ||
//logBuilder.WebAssemblyLogLevel(LogLevel.Debug); | ||
|
||
}, enableUnoLogging: true) | ||
.UseConfiguration(configure: configBuilder => | ||
configBuilder | ||
.EmbeddedSource<App>() | ||
.Section<AppConfig>() | ||
) | ||
.ConfigureServices((context, services) => | ||
{ | ||
// TODO: Register your services | ||
//services.AddSingleton<IMyService, MyService>(); | ||
}) | ||
.UseNavigation(ReactiveViewModelMappings.ViewModelMappings, RegisterRoutes) | ||
); | ||
MainWindow = builder.Window; | ||
|
||
#if DEBUG | ||
MainWindow.UseStudio(); | ||
#endif | ||
MainWindow.SetWindowIcon(); | ||
|
||
Host = await builder.NavigateAsync<Shell>(); | ||
} | ||
|
||
private static void RegisterRoutes(IViewRegistry views, IRouteRegistry routes) | ||
{ | ||
views.Register( | ||
new ViewMap(ViewModel: typeof(ShellModel)), | ||
new ViewMap<MainPage, MainModel>(), | ||
new DataViewMap<SecondPage, SecondModel, Entity>() | ||
); | ||
|
||
routes.Register( | ||
new RouteMap("", View: views.FindByViewModel<ShellModel>(), | ||
Nested: | ||
[ | ||
new ("Main", View: views.FindByViewModel<MainModel>(), IsDefault:true), | ||
new ("Second", View: views.FindByViewModel<SecondModel>()), | ||
] | ||
) | ||
); | ||
} | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The project path references 'MvuxListApp.csproj' but the actual project file is 'DevTKSS.Uno.MvuxListApp.csproj'. This will cause the build task to fail.
Copilot uses AI. Check for mistakes.