Skip to content

Instantly share code, notes, and snippets.

@Nia-TN1012
Forked from Myoga1012/Calendar.cs
Last active January 30, 2023 08:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Nia-TN1012/c7e3d2d2a6b525b372c0a89ac88c5cb4 to your computer and use it in GitHub Desktop.
Save Nia-TN1012/c7e3d2d2a6b525b372c0a89ac88c5cb4 to your computer and use it in GitHub Desktop.
Silverlight用のXAMLでカレンダーを出力するコードです。XAML以外は全てプロジェクト生成後のままです。やっていることはWPF用のXAMLと同じですが・・・
// 分離コードです。主役はXAMLです。
using System.Windows.Controls;
namespace Silverlight {
public partial class MainPage : UserControl {
public MainPage() { InitializeComponent(); }
}
}
<!--
名前 : Nia Tomonaka
Twitter : https://twitter.com/nia_tn1012
-->
<UserControl xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk" x:Class="Silverlight.MainPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d" d:DesignHeight="300" d:DesignWidth="400">
<sdk:Calendar />
</UserControl>
<!--
Calender.xaml
Copyright (c) 2014-2023 Nia T.N. Tech Lab. / Chronoir.net.
This software is released under the MIT License.
http://opensource.org/licenses/mit-license.php
-->
@Nia-TN1012
Copy link
Author

GitHubのアカウント統合のため、Myoga1012→Nia-TN1012に移行しました。

旧URL: https://gist.github.com/Myoga1012/f0bc37c49a5587fbd09a

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment