diff --git a/docs/Component/BasicInput/ComboBox.md b/docs/Component/BasicInput/ComboBox.md new file mode 100644 index 0000000..1b38baf --- /dev/null +++ b/docs/Component/BasicInput/ComboBox.md @@ -0,0 +1,5 @@ +# CheckBox + +类型:System.Windows.Controls.Primitives.ComboBox + +继承:System.Windows.Controls.Primitives.ButtonBase \ No newline at end of file diff --git a/docs/Component/BasicInput/RadioButtons.md b/docs/Component/BasicInput/RadioButtons.md new file mode 100644 index 0000000..1410552 --- /dev/null +++ b/docs/Component/BasicInput/RadioButtons.md @@ -0,0 +1,79 @@ +# RadioButtons + +类型: iNKORE.UI.WPF.Modern.Controls.RadioButtons + +继承:System.Windows.Controls.Control + +## 属性 + +### ItemsSource + +- 类型: `IEnumerable` +- 默认值: `null` +- 描述: 数据源,获取或设置用于生成控件内容的集合 + +### Items + +- 类型: `IList` +- 默认值: `null` +- 描述: 生成空间内容的集合 + +### ItemTemplate + +- 类型: `object` +- 默认值: `null` +- 描述: 获取或设置用于显示控件中每个项目的模板 + +### SelectedItem + +- 类型: `int` +- 默认值: `-1` +- 描述: 选中的 Items 的索引值 + +### SelectedItem + +- 类型: `object` +- 默认值: `null` +- 描述: 获取选中的 Items + +### MaxColumns + +- 类型: `int` +- 默认值: `1` +- 描述: 获取或设置用于布局的最大列数 + +### Header + +- 类型: `object` +- 默认值: `null` +- 描述: 获取或设置控件标题的内容 + +### HeaderTemplate + +- 类型: `DataTemplate` +- 默认值: `null` +- 描述: 获取或设置用于显示控件标题的模板 + +## 事件 + +- SelectionChanged当单选按钮的选择更改时发生 + +## 方法 + +- ContainerFromIndex(int index):检索集合中与指定索引对应的 UI 元素 +- SetTestHooksEnabled(boolenabled):设置是否为控件启用测试挂钩 +- GetRows() (return int):获取控件布局中的行数 +- GetColumns() (return int):获取控件布局中的列数 +- GetLargerColumns() (return int):获取控件布局中项目数最多的列数 + +## 样例 + +```xaml + + + + + +``` + +![](./../../images/RadioButtons/1.gif) \ No newline at end of file diff --git a/docs/Component/BasicInput/ToggleSplitButton.md b/docs/Component/BasicInput/ToggleSplitButton.md index e9fa54c..45085f3 100644 --- a/docs/Component/BasicInput/ToggleSplitButton.md +++ b/docs/Component/BasicInput/ToggleSplitButton.md @@ -76,3 +76,6 @@ private void BulletedList_Click(object sender, RoutedEventArgs e) } ``` +## 参考 + +[SplitButton](SplitButton.md) diff --git a/docs/FAQs.md b/docs/FAQs.md index 8e566b7..a04713f 100644 --- a/docs/FAQs.md +++ b/docs/FAQs.md @@ -1,11 +1,16 @@ # iNKORE.UI.WPF.Modern FAQs -> +> > This file contains some frequently asked qustions. > > If you have a problem, please report an issue or contact us (yoojun@inkore.net) -> + +## ❓Error CS0104: "Page" is an ambiguous reference between 'System.Windows.Controls.Page' and 'iNKORE.UI.WPF.Modern.Controls.' + +```c# +using Page = System.Windows.Controls.Page; +``` ## ❓ IconElement: Display as rectangle or question mark under Windows 7 @@ -42,7 +47,7 @@ - ``` + ``` ## ❓ FontIcon: How to add icons from segoe icons library elegantly @@ -100,7 +105,7 @@ - + ``` ## ❓ Application: Exception throws when used in a VSIX project @@ -122,12 +127,12 @@ ```csharp AppDomain.CurrentDomain.AssemblyResolve += OnAssemblyResolve; - + private Assembly OnAssemblyResolve(object sender, ResolveEventArgs args) { string path = Assembly.GetExecutingAssembly().Location; path = Path.GetDirectoryName(path); - + if (args.Name.ToLower().Contains("iNKORE.UI.WPF.Modern") && !args.Name.ToLower().Contains("iNKORE.UI.WPF.Modern.Controls")) { path = Path.Combine(path, "iNKORE.UI.WPF.Modern.dll"); diff --git a/docs/images/RadioButtons/1.gif b/docs/images/RadioButtons/1.gif new file mode 100644 index 0000000..c266282 Binary files /dev/null and b/docs/images/RadioButtons/1.gif differ