Coder Social home page Coder Social logo

microsoftdocs / communitytoolkit Goto Github PK

View Code? Open in Web Editor NEW
103.0 13.0 82.0 12.09 MB

The Official Docs for the Community Toolkits

Home Page: https://learn.microsoft.com/dotnet/communitytoolkit

License: Creative Commons Attribution 4.0 International

net dotnet dotnet-maui android community community-toolkit ios maui toolkit windows

communitytoolkit's Introduction

Community Toolkit Docs

This repo contains the guidance documentation for various Community Toolkits that are part of the .NET Foundation.

This includes the following projects:

  • .NET Community Toolkit (and MVVM Toolkit)
  • .NET MAUI Community Toolkit
  • Windows Community Toolkit (though our docs are still migrating from the old repo here)

More information to come...

Microsoft Open Source Code of Conduct

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.

communitytoolkit's People

Contributors

alexbuckgit avatar axemasta avatar bijington avatar brminnick avatar cliffagius avatar cmcclister avatar danielftz avatar davidbritch avatar dragon7307 avatar georgeleithead avatar havendv avatar ieuanwalker avatar intelligentraccoon avatar jfversluis avatar joonghyuncho avatar jsquaredosquared avatar kphillpotts avatar michael-hawker avatar mrlacey avatar ne0rrmatrix avatar nicjay avatar pictos avatar profix898 avatar pureween avatar raprice avatar sergio0694 avatar theverystarlk avatar vhugogarcia avatar vladislavantonyuk avatar zacharylayne avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

communitytoolkit's Issues

CommunityToolkit.Mvvm AlsoNotifyChangeForAttribute class


Issue moved from dotnet/docs#30548


From @antoniohlopes on Wednesday, August 10, 2022 1:07:18 AM

Description

Hi,
I'm using CommunityToolkit.Mvvm version 7.1.2 in MAUI project.
The "AlsoNotifyChangeForAttribute" cannot be found in version 8.0.0 after update NuGet project packages.
Regards
Antonio

Version

Other (please put exact version in description textbox)

Previous behavior

the project can be compiled.

New behavior

Severity Code Description Project File Line Suppression State
Error CS0246 The type or namespace name 'AlsoNotifyChangeFor' could not be found (are you missing a using directive or an assembly reference?) SmartWedgePLCApp (net6.0-android), SmartWedgePLCApp (net6.0-windows10.0.19041.0) C:\Users\anton\source\repos\DacksSmartWedgPLC\SmartWedgePLCApp\BaseController.cs 14 Active

Type of breaking change

  • Binary incompatible: Existing binaries may encounter a breaking change in behavior, such as failure to load/execute or different run-time behavior.
  • Source incompatible: Source code may encounter a breaking change in behavior when targeting the new runtime/component/SDK, such as compile errors or different run-time behavior.

Reason for change

stay updated

Recommended action

do not update to CommunityToolkit.Mvvm version 8.0.0

Feature area

C#

Affected APIs

No response

Link to sample app goes to a 404

[Enter feedback here]
Where the text says :
You can find an example of this feature in action in the .NET MAUI Community Toolkit Sample Application.
Link should be to https://github.com/CommunityToolkit/Maui/blob/main/samples/CommunityToolkit.Maui.Sample/Pages/Views/Expander/ExpanderPage.xaml.cs
I think


Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

Missing using(s) that are needed.

In the builder.*** it fails as it needs the using CommunityToolkit.Maui;

This is not in the docs.
[Enter feedback here]


Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

More complete example of OnPropertyChanged

Can an example of, how the FullName property mentioned in OnPropertyChanged would look like, be included in this page? I can't seem to find an example in the Sample App as well.


Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

What's the correct binding syntax for Task<T> properties?

The documentation for handing Task properties describes how to hook it up to XAML. For example is this safe?

public class MyViewModel : ObservableObject
{
  private Task<IList<Data>>? myData;
  public Task<IList<Data>>? MyData { get => _myData; set => SetPropertyAndNotifyOnCompletion(_myData, value); }
}
<ListView ItemsSource="{Binding MyData.Result}" />

