App To Do Ist
This tutorial shows you how to build and modify a Blazor app. You learn how to:
- Create a todo list Blazor app project
- Modify Razor components
- Use event handling and data binding in components
- Use routing in a Blazor app
- OK–Fantastical is actually a calendar. But, by including a task manager, it becomes a to-do app worthy of its name. Instead of just seeing a list of items to complete each day, you’ll see your to-dos at the exact time you want to get them done. That way, you’ll be sure you have time for everything, no matter how hectic your day is.
- With My To-do List you can typed or handwrite your ideas, assignments, bills, bucket list, or a grocery list. The app is simple to use. With an agenda helping you keep track of all the things you need to get done ON TIME!!!.Free version is limited.
- LIFE ORGANIZER & DAILY PLANNER Any.do is a to do list, a calendar, an inbox, a notepad, a checklist, task list, a board for post its or sticky notes, a project management tool, a reminders app, a daily planner, a family organizer, and overall the simplest and most useful productivity tool you will ever have. SHARE LISTS & ASSIGN TASKS.
SplenDO is smart task list for everyday use. It is truly usable with great user experience. No matter who you are and what you do - you will be better organized! At home, at work and in your free. This simple and accessible to-do list uses a table and conditional formatting. Add a row for a new task, set the priority, dates, and notes. Once you have set the completion to 100%, Excel automatically checks the item off as done.
At the end of this tutorial, you'll have a working todo list app.
Prerequisites
Create a todo list Blazor app
Create a new Blazor app named
TodoListin a command shell:The preceding command creates a folder named
TodoListwith the-o|--outputoption to hold the app. TheTodoListfolder is the root folder of the project. Change directories to theTodoListfolder with the following command:Add a new
TodoRazor component to the app using the following command:The
-n|--nameoption in the preceding command specifies the name of the new Razor component. The new component is created in the project'sPagesfolder with the-o|--outputoption.Important
Razor component file names require a capitalized first letter. Open the
Pagesfolder and confirm that theTodocomponent file name starts with a capital letterT. The file name should beTodo.razor.Open the
Todocomponent in any file editor and add an@pageRazor directive to the top of the file with a relative URL of/todo.Pages/Todo.razor:Save the
Pages/Todo.razorfile.Add the
Todocomponent to the navigation bar.The
NavMenucomponent is used in the app's layout. Layouts are components that allow you to avoid duplication of content in an app. TheNavLinkcomponent provides a cue in the app's UI when the component URL is loaded by the app.In the unordered list (
<ul>...</ul>) of theNavMenucomponent, add the following list item (<li>...</li>) andNavLinkcomponent for theTodocomponent.In
Shared/NavMenu.razor:Save the
Shared/NavMenu.razorfile.Build and run the app by executing the
dotnet watch runcommand in the command shell from theTodoListfolder. After the app is running, visit the new Todo page by selecting theTodolink in the app's navigation bar, which loads the page at/todo.Leave the app running the command shell. Each time a file is saved, the app is automatically rebuilt. The browser temporarily loses its connection to the app while compiling and restarting. The page in the browser is automatically reloaded when the connection is re-established.
Add a
TodoItem.csfile to the root of the project (theTodoListfolder) to hold a class that represents a todo item. Use the following C# code for theTodoItemclass.TodoItem.cs:Note
If using Visual Studio to create the
TodoItem.csfile andTodoItemclass, use either of the following approaches:- Remove the namespace that Visual Studio generates for the class.
- Use the Copy button in the preceding code block and replace the entire contents of the file that Visual Studio generates.
Return to the
Todocomponent and perform the following tasks:- Add a field for the todo items in the
@codeblock. TheTodocomponent uses this field to maintain the state of the todo list. - Add unordered list markup and a
foreachloop to render each todo item as a list item (<li>).
Pages/Todo.razor:- Add a field for the todo items in the
The app requires UI elements for adding todo items to the list. Add a text input (
<input>) and a button (<button>) below the unordered list (<ul>...</ul>):Save the
TodoItem.csfile and the updatedPages/Todo.razorfile. In the command shell, the app is automatically rebuilt when the files are saved. The browser temporarily loses its connection to the app and then reloads the page when the connection is re-established.When the
Add todobutton is selected, nothing happens because an event handler isn't attached to the button.Add an
AddTodomethod to theTodocomponent and register the method for the button using the@onclickattribute. TheAddTodoC# method is called when the button is selected:To get the title of the new todo item, add a
newTodostring field at the top of the@codeblock:Modify the text
<input>element to bindnewTodowith the@bindattribute:Update the
AddTodomethod to add theTodoItemwith the specified title to the list. Clear the value of the text input by settingnewTodoto an empty string:Save the
Pages/Todo.razorfile. The app is automatically rebuilt in the command shell. The page reloads in the browser after the browser reconnects to the app.The title text for each todo item can be made editable, and a check box can help the user keep track of completed items. Add a check box input for each todo item and bind its value to the
IsDoneproperty. Change@todo.Titleto an<input>element bound totodo.Titlewith@bind:Update the
<h3>header to show a count of the number of todo items that aren't complete (IsDoneisfalse).The completed
Todocomponent (Pages/Todo.razor):Save the
Pages/Todo.razorfile. The app is automatically rebuilt in the command shell. The page reloads in the browser after the browser reconnects to the app.Add items, edit items, and mark todo items done to test the component.
When finished, shut down the app in the command shell. Many command shells accept the keyboard command Ctrl+c to stop an app.
Next steps
In this tutorial, you learned how to:
- Create a todo list Blazor app project
- Modify Razor components
- Use event handling and data binding in components
- Use routing in a Blazor app
Learn about tooling for ASP.NET Core Blazor:
Any.do is an award-winning app used by millions of people to stay organized and get more done. Watch in action
SIMPLE
The best way to organize your life
Organize your tasks, lists and reminders in one easy to use app. Any.do syncs seamlessly across all your devices.
FLEXIBLE
A calendar you won’t be able to live without
Keep track of your progress. Add smart reminders so you never forget a thing. With beautiful themes and turbo-charging powers, you’re guaranteed to save time and achieve great things.
Organize anything with anyone, anywhere
Wherever you are, take your to do list with you. Access Any.do on mobile, laptop, desktop, tablet and even your watch! Your tasks are automatically synced across all of your devices, giving you ultimate control.

J JennyDrama | Any.do for iPhoneTRUSTWORTHY
Create reminders with natural language and never forget a thing
Set reminders to make sure important things don’t slip away. With powerful one-time, recurring and location based reminders, you can be sure critical things don’t get forgotten.
POWERFUL
The intelligent grocery list you never knew you needed
Streamline your grocery shopping experience thanks to Any.do’s smart grocery list. Get your grocery items automatically sorted, easily import online recipes and share your list with your family. It works with Siri and Alexa too!
Daily planner is the secret weapon of successful people
Any.do Moment helps busy people like you focus on what’s important. It helps millions of people save time and do the things that really matter.
To Do List App Windows 10
Available on:
App To Do List Priorities Work Life
- Firefox