Because intuitively it feels really wrong - what if the task isn't completed yet? Result will block and most likely hang the UI (in my experiments this is indeed the case)


Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

Include API doc links

Currently it is not possible to include any xrefs to Microsoft.Maui.* because the API docs for MAUI have not been published.

This is here to remind us that when those docs do we published we should go through the docs pages and fix up any places where an xref should be made.

Current known pages are:

  • maui/markup/markup.md

Please add some pictures

Why no picture for a UI element ?

This should be mandatory in this doc for ALL ui elements.


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Best case senarios on when to use WeakReferenceMessenger Vs StrongReferenceMessenger

Although the explanation is clear on the messenger, it would be better to show best case scenarios for when to use either of the messenger options (weak and strong). shall I assume I have to use Strong type on UWP, WPF and the weak on the mobile devices? and Why the default examples are for WeakReferenceMessenger only?


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Central page for explaining how to add NuGet packages

Maybe we should create an issue around having a centralized managing NuGet package page we can link to across all toolkit getting started docs?

Originally posted by @michael-hawker in #51 (comment)

Lots of our getting started guides explain more about getting started with NuGet. We should either just link to existing guidance or have a central page we can all share for this which is customized to be more about finding CommunityToolkit based packages?

<LangVersion> Tag not terminated correctly [Doc : MVVMTK0008]

<PropertyGroup>
    <LangVersion>7.3</PropertyGroup>
</PropertyGroup>

... should be:

<PropertyGroup>
    <LangVersion>7.3</LangVersion>
</PropertyGroup>

Document details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Replacing a registered service

There doesn't seem to be any way of replacing a registered service with a different implementation. In MVVM Light, there used to be register and unregister methods that we could use to conditionally replace a service. In Toolkit, registration seems to be a one-shot process that must be done at application startup.

Or am I missing something? All I need is a way to register a default implementation at startup and later, depending on some indeterministic criterion, switch to a different implementation.

Doc Home / Title naming incorrect

image

These should say Community Toolkits in the sidebar and be Community Toolkits Introduction at the top, as shown when you visit one of the subpages like so:

image

Though the .NET Community Toolkits part here is extra and also incorrect?

The ".NET Community Toolkit" is a specific toolkit, so we should make sure to brand the collection of them as "Community Toolkits" to match our GitHub org or "CommunityToolkit".

I think there's 2 or 3 different things controlling all these different naming things, so I'm pretty confused on how we fix this...

It also probably doesn't help that we don't have all the content here to help solidify this, so maybe this has to wait to be completely fixed. Though it'd at least be nice to fix the ones showing on the landing page.

Related to #54 - I'll comment more in there about desired breadcrumb behavior.

Does the MVVM Source generator have a documentation page listing attributes available for source generation

I think the new source generators are great, but I keep forgetting what the allowable attributes are.

Is there a documentation page specifically for the source generator syntax?
If there is not , then could you please add a link in the Community toolkit doc pages, as I cannot find one.
If not could you please add a short cheat sheet that covers allowable attributes including Icommand with CanExecute,
It is also not clear how much of Validation can be simplified with source generator attributes.
There is not much on YouTube - James Montemagno is most recent, (https://www.youtube.com/watch?v=KmLQLSKqvvI) but did not cover the canExecute options on commands.

A separate validation example would also be appreciated that demonstrates a range of uses. (assuming source generators exist for this)_
Currently it is pretty hard for a newcomer to discover the available options.

The ConverterParameter should be mentioned in this page.

The new MAUI community toolkit has a ConverterParameter which is the type of the enum doing the conversion. In other versions this parameter wasn't required but now it is since if you try to convert back from an int to an enum, the code will throw argument null excepetion here: https://github.com/CommunityToolkit/Maui/blob/6d3ecd66810077bb102436cf2d264219d3cd7c04/src/CommunityToolkit.Maui/Converters/EnumToIntConverter.shared.cs#L34


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Error in first code example of Span2D<T>

There is an error in the first example (line 12).

It should be span[1, 2] = 20; instead of span[2, 1] = 20;

Now the example throws an exception: System.IndexOutOfRangeException: Index was outside the bounds of the array.


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Missing information on removed behaviour when comparing RelayCommand with MvvmLight

It would be nice if the migration section for MvvmLight mentioned that now RelayCommand no longer calls CanExecute on every Execute call.

A further interesting point is that MvvmLight RelayCommand respected IConvert when classes implemented it and used it to convert parameters. Now there is only a call.

These changes have quite a large impact for projects migrating and these should be statet up-front.


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

EventToCommandBehavior passes null EventArgs to command.

I am using version 1.2.0 CommunityToolkit.Maui
And 8.0.0 CommunityToolkit.MVVM.

<WebView.Behaviors> <toolkit:EventToCommandBehavior EventName="Navigated" Command="{Binding NavigatedCommand}" /> </WebView.Behaviors>

The command is called correctly.
void Navigated(WebNavigatedEventArgs args)
The arguments parameter is null.

I did not have this problem with older version of Visual Studio.
When using Microsoft.Maui.Dpendencies 6.0.400, the command parameters were not null.
Now (Dependencies 6.0.486) the problem is there.

Broken links to Platform APIs: INotifyPropertyChanged, ObservableObject, ObservableRecipient

The links in the first section on this line are broken (404):

Platform APIs: INotifyPropertyChanged, ObservableObject, ObservableRecipient

The similar links in the "How to use them" section have the same issue.


Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

Just a typo?

I think the list at "3. Add a using directive in your C# files to use the new APIs:" should be;
using CommunityToolkit.Diagnostics;

Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

Enable localization

Reminder that localization will need enabling once there's some live content.

Syntax for Size attribute

Since the Size property is mentioned here, it would be nice to provide the syntax here, rather than requiring the reader to go over and look at examples and/or Google it.

Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

The xmlns namespace in the XAML opening tag is different than in the closing tag

image


Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

"Migrating from MvvmLight" page doesn't reflect the latest release

The "Migrating from MvvmLight" docs page was linked from https://devblogs.microsoft.com/dotnet/announcing-the-dotnet-community-toolkit-800/#mvvm-toolkit , but it still mentions "Windows Community Toolkit", "WCT", and "7.0.0" rather than the new ".NET Community Toolkit" moniker and 8.0 release.


Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

Cannot add to Behaviors as it's shown

[Enter feedback here]

I assume it should be:

this.Behaviors.Add(new StatusBarBehavior { StatusBarColor = Colors.Red, StatusBarStyle = StatusBarStyle.LightContent });


Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

Updated documentation is still not live

I fixed a typo way back in December, but it still isn't live. Not necessarily a big deal, unless this is happening for other content as well. Why isn't the documentation getting updated?


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

The documentation page is lacking pictorial representation.

The documentation page lacks pictorial view of the behaviour of the tool being talked about.
This may sound like a minor issue and that any serious developer should have no issue with it but the framework is not just for serious developers. There are beginners who pictures does magic for. Its the picture that shifts their focus to seeing the feature at work. It amy surprise you to know that, there may be lots of people who will say this feature does not exist even though they may have visited the docs page.
Pictures of the features in action throws more light that detailed written documentations.


Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

Dead links to other documentation

The links to apparently all external content are dead. I tried the links to INotifyPropertyChanged, ObservableObject, and ObservableRecipient and they're all 404.


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Community toolkit cannot be installed

Severity Code Description Project File Line Suppression State
Error NU1202 Package CommunityToolkit.Maui 3.0.0 is not compatible with net6.0-android31.0 (.NETCoreApp,Version=v6.0) / iossimulator-x64. Package CommunityToolkit.Maui 3.0.0 supports:

  • net7.0 (.NETCoreApp,Version=v7.0)
  • net7.0-android33.0 (.NETCoreApp,Version=v7.0)
  • net7.0-ios16.0 (.NETCoreApp,Version=v7.0)
  • net7.0-maccatalyst15.4 (.NETCoreApp,Version=v7.0)
  • net7.0-tizen7.0 (.NETCoreApp,Version=v7.0)
  • net7.0-windows10.0.19041 (.NETCoreApp,Version=v7.0) TestPopup C:\Visual Studio Stuff\Maui\TestPopup\TestPopup\TestPopup.csproj 1

[Enter feedback here]


Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

Span2D<T> sample has a small bug.

The sample code span[2, 1] = 20; throws an index out of change exception.

To become consistent with the sample output, it should be span[1, 1] = 20;.


Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

A suggestion for showing the power / functionality of ObservableObjects

I have a suggestion. Rather than just show the power of [ObservableObject], could you show what the user would have to do without that functionality, i.e., Invoke the PropertyChanged event manually? Then show how it becomes vastly easier to accomplish the same functionality with ObservableObjects.


Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

Element in example is closed with wrong Tag

Upper XML example is wrong

<PropertyGroup>
    <LangVersion>7.3</PropertyGroup>
</PropertyGroup>

The LangVersion Element is not closed properly with </LangVersion>

should be:

<PropertyGroup>
    <LangVersion>7.3</LangVersion>
</PropertyGroup>

Document details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

Wrong NotifyCanExecuteChangedFor in example

In section 'Enabling and disabling commands', under second example, we have:
[ObservableProperty]
[NotifyCanExecuteChangedFor(nameof(SelectedUser))] // <== this is wrong
private User? selectedUser;

but it should be:
[ObservableProperty]
[NotifyCanExecuteChangedFor(nameof(GreetUser))] // <== this is right
private User? selectedUser;


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

MAUI Popup Docs incorrect

The code section to show a popup is wrong. I'm not sure if this is how it's supposed to be when MAUI fully launches, but as of right now the following section is wrong and is unable to locate the ShowPopup(popup) function.
ShowPopup(popup) needs to be replaced with await this.ShowPopupAsync(popup) or this.ShowPopup(popup) for it to work.

Example code.

using CommunityToolkit.Maui.Views;

public class MyPage : ContentPage
{
    public void DisplayPopup()
    {
        var popup = new SimplePopup();

        ShowPopup(popup);
    }
}
using CommunityToolkit.Maui.Views;

public class MyPage : ContentPage
{
    public void DisplayPopup()
    {
        var popup = new SimplePopup();

        await this.ShowPopupAsync(popup);
    }
}

Version 8 breaking changes

I think it was a mistake not to include notes on the breaking changes added in preview 4,, because many will jump from version 7 to. Version 8 and not see notes on changes like Icommand, and notifyfor...
In my case I jumped from preview 3 and it took ages to find why Ithe generators broke.
It would have been better still if the generators reported that the old syntax had been depreciated, or the docs noted the changes.


Document details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

The XAML snippet will not work by itself. Needs c# with constructor and "InitializeComponent".

The XAML snippet will not work by itself.

As seen in my StackOverflow answer, you also have to have a c# code behind file, with the following contents:

public partial class SimplePopup: CommunityToolkit.Maui.Views.Popup
{
	public SimplePopup()
	{
		InitializeComponent();
	}
}

Without this, you'll get error message:

CommunityToolkit.Maui.Core.Handlers.PopupHandler found for TestApp.ProfilePopup is incompatible


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

A task was canceled. StateContainer

[Problem]
App crash when resize too fast or enter "Tablet" / "Desktop" first
[Platform]
Windows

<Grid toolkit:StateContainer.CurrentState="{x:Binding CurrentDeviceState}">
    <toolkit:StateContainer.StateViews>
        <ScrollView Padding="10"
                    toolkit:StateView.StateKey="Phone">
            <Grid RowSpacing="10"
                  RowDefinitions="auto, 110, *">
                <Frame Margin="0,50,0,0">
                    <Grid Margin="0,35,0,0"
                          RowSpacing="10"
                          RowDefinitions="auto,25,25,25,25">
                        <VerticalStackLayout>
                            <Label Text="Strypper Vandel Jason"
                                   HorizontalOptions="Center"
                                   HorizontalTextAlignment="Center"/>
                            <Switch HorizontalOptions="Center"
                                    Style="{StaticResource FollowSwithStyle}"/>
                        </VerticalStackLayout>
                        <FlexLayout Grid.Row="1"
                                    Style="{StaticResource InfoFlexLayoutStyle}">
                            <Label Text="Country"/>
                            <Label Text="Viet Nam"/>
                        </FlexLayout>
                        <FlexLayout Grid.Row="2"
                                    Style="{StaticResource InfoFlexLayoutStyle}">
                            <Label Text="Phone Number"/>
                            <Label Text="+84 0348164682"/>
                        </FlexLayout>
                        <FlexLayout Grid.Row="3"
                                    Style="{StaticResource InfoFlexLayoutStyle}">
                            <Label Text="District"/>
                            <Label Text="District 3"/>
                        </FlexLayout>
                        <FlexLayout Grid.Row="4"
                                    Style="{StaticResource InfoFlexLayoutStyle}">
                            <Label Text="Ward"/>
                            <Label Text="Vo Thi Sau"/>
                        </FlexLayout>
                    </Grid>
                </Frame>
                <Frame Grid.Row="1">
                    <HorizontalStackLayout HorizontalOptions="Center">
                        <toolkit:AvatarView HeightRequest="70" WidthRequest="70" CornerRadius="35"/>
                        <toolkit:AvatarView HeightRequest="70" WidthRequest="70" CornerRadius="35"/>
                        <toolkit:AvatarView HeightRequest="70" WidthRequest="70" CornerRadius="35"/>
                        <toolkit:AvatarView HeightRequest="70" WidthRequest="70" CornerRadius="35"/>
                    </HorizontalStackLayout>
                </Frame>
                <Frame Grid.Row="2">
                    <VerticalStackLayout>
                        <Frame Background="{x:StaticResource PremiumSubscriptionColor}">
                            <HorizontalStackLayout>
                                <VerticalStackLayout>
                                    <Label Text="PREMIUM"/>
                                    <Label Text="Get the most for you and your pets"/>
                                </VerticalStackLayout>
                            </HorizontalStackLayout>
                        </Frame>
                        <TableView Intent="Menu">
                            <TableRoot>
                                <TableSection Title="Cài đặt">
                                    <ImageCell Text="Thông tin cá nhân"
                                       Detail="Cá nhân hóa thông tin cá nhân của bạn" 
                                       ImageSource="{x:StaticResource Setting24Icon}"/>
                                    <ImageCell Text="Yêu thích từ cộng đồng"
                                       Detail="1,199 bài yêu thích" 
                                       ImageSource="{x:StaticResource Heart24Icon}"/>
                                    <ImageCell Text="Theo dõi từ cộng đồng"
                                       Detail="57 tin tức đang được theo dõi" 
                                       ImageSource="{x:StaticResource New24Icon}"/>
                                    <TextCell Text="Đăng xuất" TextColor="Red"/>
                                </TableSection>
                            </TableRoot>
                        </TableView>
                    </VerticalStackLayout>
                </Frame>


                <toolkit:AvatarView CornerRadius="50"
                            WidthRequest="100"
                            HeightRequest="100"
                            VerticalOptions="Start"
                            ImageSource="https://i.imgur.com/vc9FudE.jpg"/>
            </Grid>
        </ScrollView>
        <ScrollView toolkit:StateView.StateKey="Tablet">
            <Label Text="TABLET"
                   TextColor="White"
                   Style="{x:Static app:Styles.Heading1}"/>
        </ScrollView>
        <ScrollView toolkit:StateView.StateKey="Desktop">
            <Label Text="Desktop"
                   TextColor="White"
                   Style="{x:Static app:Styles.Heading1}"/>
        </ScrollView>
    </toolkit:StateContainer.StateViews>
</Grid>

private void BasePage_SizeChanged(object sender, EventArgs e)
{
if(Window.Width < 500)
{
if(viewModel is not null)
viewModel.CurrentDeviceState = "Phone";
}else if(Window.Width < 900)
{
if (viewModel is not null)
viewModel.CurrentDeviceState = "Tablet";
}else if (Window.Width < 2000)
{
if (viewModel is not null)
viewModel.CurrentDeviceState = "Desktop";
}
}

Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

Add code for mvvm sample

As the title says, I would like you to add the full code for the mvvm "putting things together" sample, as I dont know how to do everything in that post, like where exactly I write the service provider part, or the mapper for the reddit response.

thank you!


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Create a PR template

This is potentially going to be a challenge given we house documentation for multiple different toolkits.

Just for reference here is the current template from the Xamarin Community Toolkit:

## Fixes # <!-- Link to a relevant issue # in this docs repository (if any, otherwise remove this line) -->

## Docs for Toolkit PR [#](https://github.com/xamarin/XamarinCommunityToolkit/pull/#) <!-- Link to relevant issue or Feature PR # of the Xamarin community toolkit repo which will create a reference to the associated issue and PR once it is created, remove if not tied to an issue or feature -->

## What changes to the docs does this PR provide?

<!-- Please describe the updated information in detail -->

## PR Checklist

Please check if your PR fulfills the following requirements:

- [ ] For new pages, used the [provided template](https://github.com/MicrosoftDocs/xamarin-communitytoolkit/blob/master/docs/.template.md).
- [ ] For new features, added an entry in the [Table of Contents](https://github.com/MicrosoftDocs/xamarin-communitytoolkit/blob/master/docs/TOC.yml).
- [ ] Ran against a spell and grammar checker.
- [ ] Contains **NO** breaking changes.

<!-- If this PR contains a breaking change, please describe the impact and migration path for existing applications below. -->

## Other information

As far as I understand it is possible to have multiple PR templates however you do not get a friendly selector like you do with Issue templates. Therefore my questions are:

  1. Do we need to find a common format?
  2. Can we disable the shortcut to create a PR and instead provide links to specific templates?
  3. Any better options?

cc @brminnick @davidbritch @michael-hawker

There's No Example of data-binding for Popup.

I want to update what's displaying inside a popup from my Mainpage viewmodel every few seconds. (e.g. every few seconds a new data is calculated in the models (business logic of my application) and this should be get updated on the popup. how can I achieve this?

I'm using "communityToolkitMVVM".


Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

Create a contributing guideline document

Some bits to consider are:

  1. How best to share common guidelines across the multiple toolkits.
  2. How best to split out the toolkit specific parts (would this be best in multiple documents?)
  3. As per this comment for the .NET MAUI Community Toolkit

    it should always be .NET MAUI. Never just MAUI. Then, on first use on every page it should always be .NET Multi-platform App UI (.NET MAUI).

  4. Other points? please feel free to comment

CS0102 The type "WpdFileViewModel" already contains a definition for "stringsToWpdCompressorCommand

I am getting this error when compiling using [RelayCommand] release version 8.0 above method.

partial class WpdFileViewModel { /// <summary>The backing field for <see cref="StringsToWpdCompressorCommand"/>.</summary> [global::System.CodeDom.Compiler.GeneratedCode("CommunityToolkit.Mvvm.SourceGenerators.RelayCommandGenerator", "8.0.0.0")] private global::CommunityToolkit.Mvvm.Input.AsyncRelayCommand? **stringsToWpdCompressorCommand**; /// <summary>Gets an <see cref="global::CommunityToolkit.Mvvm.Input.IAsyncRelayCommand"/> instance wrapping <see cref="StringsToWpdCompressor"/>.</summary> [global::System.CodeDom.Compiler.GeneratedCode("CommunityToolkit.Mvvm.SourceGenerators.RelayCommandGenerator", "8.0.0.0")] [global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage] public global::CommunityToolkit.Mvvm.Input.IAsyncRelayCommand StringsToWpdCompressorCommand => **stringsToWpdCompressorCommand** ??= new global::CommunityToolkit.Mvvm.Input.AsyncRelayCommand(new global::System.Func<global::System.Threading.Tasks.Task>(StringsToWpdCompressor)); }

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.